diff options
author | drochner <drochner> | 2013-07-24 16:17:02 +0000 |
---|---|---|
committer | drochner <drochner> | 2013-07-24 16:17:02 +0000 |
commit | 3b174d890c7436d03d048b86f6329ea301e5a905 (patch) | |
tree | 9cae3c19301af67d64eb3eb751944b3cb9a7920a /mail/spamassassin/options.mk | |
parent | d917ccc38b8491469ddf5b9542bd9682772321aa (diff) | |
download | pkgsrc-3b174d890c7436d03d048b86f6329ea301e5a905.tar.gz |
as in sysutils/duplicity, add a "gnupg2" option which makes that
gnupg2 is used rather than gnupg1 (off per default)
Diffstat (limited to 'mail/spamassassin/options.mk')
-rw-r--r-- | mail/spamassassin/options.mk | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/mail/spamassassin/options.mk b/mail/spamassassin/options.mk index 7bd35435a4f..c04b9d497b2 100644 --- a/mail/spamassassin/options.mk +++ b/mail/spamassassin/options.mk @@ -1,7 +1,7 @@ -# $NetBSD: options.mk,v 1.10 2012/06/12 15:45:59 wiz Exp $ +# $NetBSD: options.mk,v 1.11 2013/07/24 16:17:02 drochner Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.spamassassin -PKG_SUPPORTED_OPTIONS= inet6 ssl +PKG_SUPPORTED_OPTIONS= inet6 ssl gnupg2 # # Default options @@ -49,3 +49,18 @@ MAKE_PARAMS+= ENABLE_SSL=no .if !empty(PKG_OPTIONS:Minet6) DEPENDS+= p5-IO-Socket-INET6-[0-9]*:../../net/p5-IO-Socket-INET6 .endif + +# +# use gnupg2 instead of gnupg1 +# +.if !empty(PKG_OPTIONS:Mgnupg2) +DEPENDS+= gnupg2-[0-9]*:../../security/gnupg2 +GPGPATH= ${LOCALBASE}/bin/gpg2 +.else +DEPENDS+= gnupg>=1.0.0:../../security/gnupg +GPGPATH= ${LOCALBASE}/bin/gpg +.endif +SUBST_CLASSES+= gpgpath +SUBST_STAGE.gpgpath= pre-configure +SUBST_FILES.gpgpath= sa-update.raw +SUBST_VARS.gpgpath= GPGPATH |