wok view gnutls/receipt @ rev 16417

ARM: add libbsd and fix libnl *.a
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 17 14:30:15 2014 +0200 (2014-04-17)
parents 64b542b0abad
children 838687a9dc32
line source
1 # SliTaz package receipt.
3 PACKAGE="gnutls"
4 VERSION="2.12.14"
5 CATEGORY="security"
6 SHORT_DESC="GNU Transport Layer Security Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.gnu.org/software/gnutls/"
11 WGET_URL="http://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="nettle libgpg-error ncurses readline zlib gcc-lib-base
15 libgnutls libcrypto libtasn1"
16 BUILD_DEPENDS="libtasn1-dev ncurses-dev readline-dev nettle-dev
17 libgpg-error-dev libgcrypt-dev libcrypto-dev"
19 # Handle SliTaz arch.
20 case "$SLITAZ_ARCH" in
21 i?86) DEPENDS="$DEPENDS p11-kit" ;;
22 esac
24 # Handle cross compilation.
25 case "$ARCH" in
26 i?86)
27 BUILD_DEPENDS="$BUILD_DEPENDS p11-kit-dev" ;;
28 arm*)
29 ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \
30 --without-p11-kit --disable-rpath" ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 # Apply http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0092 fix
37 # from https://www.gitorious.org/gnutls/gnutls/commit/6aa26f78150ccbdf0aec1878a41c17c41d358a3b
38 patch -p1 < $stuff/CVE-2014-0092.u
39 ./configure \
40 --with-libgcrypt \
41 --disable-guile \
42 --with-zlib \
43 $CONFIGURE_ARGS ${ARCH_ARGS} &&
44 make && make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 }