mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-08 00:34:57 +03:00
travis-ci: split openssl into 1.0.2, 1.1.0 matrix (#477)
This commit is contained in:
committed by
Moataz Elmasry
parent
fcaaab0d8e
commit
26f3ebc059
23
.ci/build-openssl.sh
Executable file
23
.ci/build-openssl.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
set -eux
|
||||
|
||||
download_openssl () {
|
||||
if [ ! -f "download-cache/openssl-${OPENSSL_VERSION}.tar.gz" ]; then
|
||||
wget -P download-cache/ \
|
||||
"https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz"
|
||||
fi
|
||||
}
|
||||
|
||||
build_openssl () {
|
||||
if [ "$(cat ${PREFIX}/.openssl-version)" != "${OPENSSL_VERSION}" ]; then
|
||||
tar zxf "download-cache/openssl-${OPENSSL_VERSION}.tar.gz"
|
||||
cd "openssl-${OPENSSL_VERSION}/"
|
||||
./config shared --prefix="${PREFIX}" --openssldir="${PREFIX}" -DPURIFY
|
||||
make all install_sw
|
||||
echo "${OPENSSL_VERSION}" > "${PREFIX}/.openssl-version"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
download_openssl
|
||||
build_openssl
|
Reference in New Issue
Block a user