update versions and use github links
This commit is contained in:
parent
b0cb8fd6f6
commit
4ec284b122
|
@ -3,16 +3,17 @@
|
|||
set -e
|
||||
|
||||
|
||||
HAPROXY_VERSION=3.0.3
|
||||
HAPROXY_VERSION=3.0.5
|
||||
HAPROXY_VERSION_SHORT=$(echo "$HAPROXY_VERSION" | cut -d. -f1-2)
|
||||
HAPROXY_URL=https://www.haproxy.org/download/${HAPROXY_VERSION_SHORT}/src/haproxy-${HAPROXY_VERSION}.tar.gz
|
||||
HAPROXY_SHA256_URL=${HAPROXY_URL}.sha256
|
||||
HAPROXY_SRC=/tmp/haproxy
|
||||
|
||||
OPENSSL_VERSION=3.3.1
|
||||
OPENSSL_URL=https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
|
||||
OPENSSL_VERSION=3.4.0
|
||||
OPENSSL_URL=https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VERSION}/openssl-${OPENSSL_VERSION}.tar.gz
|
||||
OPENSSL_SHA256_URL=${OPENSSL_URL}.sha256
|
||||
OPENSSL_SRC=/tmp/openssl
|
||||
OPENSSL_FILE=${OPENSSL_URL##*/}
|
||||
|
||||
[ -d "$OPENSSL_SRC" ] && rm -rf "$OPENSSL_SRC"
|
||||
[ -d "$HAPROXY_SRC" ] && rm -rf "$HAPROXY_SRC"
|
||||
|
@ -21,12 +22,13 @@ OPENSSL_SRC=/tmp/openssl
|
|||
# build openssl
|
||||
#
|
||||
OPENSSL_SHA256=$(wget -O - "$OPENSSL_SHA256_URL")
|
||||
wget -O openssl.tar.gz "$OPENSSL_URL"
|
||||
echo "$OPENSSL_SHA256 *openssl.tar.gz" | sha256sum -c
|
||||
echo $OPENSSL_SHA256
|
||||
wget -O "$OPENSSL_FILE" "$OPENSSL_URL"
|
||||
echo "$OPENSSL_SHA256" | sha256sum -c
|
||||
|
||||
mkdir -p "$OPENSSL_SRC"
|
||||
tar xfz openssl.tar.gz -C "$OPENSSL_SRC" --strip-components=1
|
||||
rm openssl.tar.gz
|
||||
tar xfz "$OPENSSL_FILE" -C "$OPENSSL_SRC" --strip-components=1
|
||||
rm "$OPENSSL_FILE"
|
||||
|
||||
pushd "$OPENSSL_SRC"
|
||||
./config --prefix="$OPENSSL_SRC" no-ssl3 no-idea no-weak-ssl-ciphers no-shared
|
||||
|
|
Loading…
Reference in New Issue