pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/caff Allow choosing gnupg1, gnupg2, or gnupg2...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2c8e1acdaa06
branches:  trunk
changeset: 363350:2c8e1acdaa06
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jun 06 20:37:15 2017 +0000

description:
Allow choosing gnupg1, gnupg2, or gnupg21. Default to gnupg2. Bump PKGREVISION.

diffstat:

 security/caff/Makefile   |   6 ++++--
 security/caff/options.mk |  16 ++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r 470e21239dec -r 2c8e1acdaa06 security/caff/Makefile
--- a/security/caff/Makefile    Tue Jun 06 17:34:32 2017 +0000
+++ b/security/caff/Makefile    Tue Jun 06 20:37:15 2017 +0000
@@ -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 @@
 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 @@
 
 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 -r 470e21239dec -r 2c8e1acdaa06 security/caff/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/caff/options.mk  Tue Jun 06 20:37:15 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index