summaryrefslogtreecommitdiff
path: root/security/gnupg/Makefile
diff options
context:
space:
mode:
authorwiz <wiz>2001-01-29 11:52:59 +0000
committerwiz <wiz>2001-01-29 11:52:59 +0000
commitd49109cd5a8762dbd3218a41b8ee6e8de35e3df0 (patch)
treea1095282b996c564102eca279b54ad39e41e21c3 /security/gnupg/Makefile
parent6f67c266b33dce4066b50889aecc6f2385bd767e (diff)
downloadpkgsrc-d49109cd5a8762dbd3218a41b8ee6e8de35e3df0.tar.gz
Update gnupg to 1.0.4nb2:
Fix a bug in ~/.gnupg creation. Honor USE_IDEA, and add the IDEA extension in that case. Addresses pkg/11876.
Diffstat (limited to 'security/gnupg/Makefile')
-rw-r--r--security/gnupg/Makefile29
1 files changed, 27 insertions, 2 deletions
diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile
index 525df0a7c87..88ef1c9eee5 100644
--- a/security/gnupg/Makefile
+++ b/security/gnupg/Makefile
@@ -1,11 +1,13 @@
-# $NetBSD: Makefile,v 1.19 2000/11/30 00:11:26 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2001/01/29 11:53:02 wiz Exp $
# FreeBSD Id: Makefile,v 1.20 1997/08/27 13:06:01 ache Exp
#
DISTNAME= gnupg-1.0.4
-PKGNAME= ${DISTNAME}nb1
+PKGNAME= ${DISTNAME}nb2
CATEGORIES= security
MASTER_SITES= ftp://ftp.gnupg.org/pub/gcrypt/gnupg/
+# don't remove this -- we may add idea.c to it below
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= wiz@netbsd.org
HOMEPAGE= http://www.gnupg.org/
@@ -17,9 +19,32 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LIBINTL= yes
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
.include "../../mk/bsd.prefs.mk"
+BUILD_DEFS+= USE_IDEA
+
+.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
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+PLIST_SUBST+= IDEA=""
+
+post-extract:
+ ${CP} ${_DISTDIR}/idea.c ${WRKSRC}
+
+post-build:
+ cd ${WRKSRC} && \
+ ${CC} -shared -Wl,-Bshareable -fPIC -o idea idea.c
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/idea ${PREFIX}/lib/gnupg
+.else
+PLIST_SUBST+= IDEA="@comment "
+.endif
.if ${OPSYS} == "SunOS"
DEPENDS+= zlib-1.1.3:../../devel/zlib