forked from SoftEtherVPN/SoftEtherVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis-ci: split openssl into 1.0.2, 1.1.0 matrix (SoftEtherVPN#477)
- Loading branch information
1 parent
fcaaab0
commit 26f3ebc
Showing
4 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters