wok annotate openssl/receipt @ rev 16505

Add dhid dyn IP daemon + add to ARM python-psutil and fix htop icon in /usr/share
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 24 14:08:25 2014 +0200 (2014-04-24)
parents d753d013d8bc
children fd5cd41b18aa
rev   line source
pankso@28 1 # SliTaz package receipt.
pankso@28 2
pankso@28 3 PACKAGE="openssl"
pascal@16390 4 VERSION="1.0.1g"
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"
pankso@28 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@28 10 WEB_SITE="http://www.openssl.org/"
pankso@28 11 WGET_URL="http://www.openssl.org/source/$TARBALL"
pascal@15472 12 TAGS="ssl security"
pankso@15969 13 HOST_ARCH="i486 arm"
pascal@15472 14
pankso@4332 15 DEPENDS="libcrypto libssl"
slaxemulator@6390 16 BUILD_DEPENDS="perl zlib-dev"
pankso@28 17
pankso@15969 18 # Perl is installed in cross env.
pankso@15969 19 case "$ARCH" in
pankso@15969 20 arm) BUILD_DEPENDS="" ;;
pankso@15969 21 esac
pankso@15969 22
pankso@28 23 # Rules to configure and make the package.
pankso@28 24 compile_rules()
pankso@28 25 {
gokhlayeh@7705 26 # MAKEFLAGS make openssl build fail.
gokhlayeh@7705 27 unset MAKEFLAGS
slaxemulator@6192 28
gokhlayeh@7705 29 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
gokhlayeh@7705 30 # marked as not requiring an executable stack (compatibility improvement).
pankso@15969 31 case "$ARCH" in
pankso@15969 32 arm)
pankso@15969 33 # BUG: shared libs are not built
pankso@15969 34 ./Configure --prefix=/usr --openssldir=/etc/ssl \
pankso@15969 35 shared zlib enable-md2 -Wa,--noexecstack \
pankso@15969 36 linux-armv4 &&
pankso@15969 37 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
pankso@15969 38 make \
pankso@15969 39 CC=${HOST_SYSTEM}-gcc \
pankso@15969 40 AR="${HOST_SYSTEM}-ar r" \
pankso@15969 41 RANLIB=${HOST_SYSTEM}-ranlib ;;
pankso@15969 42 i486)
pankso@15969 43 ./config --prefix=/usr --openssldir=/etc/ssl shared zlib \
pankso@15969 44 enable-md2 -Wa,--noexecstack &&
pankso@15969 45 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile &&
pankso@15969 46 make ;;
pankso@15969 47 esac &&
pankso@15969 48 # Install
pankso@16497 49 make INSTALL_PREFIX=$DESTDIR \
pankso@16497 50 MANDIR=/usr/share/man CC=${HOST_SYSTEM}-gcc install
pankso@28 51 }
pankso@28 52
pankso@28 53 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@28 54 genpkg_rules()
pankso@28 55 {
pankso@15969 56 mkdir -p $fs/usr/lib
pascal@15472 57 cp -a $install/etc $fs
pascal@15472 58 cp -a $install/usr/bin $fs/usr
pankso@15969 59 cp -a $install/usr/lib/engines $fs/usr/lib
pankso@28 60 }
pankso@15969 61
pankso@15969 62 testsuite()
pankso@15969 63 {
pankso@15969 64 readelf -h $install/usr/bin/openssl
pankso@15969 65 }