From 8287244fc119d4167bf5a55b2c4718a65c455e92 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 5 Jan 2011 20:44:56 +0100 Subject: [PATCH] new package: add package 'gnutls' Signed-off-by: Stephan Raue --- packages/security/gnutls/build | 36 ++++++++++++++++++++++++++++++++ packages/security/gnutls/install | 7 +++++++ packages/security/gnutls/meta | 16 ++++++++++++++ 3 files changed, 59 insertions(+) create mode 100755 packages/security/gnutls/build create mode 100755 packages/security/gnutls/install create mode 100644 packages/security/gnutls/meta diff --git a/packages/security/gnutls/build b/packages/security/gnutls/build new file mode 100755 index 0000000000..94cf5e3301 --- /dev/null +++ b/packages/security/gnutls/build @@ -0,0 +1,36 @@ +#!/bin/sh + +. config/options $1 + +# gnutls fails compiling with LTO support + strip_lto + +cd $PKG_BUILD + +ac_cv_libz=yes \ +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --enable-shared \ + --enable-cxx \ + --enable-openssl-compatibility \ + --disable-guile \ + --with-included-opencdk \ + --with-included-libtasn1 \ + --with-lzo \ + --with-included-libcfg \ + --without-libreadline-prefix \ + --with-libgcrypt-prefix="$SYSROOT_PREFIX/usr" \ + --disable-gtk-doc \ + --disable-gtk-doc-html \ + --disable-gtk-doc-pdf \ + --disable-nls \ + --with-gnu-ld + +# --enable-cryptodev \ # TODO: add later + +make +$MAKEINSTALL diff --git a/packages/security/gnutls/install b/packages/security/gnutls/install new file mode 100755 index 0000000000..9497a307d6 --- /dev/null +++ b/packages/security/gnutls/install @@ -0,0 +1,7 @@ +#!/bin/sh + +. config/options + +mkdir -p $INSTALL/usr/lib + cp -P $PKG_BUILD/lib/.libs/*.so* $INSTALL/usr/lib + cp -P $PKG_BUILD/libextra/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/security/gnutls/meta b/packages/security/gnutls/meta new file mode 100644 index 0000000000..3a47b00b9d --- /dev/null +++ b/packages/security/gnutls/meta @@ -0,0 +1,16 @@ +PKG_NAME="gnutls" +PKG_VERSION="2.10.4" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="LGPL" +PKG_SITE="http://www.gnutls.org/" +PKG_URL="ftp://ftp.gnutls.org/pub/gnutls/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="zlib libgcrypt" +PKG_BUILD_DEPENDS="toolchain zlib libgcrypt" +PKG_PRIORITY="optional" +PKG_SECTION="security" +PKG_SHORTDESC="gnutls: Development Library for TLS applications" +PKG_LONGDESC="GnuTLS is a project that aims to develop a library which provides a secure layer, over a reliable transport layer. Currently the GnuTLS library implements the proposed standards by the IETF's TLS working group. Quoting from RFC2246 - the TLS 1.0 protocol specification: The TLS protocol provides communications privacy over the Internet. The protocol allows client/server applications to communicate in a way that is designed to prevent eavesdropping, tampering, or message forgery." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"