From af2516811e44b2a9abb4185a3d38ccf43dd1d03d Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Sat, 22 May 2010 19:45:21 +0000 Subject: [PATCH] Add gnutls with bep contributed by michaelvoliveira(with changes by me) and patch from kaliber. It's completely untested because one of the dependencies fails to build(libgpg-error). --- net-libs/gnutls/gnutls-2.8.6.bep | 31 ++++++++++++++++++++++ net-libs/gnutls/patches/gnutls-2.8.6.patch | 21 +++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 net-libs/gnutls/gnutls-2.8.6.bep create mode 100644 net-libs/gnutls/patches/gnutls-2.8.6.patch diff --git a/net-libs/gnutls/gnutls-2.8.6.bep b/net-libs/gnutls/gnutls-2.8.6.bep new file mode 100644 index 000000000..c4a7d7797 --- /dev/null +++ b/net-libs/gnutls/gnutls-2.8.6.bep @@ -0,0 +1,31 @@ +DESCRIPTION="A TLS 1.0 and SSL 3.0 implementation for the GNU project" +HOMEPAGE="http://www.gnu.org/software/gnutls/" +SRC_URI="ftp://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2" +CHECKSUM_MD5="eb0a6d7d3cb9ac684d971c14f9f6d3ba" +REVISION="1" +STATUS_HAIKU="untested" +DEPEND="dev-libs/libgcrypt >= 1.4.5 + dev-libs/libgpg-error >= 1.7" +LICENSE="GNU LGPL v2.1" +COPYRIGHT="2009-2010 Free Software Fundation Inc. + 2004-2008 Simon Josefsson + 2000-2004 Nikos Mavrogiannopoulos" +BUILD { + cd gnutls-2.8.6 + libtoolize --force --copy --install + autoreconf + cd lib + libtoolize --force --copy --install + autoreconf + cd .. + cd libextra + libtoolize --force --copy --install + autoreconf + cd .. + ./configure --prefix=/boot/common + make +} +INSTALL { + cd gnutls-2.8.6 + make install +} diff --git a/net-libs/gnutls/patches/gnutls-2.8.6.patch b/net-libs/gnutls/patches/gnutls-2.8.6.patch new file mode 100644 index 000000000..18d63b65a --- /dev/null +++ b/net-libs/gnutls/patches/gnutls-2.8.6.patch @@ -0,0 +1,21 @@ +diff -Naur gnutls-2.8.6/doc/scripts/sort2.pl gnutls-2.8.6-haiku/doc/scripts/sort2.pl +--- gnutls-2.8.6/doc/scripts/sort2.pl 2009-06-02 15:59:32.012058624 -0300 ++++ gnutls-2.8.6-haiku/doc/scripts/sort2.pl 2010-05-14 23:31:26.698875904 -0300 +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!/bin/env perl + + sub key_of_record { + local($record) = @_; +diff -Naur gnutls-2.8.6/gl/string.in.h gnutls-2.8.6-haiku/gl/string.in.h +--- gnutls-2.8.6/gl/string.in.h 2009-06-02 15:59:32.064749568 -0300 ++++ gnutls-2.8.6-haiku/gl/string.in.h 2010-05-14 23:33:36.399245312 -0300 +@@ -36,7 +36,7 @@ + # endif + /* The attribute __pure__ was added in gcc 2.96. */ + # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96) +-# define __pure__ /* empty */ ++# define __pure__ none /* empty */ + # endif + #endif +