# SliTaz package receipt. PACKAGE="openssl" VERSION="1.1.1w" CATEGORY="security" SHORT_DESC="Open source Secure Sockets Layer." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="https://www.openssl.org/" TAGS="ssl security" HOST_ARCH="i486 arm" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://www.openssl.org/source/$TARBALL" DEPENDS="libcrypto libssl" BUILD_DEPENDS="perl zlib-dev" SPLIT="libcrypto libcrypto-dev libssl openssl-dev" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed '/openssl-/!d;/-[abr]/d;s|.tar.gzopenssl-||;q' } # Perl is installed in cross env. case "$ARCH" in arm) BUILD_DEPENDS="" ;; esac # Rules to configure and make the package. compile_rules() { # MAKEFLAGS make openssl build fail. unset MAKEFLAGS # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be # marked as not requiring an executable stack (compatibility improvement). case "$ARCH" in arm) # BUG: shared libs are not built ./Configure --prefix=/usr --openssldir=/etc/ssl \ shared zlib enable-md2 -Wa,--noexecstack \ linux-armv4 && sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && make \ CC=${HOST_SYSTEM}-gcc \ AR="${HOST_SYSTEM}-ar r" \ RANLIB=${HOST_SYSTEM}-ranlib ;; i486) MACHINE=i686 \ ./config --prefix=/usr --openssldir=/etc/ssl \ shared zlib zlib-dynamic enable-md2 \ no-ssl3-method -Wa,--noexecstack && make depend ;; esac && # Install make DESTDIR=$PWD/_pkg MANDIR=$PWD/_pkg/usr/share/man \ install_sw install_ssldirs } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders etc bin engines } testsuite() { readelf -h $install/usr/bin/openssl }