summaryrefslogtreecommitdiff
path: root/security/caff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-06-06 20:37:15 +0000
committerwiz <wiz@pkgsrc.org>2017-06-06 20:37:15 +0000
commit93f5b8442c287412011a9fcdf76ad48e95f4f273 (patch)
treecceb627f7891d040e046c987947fe0e6d216b7c5 /security/caff
parent71d8d15020957058a460468504b6013791535617 (diff)
downloadpkgsrc-93f5b8442c287412011a9fcdf76ad48e95f4f273.tar.gz
Allow choosing gnupg1, gnupg2, or gnupg21. Default to gnupg2. Bump PKGREVISION.
Diffstat (limited to 'security/caff')
-rw-r--r--security/caff/Makefile6
-rw-r--r--security/caff/options.mk16
2 files changed, 20 insertions, 2 deletions
diff --git a/security/caff/Makefile b/security/caff/Makefile
index d1fc8cb4fe0..65dc463f304 100644
--- a/security/caff/Makefile
+++ b/security/caff/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.43 2016/10/09 20:57:05 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2017/06/06 20:37:15 wiz Exp $
VERSION= 2.5
DISTNAME= signing-party_${VERSION}.orig
PKGNAME= caff-${VERSION}
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/s/signing-party/}
@@ -17,7 +18,6 @@ WRKSRC= ${WRKDIR}
USE_TOOLS+= gmake pod2man
USE_TOOLS+= perl:run
-DEPENDS+= gnupg>=1.3.92:../../security/gnupg
DEPENDS+= p5-Text-Template-[0-9]*:../../textproc/p5-Text-Template
DEPENDS+= p5-Net-IDN-Encode-[0-9]*:../../textproc/p5-Net-IDN-Encode
DEPENDS+= p5-MIME-tools-[0-9]*:../../mail/p5-MIME-tools
@@ -36,6 +36,8 @@ SUBST_SED.paths= -e 's,/usr/,${PREFIX}/,g'
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/caff share/examples/caff
+.include "options.mk"
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/caff/caff ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/caff/pgp-fixkey ${DESTDIR}${PREFIX}/bin
diff --git a/security/caff/options.mk b/security/caff/options.mk
new file mode 100644
index 00000000000..1732ed297a8
--- /dev/null
+++ b/security/caff/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2017/06/06 20:37:15 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.caff
+PKG_OPTIONS_REQUIRED_GROUPS= gnupg
+PKG_OPTIONS_GROUP.gnupg= gnupg1 gnupg2 gnupg21
+PKG_SUGGESTED_OPTIONS= gnupg2
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgnupg21)
+DEPENDS+= gnupg21>=2.1:../../security/gnupg21
+.elif !empty(PKG_OPTIONS:Mgnupg2)
+DEPENDS+= gnupg2>=2.0<2.1:../../security/gnupg2
+.else
+DEPENDS+= gnupg>=1.4.2:../../security/gnupg
+.endif