wok-next annotate openssl/receipt @ rev 19884
libxklavier: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 07 14:53:11 2017 +0200 (2017-10-07) |
parents | 11f96bc53c0e |
children | 0e7893ac206d |
rev | line source |
---|---|
al@19736 | 1 # SliTaz package receipt v2. |
pankso@28 | 2 |
pankso@28 | 3 PACKAGE="openssl" |
al@19736 | 4 VERSION="1.0.2l" |
pankso@209 | 5 CATEGORY="security" |
al@19736 | 6 SHORT_DESC="Open source Secure Sockets Layer" |
pascal@62 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="BSD" |
al@19584 | 9 WEB_SITE="https://www.openssl.org/" |
pascal@15472 | 10 TAGS="ssl security" |
pankso@15969 | 11 HOST_ARCH="i486 arm" |
pascal@15472 | 12 |
al@19584 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19604 | 14 WGET_URL="https://www.openssl.org/source/$TARBALL" |
al@19736 | 15 # Integrity check: https://www.openssl.org/source/ |
al@19736 | 16 TARBALL_SHA256="ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c" |
al@19584 | 17 |
slaxemulator@6390 | 18 BUILD_DEPENDS="perl zlib-dev" |
al@19736 | 19 BUILD_DEPENDS_arm=" " |
al@19584 | 20 SPLIT="libcrypto libcrypto-dev libssl openssl-dev" |
pankso@28 | 21 |
pankso@28 | 22 # Rules to configure and make the package. |
pankso@28 | 23 compile_rules() |
pankso@28 | 24 { |
gokhlayeh@7705 | 25 # MAKEFLAGS make openssl build fail. |
gokhlayeh@7705 | 26 unset MAKEFLAGS |
slaxemulator@6192 | 27 |
gokhlayeh@7705 | 28 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be |
gokhlayeh@7705 | 29 # marked as not requiring an executable stack (compatibility improvement). |
pankso@15969 | 30 case "$ARCH" in |
pankso@15969 | 31 arm) |
pankso@15969 | 32 # BUG: shared libs are not built |
pankso@15969 | 33 ./Configure --prefix=/usr --openssldir=/etc/ssl \ |
pankso@15969 | 34 shared zlib enable-md2 -Wa,--noexecstack \ |
pankso@15969 | 35 linux-armv4 && |
pankso@15969 | 36 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && |
pankso@15969 | 37 make \ |
pankso@15969 | 38 CC=${HOST_SYSTEM}-gcc \ |
pankso@15969 | 39 AR="${HOST_SYSTEM}-ar r" \ |
pankso@15969 | 40 RANLIB=${HOST_SYSTEM}-ranlib ;; |
pankso@15969 | 41 i486) |
al@19604 | 42 ./config --prefix=/usr --openssldir=/etc/ssl \ |
al@19604 | 43 shared zlib zlib-dynamic enable-md2 -Wa,--noexecstack && |
al@19604 | 44 make depend ;; |
pankso@15969 | 45 esac && |
pankso@15969 | 46 # Install |
pankso@16497 | 47 make INSTALL_PREFIX=$DESTDIR \ |
pankso@16497 | 48 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install |
pankso@28 | 49 } |
pankso@28 | 50 |
pankso@15969 | 51 testsuite() |
pankso@15969 | 52 { |
pankso@15969 | 53 readelf -h $install/usr/bin/openssl |
pankso@15969 | 54 } |
al@19736 | 55 |
al@19736 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19736 | 57 genpkg_rules() |
al@19736 | 58 { |
al@19736 | 59 case $PACKAGE in |
al@19736 | 60 openssl) |
al@19736 | 61 copy etc/ bin/ engines/ |
al@19736 | 62 DEPENDS="libcrypto libssl" |
al@19736 | 63 ;; |
al@19736 | 64 libcrypto) |
al@19736 | 65 copy libcrypto*.so* |
al@19736 | 66 DEPENDS=" " |
al@19736 | 67 CAT="security|general purpose cryptographic library" |
al@19736 | 68 ;; |
al@19736 | 69 libcrypto-dev) |
al@19737 | 70 copy libcrypto*.a libcrypto*.pc |
al@19736 | 71 DEPENDS="pkg-config" |
al@19736 | 72 CAT="development|general purpose cryptographic library, development files" |
al@19736 | 73 ;; |
al@19736 | 74 libssl) |
al@19736 | 75 copy libssl.so* |
al@19736 | 76 DEPENDS="libcrypto" |
al@19736 | 77 CAT="security|OpenSSL libraries" |
al@19736 | 78 ;; |
al@19736 | 79 openssl-dev) |
al@19736 | 80 copy @dev |
al@19736 | 81 find $fs -name 'libcrypto*' -delete |
al@19736 | 82 DEPENDS="libcrypto-dev pkg-config" |
al@19736 | 83 ;; |
al@19736 | 84 esac |
al@19736 | 85 } |