wok-next annotate gnutls/receipt @ rev 17396
Up gnutls (3.3.10)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 27 18:50:30 2014 +0100 (2014-11-27) |
parents | e62fe73c97ae |
children | 4a1d401a4034 |
rev | line source |
---|---|
pascal@2502 | 1 # SliTaz package receipt. |
erjo@180 | 2 |
erjo@180 | 3 PACKAGE="gnutls" |
pascal@17396 | 4 VERSION="3.3.10" |
erjo@180 | 5 CATEGORY="security" |
erjo@180 | 6 SHORT_DESC="GNU Transport Layer Security Library" |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@17396 | 9 TARBALL="$PACKAGE-$VERSION.tar.lz" |
erjo@180 | 10 WEB_SITE="http://www.gnu.org/software/gnutls/" |
pascal@17396 | 11 WGET_URL="ftp://ftp.gnutls.org/gcrypt/gnutls/v${VERSION%.*}/$TARBALL" |
pankso@16258 | 12 HOST_ARCH="i486 arm" |
erjo@180 | 13 |
pankso@16258 | 14 DEPENDS="nettle libgpg-error ncurses readline zlib gcc-lib-base |
pankso@16258 | 15 libgnutls libcrypto libtasn1" |
pankso@16258 | 16 BUILD_DEPENDS="libtasn1-dev ncurses-dev readline-dev nettle-dev |
pascal@17396 | 17 libgpg-error-dev libgcrypt-dev libcrypto-dev gmp-dev lzip" |
pankso@16258 | 18 |
pankso@16258 | 19 # Handle SliTaz arch. |
pankso@16258 | 20 case "$SLITAZ_ARCH" in |
pankso@16258 | 21 i?86) DEPENDS="$DEPENDS p11-kit" ;; |
pankso@16258 | 22 esac |
pankso@16258 | 23 |
pankso@16258 | 24 # Handle cross compilation. |
pankso@16258 | 25 case "$ARCH" in |
pankso@16258 | 26 i?86) |
pankso@16258 | 27 BUILD_DEPENDS="$BUILD_DEPENDS p11-kit-dev" ;; |
pankso@16258 | 28 arm*) |
pankso@16258 | 29 ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \ |
pankso@16258 | 30 --without-p11-kit --disable-rpath" ;; |
pankso@16258 | 31 esac |
slaxemulator@11295 | 32 |
erjo@180 | 33 # Rules to configure and make the package. |
erjo@180 | 34 compile_rules() |
erjo@180 | 35 { |
pascal@16053 | 36 # Apply http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0092 fix |
pascal@16053 | 37 # from https://www.gitorious.org/gnutls/gnutls/commit/6aa26f78150ccbdf0aec1878a41c17c41d358a3b |
pascal@16053 | 38 patch -p1 < $stuff/CVE-2014-0092.u |
pankso@16258 | 39 ./configure \ |
pankso@16258 | 40 --with-libgcrypt \ |
pankso@16258 | 41 --disable-guile \ |
pankso@16258 | 42 --with-zlib \ |
pankso@16258 | 43 $CONFIGURE_ARGS ${ARCH_ARGS} && |
slaxemulator@10270 | 44 make && make install |
erjo@180 | 45 } |
erjo@180 | 46 |
erjo@180 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@180 | 48 genpkg_rules() |
erjo@180 | 49 { |
erjo@11631 | 50 mkdir -p $fs/usr |
pascal@14999 | 51 cp -a $install/usr/bin $fs/usr |
erjo@180 | 52 } |
erjo@180 | 53 |