mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-13 22:51:31 +01:00
Bensuperpc
501b1b84dc
Improve curl with retry on error Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
29 lines
549 B
Bash
Executable File
29 lines
549 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
OPENSSH_ROOT=V_8_5_P1
|
|
|
|
cd /usr/src
|
|
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
|
|
|
|
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}
|