wok annotate openssl/receipt @ rev 19684
tinycm: dont forget files
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Feb 12 00:48:16 2017 +0100 (2017-02-12) |
parents | 7a0e28a1e1d9 |
children | 90fcaa823068 |
rev | line source |
---|---|
pankso@28 | 1 # SliTaz package receipt. |
pankso@28 | 2 |
pankso@28 | 3 PACKAGE="openssl" |
al@19661 | 4 VERSION="1.0.2k" |
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 |
pankso@15969 | 20 # Perl is installed in cross env. |
pankso@15969 | 21 case "$ARCH" in |
pankso@15969 | 22 arm) BUILD_DEPENDS="" ;; |
pankso@15969 | 23 esac |
pankso@15969 | 24 |
pankso@28 | 25 # Rules to configure and make the package. |
pankso@28 | 26 compile_rules() |
pankso@28 | 27 { |
gokhlayeh@7705 | 28 # MAKEFLAGS make openssl build fail. |
gokhlayeh@7705 | 29 unset MAKEFLAGS |
slaxemulator@6192 | 30 |
gokhlayeh@7705 | 31 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be |
gokhlayeh@7705 | 32 # marked as not requiring an executable stack (compatibility improvement). |
pankso@15969 | 33 case "$ARCH" in |
pankso@15969 | 34 arm) |
pankso@15969 | 35 # BUG: shared libs are not built |
pankso@15969 | 36 ./Configure --prefix=/usr --openssldir=/etc/ssl \ |
pankso@15969 | 37 shared zlib enable-md2 -Wa,--noexecstack \ |
pankso@15969 | 38 linux-armv4 && |
pankso@15969 | 39 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && |
pankso@15969 | 40 make \ |
pankso@15969 | 41 CC=${HOST_SYSTEM}-gcc \ |
pankso@15969 | 42 AR="${HOST_SYSTEM}-ar r" \ |
pankso@15969 | 43 RANLIB=${HOST_SYSTEM}-ranlib ;; |
pankso@15969 | 44 i486) |
al@19661 | 45 ./config --prefix=/usr --openssldir=/etc/ssl \ |
al@19661 | 46 shared zlib zlib-dynamic enable-md2 -Wa,--noexecstack && |
al@19661 | 47 make depend ;; |
pankso@15969 | 48 esac && |
pankso@15969 | 49 # Install |
pankso@16497 | 50 make INSTALL_PREFIX=$DESTDIR \ |
pankso@16497 | 51 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install |
pankso@28 | 52 } |
pankso@28 | 53 |
pankso@28 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@28 | 55 genpkg_rules() |
pankso@28 | 56 { |
al@19661 | 57 cook_copy_folders etc bin engines |
pankso@28 | 58 } |
pankso@15969 | 59 |
pankso@15969 | 60 testsuite() |
pankso@15969 | 61 { |
pankso@15969 | 62 readelf -h $install/usr/bin/openssl |
pankso@15969 | 63 } |