2018-08-14 22:34:45 +02:00
|
|
|
VERSION="1.1.0i"
|
2018-01-22 13:03:48 +01:00
|
|
|
SRCDIR="openssl-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="https://www.openssl.org/source"
|
2018-08-14 22:34:45 +02:00
|
|
|
SHA256SUM="ebbfc844a8c8cc0ea5dc10b86c9ce97f401837f3fa08c17b2cdadc118253cf99"
|
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"
|
|
|
|
}
|