dockcross/imagefiles/build-and-install-openssh.sh

23 lines
436 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ex
OPENSSH_ROOT=V_7_9_P1
cd /usr/src
curl -LO https://github.com/openssh/openssh-portable/archive/${OPENSSH_ROOT}.tar.gz
tar -xvf ${OPENSSH_ROOT}.tar.gz
rm -f ${OPENSSH_ROOT}.tar.gz
OPENSSH_SRC_DIR=openssh-portable-${OPENSSH_ROOT}
cd ${OPENSSH_SRC_DIR}
autoreconf
./configure --with-ssl-dir=/usr/local/ssl --prefix=/usr/local --with-libs=-lpthread
make -j1 install
cd /usr/src
rm -rf ${OPENSSH_SRC_DIR}