pkgsrc-Users archive

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

security/password-store: add gnupg21 flavor



Hi,

I tend to use gnupg21 rather than gnupg2, and I noticed that
password-store works well with gnupg21 (it depends on gnupg2 by
default).

Since gnupg2 and gnupg21 doesn't co-exist easily on one system, I added
a flavor of the port that replaces the dependency on gnupg2 with a
dependency on gnupg21:


Index: Makefile
===================================================================
RCS file: /Users/kk/NetBSD-CVS/pkgsrc/security/password-store/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	15 Feb 2015 18:58:40 -0000	1.4
+++ Makefile	25 Aug 2016 09:31:59 -0000
@@ -10,12 +10,13 @@
 COMMENT=	Standard UNIX password manager
 LICENSE=	gnu-gpl-v2
 
+PKGREVISION=	1
+
 USE_LANGUAGES=	# none
 NO_BUILD=	yes
 USE_TOOLS+=	gmake pax bash:run
 
 DEPENDS+=	getopt>=1.1.6:../../misc/getopt
-DEPENDS+=	gnupg2>=2.0.26:../../security/gnupg2
 DEPENDS+=	pwgen>=2.06:../../sysutils/pwgen
 DEPENDS+=	tree>=1.7.0:../../sysutils/tree
 
Index: options.mk
===================================================================
RCS file: /Users/kk/NetBSD-CVS/pkgsrc/security/password-store/options.mk,v
retrieving revision 1.1
diff -u -r1.1 options.mk
--- options.mk	5 Jan 2015 11:32:49 -0000	1.1
+++ options.mk	25 Aug 2016 09:26:23 -0000
@@ -1,8 +1,8 @@
-# $NetBSD$
+# $NetBSD: options.mk,v 1.1 2015/01/05 11:32:49 imil Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.pass
 
-PKG_SUPPORTED_OPTIONS=	git xclip
+PKG_SUPPORTED_OPTIONS=	git xclip gnupg21
 PKG_SUGGESTED_OPTIONS=	git
 
 .include "../../mk/bsd.options.mk"
@@ -15,3 +15,9 @@
 .include "../../devel/git/Makefile.version"
 DEPENDS+=	git-base>=${GIT_VERSION}:../../devel/git-base
 .endif
+
+.if !empty(PKG_OPTIONS:Mgnupg21)
+DEPENDS+=	gnupg21>=2.1:../../security/gnupg21
+.else
+DEPENDS+=	gnupg2>=2.0.26:../../security/gnupg2
+.endif

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index