wok annotate openssl/receipt @ rev 24372
updated bison and bison-lang (3.5 -> 3.8.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 05 15:15:36 2022 +0100 (2022-02-05) |
parents | 05230b2f15de |
children | ffe3a28f2096 |
rev | line source |
---|---|
pankso@28 | 1 # SliTaz package receipt. |
pankso@28 | 2 |
pankso@28 | 3 PACKAGE="openssl" |
erkan@22431 | 4 VERSION="1.0.2u" |
pankso@209 | 5 CATEGORY="security" |
pankso@28 | 6 SHORT_DESC="Open source Secure Sockets Layer." |
pascal@62 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="BSD" |
al@19661 | 9 WEB_SITE="https://www.openssl.org/" |
pascal@15472 | 10 TAGS="ssl security" |
pankso@15969 | 11 HOST_ARCH="i486 arm" |
pascal@15472 | 12 |
al@19661 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19661 | 14 WGET_URL="https://www.openssl.org/source/$TARBALL" |
al@19661 | 15 |
pankso@4332 | 16 DEPENDS="libcrypto libssl" |
slaxemulator@6390 | 17 BUILD_DEPENDS="perl zlib-dev" |
al@19661 | 18 SPLIT="libcrypto libcrypto-dev libssl openssl-dev" |
pankso@28 | 19 |
pascal@24040 | 20 current_version() |
pascal@24040 | 21 { |
pascal@24040 | 22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24079 | 23 sed '/openssl-/!d;/-[abr]/d;s|.tar.gz</a.*||;s|.*>openssl-||;q' |
pascal@24040 | 24 } |
pascal@24040 | 25 |
pankso@15969 | 26 # Perl is installed in cross env. |
pankso@15969 | 27 case "$ARCH" in |
pankso@15969 | 28 arm) BUILD_DEPENDS="" ;; |
pankso@15969 | 29 esac |
pankso@15969 | 30 |
pankso@28 | 31 # Rules to configure and make the package. |
pankso@28 | 32 compile_rules() |
pankso@28 | 33 { |
gokhlayeh@7705 | 34 # MAKEFLAGS make openssl build fail. |
gokhlayeh@7705 | 35 unset MAKEFLAGS |
slaxemulator@6192 | 36 |
gokhlayeh@7705 | 37 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be |
gokhlayeh@7705 | 38 # marked as not requiring an executable stack (compatibility improvement). |
pankso@15969 | 39 case "$ARCH" in |
pankso@15969 | 40 arm) |
pankso@15969 | 41 # BUG: shared libs are not built |
pankso@15969 | 42 ./Configure --prefix=/usr --openssldir=/etc/ssl \ |
pankso@15969 | 43 shared zlib enable-md2 -Wa,--noexecstack \ |
pankso@15969 | 44 linux-armv4 && |
pankso@15969 | 45 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && |
pankso@15969 | 46 make \ |
pankso@15969 | 47 CC=${HOST_SYSTEM}-gcc \ |
pankso@15969 | 48 AR="${HOST_SYSTEM}-ar r" \ |
pankso@15969 | 49 RANLIB=${HOST_SYSTEM}-ranlib ;; |
pankso@15969 | 50 i486) |
pascal@20315 | 51 MACHINE=i686 \ |
al@19661 | 52 ./config --prefix=/usr --openssldir=/etc/ssl \ |
al@19661 | 53 shared zlib zlib-dynamic enable-md2 -Wa,--noexecstack && |
al@19661 | 54 make depend ;; |
pankso@15969 | 55 esac && |
pankso@15969 | 56 # Install |
pankso@16497 | 57 make INSTALL_PREFIX=$DESTDIR \ |
pankso@16497 | 58 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install |
pankso@28 | 59 } |
pankso@28 | 60 |
pankso@28 | 61 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@28 | 62 genpkg_rules() |
pankso@28 | 63 { |
al@19661 | 64 cook_copy_folders etc bin engines |
pankso@28 | 65 } |
pankso@15969 | 66 |
pankso@15969 | 67 testsuite() |
pankso@15969 | 68 { |
pankso@15969 | 69 readelf -h $install/usr/bin/openssl |
pankso@15969 | 70 } |