wok-6.x annotate openssl/receipt @ rev 20603

Update iptraf & gcc3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 17 12:19:32 2018 +0100 (2018-12-17)
parents d5a889ec499e
children dad8b5aae26a
rev   line source
pankso@28 1 # SliTaz package receipt.
pankso@28 2
pankso@28 3 PACKAGE="openssl"
erkan@20314 4 VERSION="1.0.2o"
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)
pascal@20315 45 MACHINE=i686 \
al@19661 46 ./config --prefix=/usr --openssldir=/etc/ssl \
al@19661 47 shared zlib zlib-dynamic enable-md2 -Wa,--noexecstack &&
al@19661 48 make depend ;;
pankso@15969 49 esac &&
pankso@15969 50 # Install
pankso@16497 51 make INSTALL_PREFIX=$DESTDIR \
pankso@16497 52 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install
pankso@28 53 }
pankso@28 54
pankso@28 55 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@28 56 genpkg_rules()
pankso@28 57 {
al@19661 58 cook_copy_folders etc bin engines
pankso@28 59 }
pankso@15969 60
pankso@15969 61 testsuite()
pankso@15969 62 {
pankso@15969 63 readelf -h $install/usr/bin/openssl
pankso@15969 64 }