2018-04-05 10:44:45 +02:00
|
|
|
VERSION="1.1.0h"
|
2018-01-22 13:03:48 +01:00
|
|
|
SRCDIR="openssl-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="https://www.openssl.org/source"
|
2018-04-05 10:44:45 +02:00
|
|
|
SHA256SUM="5835626cde9e99656585fc7aaa2302a73a7e1340bf8c14fd635a62c66802a517"
|
2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS="zlib"
|
2018-01-22 13:03:48 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
$1/Configure --prefix=/ --cross-compile-prefix="${TARGET}-" \
|
|
|
|
--openssldir=/etc/ssl --libdir=/lib \
|
|
|
|
-DOPENSSL_NO_HEARTBEATS \
|
|
|
|
threads shared zlib-dynamic no-async $OPENSSL_TARGET
|
2018-01-22 13:03:48 +01:00
|
|
|
|
|
|
|
make -j 1
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2018-01-22 13:03:48 +01:00
|
|
|
|
|
|
|
make DESTDIR="$DEPLOY" install
|
2018-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
2018-01-22 13:03:48 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
local version=$(echo $VERSION | sed 's/\([[:lower:]]\)/.\1/g')
|
|
|
|
|
|
|
|
curl --silent -L "$URL" | grep -o ">openssl-[0-9a-z.]*tar.gz<" | \
|
|
|
|
sed 's/>openssl-//g' | sed 's/.tar.gz<//g' | \
|
|
|
|
sed 's/\([[:lower:]]\)/.\1/g' | \
|
|
|
|
verson_find_greatest "$version"
|
|
|
|
}
|