Added gnupg-1.4.10. All tests pass.

NOTE:Needs haikuporter >= r597 to download properly.
This commit is contained in:
Chris Roberts
2010-02-17 22:53:03 +00:00
parent db0ff23da0
commit ad01e2124e
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement."
HOMEPAGE="http://www.gnupg.org/"
SRC_URI="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.10.tar.bz2"
CHECKSUM_MD5="dcf7ed712997888d616e029637bfc303"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd gnupg-1.4.10
libtoolize --force --copy --install
autoconf
./configure --prefix=/boot/common
make
}
INSTALL {
cd gnupg-1.4.10
make install
}

View File

@@ -0,0 +1,5 @@
Package: gnupg
Version: 1.4.10
Copyright: 1998-2009 Free Software Foundation, Inc.
License: GNU GPL v3
URL: http://www.gnupg.org/

View File

@@ -0,0 +1,27 @@
diff -up gnupg-1.4.10/configure.ac.orig gnupg-1.4.10/configure.ac
--- gnupg-1.4.10/configure.ac.orig 2010-02-17 15:06:58.390594560 -0700
+++ gnupg-1.4.10/configure.ac 2010-02-17 15:07:20.451936256 -0700
@@ -657,6 +657,8 @@ dnl be detected.
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname,
[NETLIBS="-lnsl $NETLIBS"]))
+AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(network, gethostbyname,
+ [NETLIBS="-lnetwork $NETLIBS"]))
AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt,
[NETLIBS="-lsocket $NETLIBS"]))
diff -up gnupg-1.4.10/util/dotlock.c.orig gnupg-1.4.10/util/dotlock.c
--- gnupg-1.4.10/util/dotlock.c.orig 2010-02-17 15:07:04.697040896 -0700
+++ gnupg-1.4.10/util/dotlock.c 2010-02-17 15:07:12.601620480 -0700
@@ -432,7 +432,11 @@ make_dotlock( DOTLOCK h, long timeout )
{
#ifndef HAVE_DOSISH_SYSTEM
# ifndef __riscos__
+# ifdef __HAIKU__
+ if( !symlink(h->tname, h->lockname) )
+# else
if( !link(h->tname, h->lockname) )
+# endif
{
/* fixme: better use stat to check the link count */
h->locked = 1;