summaryrefslogtreecommitdiff
path: root/security/gnupg
diff options
context:
space:
mode:
Diffstat (limited to 'security/gnupg')
-rw-r--r--security/gnupg/Makefile57
-rw-r--r--security/gnupg/PLIST16
-rw-r--r--security/gnupg/distinfo18
-rw-r--r--security/gnupg/patches/patch-aa31
-rw-r--r--security/gnupg/patches/patch-ab31
-rw-r--r--security/gnupg/patches/patch-ac17
-rw-r--r--security/gnupg/patches/patch-ad20
-rw-r--r--security/gnupg/patches/patch-ae20
-rw-r--r--security/gnupg/patches/patch-af22
9 files changed, 89 insertions, 143 deletions
diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile
index 9255abe9235..0fe94ff96e7 100644
--- a/security/gnupg/Makefile
+++ b/security/gnupg/Makefile
@@ -1,11 +1,17 @@
-# $NetBSD: Makefile,v 1.34 2002/10/01 19:53:54 chris Exp $
+# $NetBSD: Makefile,v 1.35 2002/10/09 14:16:55 itojun Exp $
#
-DISTNAME= gnupg-1.0.7
-PKGREVISION= 2
+DISTNAME= gnupg-1.2.0
CATEGORIES= security
-MASTER_SITES= ftp://ftp.gnupg.org/pub/gcrypt/gnupg/
-# don't remove this -- we may add idea.c to it below
+MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gnupg/ \
+ ftp://ftp.planetmirror.com/pub/gnupg/ \
+ ftp://ftp.ring.gr.jp/pub/pgp/ \
+ ftp://gd.tuwien.ac.at/privacy/gnupg/ \
+ ftp://ftp.jyu.fi/pub/crypt/gcrypt/ \
+ ftp://ftp.cert.dfn.de/pub/tools/crypt/gcrypt/ \
+ ftp://hal.csd.auth.gr/mirrors/gnupg/
+EXTRACT_SUFX= .tar.bz2
+# don't remove this -- we may add idea.c.gz to it below
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= wiz@netbsd.org
@@ -13,41 +19,48 @@ HOMEPAGE= http://www.gnupg.org/
COMMENT= Privacy Guard, a public-Key encryption and digital signature utility
BUILD_USES_MSGFMT= yes
-USE_BUILDLINK2= yes
CRYPTO= yes
GNU_CONFIGURE= yes
+USE_BUILDLINK2= yes
USE_GMAKE= yes
+CONFIGURE_ARGS+=--enable-tiger --with-static-rnd=auto
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-INFO_FILES= gpgv.info
+INFO_FILES= gpg.info gpgv.info
.include "../../mk/bsd.prefs.mk"
-BUILD_DEFS+= USE_IDEA
+BUILD_DEFS+= USE_I586 USE_IDEA USE_OPENLDAP
+
+.if defined(USE_I586) && ${USE_I586} == YES
+# use assembler routines optimized for i586
+ONLY_FOR_PLATFORM= *-*-i386
+MACHINE_GNU_ARCH= i586
+.endif
.if defined(USE_IDEA) && ${USE_IDEA} == YES
# use of IDEA as crypto function
-LICENCE= fee-based-commercial-use
-MASTER_SITES+= ftp://ftp.gnupg.org/pub/gcrypt/contrib/
-DISTFILES+= idea.c.20010605
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-PLIST_SUBST+= IDEA=""
-
-post-extract:
- ${CP} ${_DISTDIR}/idea.c.20010605 ${WRKSRC}/idea.c
+LICENCE= fee-based-commercial-use
+DISTFILES+= idea.c.gz
+SITES_idea.c.gz=ftp://ftp.gnupg.dk/pub/contrib-dk/
-post-build:
- cd ${WRKSRC} && \
- ${BUILDLINK_CC} ${CFLAGS} -shared -Wl,-Bshareable -fPIC -o idea idea.c
+pre-configure:
+ ${GZCAT} ${DISTDIR}/idea.c.gz > ${WRKSRC}/cipher/idea.c
+.endif
-post-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/idea ${PREFIX}/lib/gnupg
+.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == YES
+.include "../../databases/openldap/buildlink2.mk"
+PLIST_SUBST+= OPENLDAP=""
.else
-PLIST_SUBST+= IDEA="@comment "
+CONFIGURE_ARGS+=--disable-ldap
+PLIST_SUBST+= OPENLDAP="@comment "
.endif
+regress:
+ cd ${WRKSRC} && make check
+
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
diff --git a/security/gnupg/PLIST b/security/gnupg/PLIST
index 72bf5e6f92f..9bf1cd24d09 100644
--- a/security/gnupg/PLIST
+++ b/security/gnupg/PLIST
@@ -1,20 +1,22 @@
-@comment $NetBSD: PLIST,v 1.5 2002/08/25 21:50:36 jlam Exp $
+@comment $NetBSD: PLIST,v 1.6 2002/10/09 14:16:55 itojun Exp $
bin/gpg
-bin/gpgkeys_mailto
bin/gpgsplit
bin/gpgv
+@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/gpg.info
@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/gpgv.info
+info/gpg.info
info/gpgv.info
+@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/gpg.info
@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/gpgv.info
-${IDEA}lib/gnupg/idea
-lib/gnupg/rndegd
-lib/gnupg/rndunix
-lib/gnupg/tiger
+libexec/gnupg/gpgkeys_mailto
+${OPENLDAP}libexec/gnupg/gpgkeys_ldap
man/man1/gpg.1
man/man1/gpgv.1
+man/man7/gnupg.7
share/gnupg/FAQ
share/gnupg/faq.html
share/gnupg/options.skel
+${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/gnupg.mo
${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/gnupg.mo
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/gnupg.mo
${PKGLOCALEDIR}/locale/de/LC_MESSAGES/gnupg.mo
@@ -34,4 +36,4 @@ ${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/gnupg.mo
${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/gnupg.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gnupg.mo
@dirrm share/gnupg
-@dirrm lib/gnupg
+@dirrm libexec/gnupg
diff --git a/security/gnupg/distinfo b/security/gnupg/distinfo
index b9acca5a474..b009d8d4d88 100644
--- a/security/gnupg/distinfo
+++ b/security/gnupg/distinfo
@@ -1,12 +1,8 @@
-$NetBSD: distinfo,v 1.11 2002/09/30 22:41:30 chris Exp $
+$NetBSD: distinfo,v 1.12 2002/10/09 14:16:55 itojun Exp $
-SHA1 (gnupg-1.0.7.tar.gz) = 46da038c60143fa49abae2fae6fcbd0f58f7a46e
-Size (gnupg-1.0.7.tar.gz) = 2399025 bytes
-SHA1 (idea.c.20010605) = f6e237b84285964f09b3806b91170b6523384a48
-Size (idea.c.20010605) = 15480 bytes
-SHA1 (patch-aa) = fffd3e55792bb27df002bacbc5d8bf9096d5dd64
-SHA1 (patch-ab) = ce3b5ff0331e51ca6cd11b969e8df3719ca5d547
-SHA1 (patch-ac) = 9e3d0c6a7b828e52f5a773591f87e4a9072ad698
-SHA1 (patch-ad) = 55ca924c9aefe9eeca44b301ac523e7ebb2514e9
-SHA1 (patch-ae) = ff58490a6505e333f776efa7cafaa269c4833597
-SHA1 (patch-af) = 804f28db69c9d0aa7c1cfd3237b9a5adb1e95ad9
+SHA1 (gnupg-1.2.0.tar.bz2) = 67a2cf5d046967b7655890aa67d59f4509fe361e
+Size (gnupg-1.2.0.tar.bz2) = 1849154 bytes
+SHA1 (idea.c.gz) = cd29040234a33cbfa9b87752c8cbb2adbccd9e95
+Size (idea.c.gz) = 4538 bytes
+SHA1 (patch-aa) = 643a69496655af28df525c93d8e57f1b69e55b0d
+SHA1 (patch-ab) = e57e8dc8b79a18f255d99853846528b5b7943388
diff --git a/security/gnupg/patches/patch-aa b/security/gnupg/patches/patch-aa
index 906c88fdac5..7c29a444418 100644
--- a/security/gnupg/patches/patch-aa
+++ b/security/gnupg/patches/patch-aa
@@ -1,13 +1,20 @@
-$NetBSD: patch-aa,v 1.6 2001/05/23 15:35:01 wiz Exp $
+$NetBSD: patch-aa,v 1.7 2002/10/09 14:16:56 itojun Exp $
---- cipher/Makefile.am.orig Thu Mar 8 14:47:11 2001
-+++ cipher/Makefile.am
-@@ -43,7 +43,7 @@
- endif
-
-
--DYNLINK_MOD_CFLAGS = -DIS_MODULE @DYNLINK_MOD_CFLAGS@
-+DYNLINK_MOD_CFLAGS = -DIS_MODULE -fPIC @DYNLINK_MOD_CFLAGS@
-
- #libcipher_a_LDFLAGS =
- libcipher_a_SOURCES = cipher.c \
+--- configure.orig Sat Sep 21 12:32:56 2002
++++ configure Sun Sep 29 23:39:25 2002
+@@ -4792,8 +4792,14 @@
+ NAME_OF_DEV_RANDOM="/dev/random"
+ NAME_OF_DEV_URANDOM="/dev/urandom"
+ case "${target}" in
+- *-openbsd* | *-netbsd*)
++ *-openbsd*)
+ NAME_OF_DEV_RANDOM="/dev/srandom"
++ NAME_OF_DEV_URANDOM="/dev/urandom"
++ DYNLINK_MOD_CFLAGS="-shared -rdynamic $CFLAGS_PIC -Wl,-Bshareable -Wl,-x"
++ ;;
++
++ *-netbsd*)
++ NAME_OF_DEV_RANDOM="/dev/random"
+ NAME_OF_DEV_URANDOM="/dev/urandom"
+ ;;
+ esac
diff --git a/security/gnupg/patches/patch-ab b/security/gnupg/patches/patch-ab
index 3bc581e00e3..43ad5db1bfc 100644
--- a/security/gnupg/patches/patch-ab
+++ b/security/gnupg/patches/patch-ab
@@ -1,13 +1,20 @@
-$NetBSD: patch-ab,v 1.13 2002/05/07 18:48:47 wiz Exp $
-
---- cipher/Makefile.in.orig Mon Apr 29 17:06:11 2002
-+++ cipher/Makefile.in
-@@ -129,7 +129,7 @@
- am__quote = @am__quote@
- install_sh = @install_sh@
-
--DYNLINK_MOD_CFLAGS = -DIS_MODULE @DYNLINK_MOD_CFLAGS@
-+DYNLINK_MOD_CFLAGS = -DIS_MODULE -fPIC @DYNLINK_MOD_CFLAGS@
-
- INCLUDES = -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl
+$NetBSD: patch-ab,v 1.14 2002/10/09 14:16:56 itojun Exp $
+--- configure.ac.orig Sat Sep 21 12:19:15 2002
++++ configure.ac Sun Sep 29 23:40:20 2002
+@@ -453,8 +453,14 @@
+ NAME_OF_DEV_RANDOM="/dev/random"
+ NAME_OF_DEV_URANDOM="/dev/urandom"
+ case "${target}" in
+- *-openbsd* | *-netbsd*)
++ *-openbsd*)
+ NAME_OF_DEV_RANDOM="/dev/srandom"
++ NAME_OF_DEV_URANDOM="/dev/urandom"
++ DYNLINK_MOD_CFLAGS="-shared -rdynamic $CFLAGS_PIC -Wl,-Bshareable -Wl,-x"
++ ;;
++
++ *-netbsd*)
++ NAME_OF_DEV_RANDOM="/dev/random"
+ NAME_OF_DEV_URANDOM="/dev/urandom"
+ ;;
+ esac
diff --git a/security/gnupg/patches/patch-ac b/security/gnupg/patches/patch-ac
deleted file mode 100644
index 5e24c169a30..00000000000
--- a/security/gnupg/patches/patch-ac
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ac,v 1.11 2002/05/07 18:48:47 wiz Exp $
-
---- mpi/config.links.orig Thu Apr 18 12:10:40 2002
-+++ mpi/config.links
-@@ -119,6 +119,12 @@
- path="sparc32v8 sparc32"
- mpi_extra_modules="udiv"
- ;;
-+ sparc64-*-netbsd)
-+ # There are no sparc64 assembler modules that work, so
-+ # just use generic C functions
-+ echo '/* configured for sparc64-*-netbsd */' >>./mpi/asm-syntax.h
-+ path=""
-+ ;;
- sparc64-sun-solaris2*)
- # Got a report that udiv is missing, so we try this one
- echo '/* configured for sparc64-sun-solaris2 */' >>./mpi/asm-syntax.h
diff --git a/security/gnupg/patches/patch-ad b/security/gnupg/patches/patch-ad
deleted file mode 100644
index b2d69ed793d..00000000000
--- a/security/gnupg/patches/patch-ad
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-ad,v 1.2 2002/08/25 21:50:37 jlam Exp $
-
---- configure.orig Mon Apr 29 16:59:16 2002
-+++ configure
-@@ -3928,8 +3928,14 @@
- NAME_OF_DEV_RANDOM="/dev/random"
- NAME_OF_DEV_URANDOM="/dev/urandom"
- case "${target}" in
-- *-openbsd* | *-netbsd*)
-+ *-openbsd*)
- NAME_OF_DEV_RANDOM="/dev/srandom"
-+ NAME_OF_DEV_URANDOM="/dev/urandom"
-+ DYNLINK_MOD_CFLAGS="-shared -rdynamic $CFLAGS_PIC -Wl,-Bshareable -Wl,-x"
-+ ;;
-+
-+ *-netbsd*)
-+ NAME_OF_DEV_RANDOM="/dev/random"
- NAME_OF_DEV_URANDOM="/dev/urandom"
- DYNLINK_MOD_CFLAGS="-shared -rdynamic $CFLAGS_PIC -Wl,-Bshareable -Wl,-x"
- ;;
diff --git a/security/gnupg/patches/patch-ae b/security/gnupg/patches/patch-ae
deleted file mode 100644
index e7975763ee7..00000000000
--- a/security/gnupg/patches/patch-ae
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-ae,v 1.2 2002/08/25 21:50:38 jlam Exp $
-
---- configure.ac.orig Mon Apr 29 16:56:08 2002
-+++ configure.ac
-@@ -325,8 +325,14 @@
- NAME_OF_DEV_RANDOM="/dev/random"
- NAME_OF_DEV_URANDOM="/dev/urandom"
- case "${target}" in
-- *-openbsd* | *-netbsd*)
-+ *-openbsd*)
- NAME_OF_DEV_RANDOM="/dev/srandom"
-+ NAME_OF_DEV_URANDOM="/dev/urandom"
-+ DYNLINK_MOD_CFLAGS="-shared -rdynamic $CFLAGS_PIC -Wl,-Bshareable -Wl,-x"
-+ ;;
-+
-+ *-netbsd*)
-+ NAME_OF_DEV_RANDOM="/dev/random"
- NAME_OF_DEV_URANDOM="/dev/urandom"
- DYNLINK_MOD_CFLAGS="-shared -rdynamic $CFLAGS_PIC -Wl,-Bshareable -Wl,-x"
- ;;
diff --git a/security/gnupg/patches/patch-af b/security/gnupg/patches/patch-af
deleted file mode 100644
index c3653f509fa..00000000000
--- a/security/gnupg/patches/patch-af
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-af,v 1.1 2002/09/30 22:41:31 chris Exp $
-
---- cipher/dynload.c.orig Mon Sep 30 23:34:34 2002
-+++ cipher/dynload.c Mon Sep 30 23:35:18 2002
-@@ -287,7 +287,7 @@
- goto failure;
- }
- name = (char**)dlsym(el->handle, SYMBOL_VERSION);
-- if( (err=dlerror()) ) {
-+ if( (name == NULL) && (err=dlerror()) ) {
- log_error("%s: not a gnupg extension: %s\n", el->name, err );
- goto failure;
- }
-@@ -332,7 +332,7 @@
-
- #ifdef HAVE_DL_DLOPEN
- sym = dlsym(el->handle, SYMBOL_ENUM);
-- if( (err=dlerror()) ) {
-+ if( (sym == NULL) && (err=dlerror()) ) {
- log_error("%s: invalid gnupg extension: %s\n", el->name, err );
- goto failure;
- }