2018-06-13 20:12:52 +02:00
|
|
|
#!/usr/bin/env bash
|
2018-04-13 20:56:49 +02:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2021-04-07 16:34:22 +02:00
|
|
|
OPENSSH_ROOT=V_8_5_P1
|
2018-04-13 20:56:49 +02:00
|
|
|
|
|
|
|
cd /usr/src
|
2021-08-06 01:17:47 +02:00
|
|
|
curl --connect-timeout 20 \
|
|
|
|
--max-time 10 \
|
|
|
|
--retry 5 \
|
|
|
|
--retry-delay 10 \
|
|
|
|
--retry-max-time 40 \
|
|
|
|
-LO https://github.com/openssh/openssh-portable/archive/${OPENSSH_ROOT}.tar.gz
|
|
|
|
|
2018-04-13 20:56:49 +02:00
|
|
|
tar -xvf ${OPENSSH_ROOT}.tar.gz
|
|
|
|
rm -f ${OPENSSH_ROOT}.tar.gz
|
|
|
|
|
|
|
|
OPENSSH_SRC_DIR=openssh-portable-${OPENSSH_ROOT}
|
|
|
|
cd ${OPENSSH_SRC_DIR}
|
|
|
|
|
|
|
|
autoreconf
|
|
|
|
|
2021-04-05 12:49:49 +02:00
|
|
|
./configure --with-ssl-dir=/usr/local/ssl --prefix=/usr/local --with-libs=-lpthread
|
2018-04-13 20:56:49 +02:00
|
|
|
|
|
|
|
make -j1 install
|
|
|
|
|
|
|
|
cd /usr/src
|
|
|
|
rm -rf ${OPENSSH_SRC_DIR}
|