new package: add package 'gnutls'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-01-05 20:44:56 +01:00
parent 155f3d2e9e
commit 8287244fc1
3 changed files with 59 additions and 0 deletions

36
packages/security/gnutls/build Executable file
View File

@ -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

View File

@ -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

View File

@ -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"