pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/spamassassin as in sysutils/duplicity, add a "gnu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a72b09db94b3
branches:  trunk
changeset: 622073:a72b09db94b3
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Jul 24 16:17:02 2013 +0000

description:
as in sysutils/duplicity, add a "gnupg2" option which makes that
gnupg2 is used rather than gnupg1 (off per default)

diffstat:

 mail/spamassassin/Makefile         |   3 +--
 mail/spamassassin/distinfo         |   3 ++-
 mail/spamassassin/options.mk       |  19 +++++++++++++++++--
 mail/spamassassin/patches/patch-ba |  25 +++++++++++++++++++++++++
 4 files changed, 45 insertions(+), 5 deletions(-)

diffs (92 lines):

diff -r d86337b7c9b1 -r a72b09db94b3 mail/spamassassin/Makefile
--- a/mail/spamassassin/Makefile        Wed Jul 24 15:32:48 2013 +0000
+++ b/mail/spamassassin/Makefile        Wed Jul 24 16:17:02 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.107 2013/05/31 12:41:21 wiz Exp $
+# $NetBSD: Makefile,v 1.108 2013/07/24 16:17:02 drochner Exp $
 
 DISTNAME=      Mail-SpamAssassin-3.3.2
 PKGNAME=       spamassassin-3.3.2
@@ -29,7 +29,6 @@
 PLIST_SUBST+=   RULESARCHIVEASC=${RULESARCHIVEASC:Q}
 PLIST_SUBST+=   RULESARCHIVESHA=${RULESARCHIVESHA:Q}
 
-DEPENDS+=      gnupg-[0-9]*:../../security/gnupg
 DEPENDS+=      p5-Archive-Tar>=1.23:../../archivers/p5-Archive-Tar
 DEPENDS+=      p5-DB_File-[0-9]*:../../databases/p5-DB_File
 DEPENDS+=      p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
diff -r d86337b7c9b1 -r a72b09db94b3 mail/spamassassin/distinfo
--- a/mail/spamassassin/distinfo        Wed Jul 24 15:32:48 2013 +0000
+++ b/mail/spamassassin/distinfo        Wed Jul 24 16:17:02 2013 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.58 2013/02/25 18:41:45 gdt Exp $
+$NetBSD: distinfo,v 1.59 2013/07/24 16:17:02 drochner Exp $
 
 SHA1 (Mail-SpamAssassin-3.3.2.tar.gz) = de954f69e190496eff4a796a9bab61747f03072b
 RMD160 (Mail-SpamAssassin-3.3.2.tar.gz) = 78e22ba6ba62a48fb7d24c40170124881b975fd9
@@ -17,3 +17,4 @@
 SHA1 (patch-ae) = d46b1d8f56c8c61936c307f74b39a49da1b1f353
 SHA1 (patch-aq) = 3a273c7742275647c2334382fed29c0ea33dfbd8
 SHA1 (patch-ay) = ca8ea0b1e6d8fddd29d6ae960e1bf6e534d2f424
+SHA1 (patch-ba) = 1842e3fc17b3d23309336e542635eeacb67461e8
diff -r d86337b7c9b1 -r a72b09db94b3 mail/spamassassin/options.mk
--- a/mail/spamassassin/options.mk      Wed Jul 24 15:32:48 2013 +0000
+++ b/mail/spamassassin/options.mk      Wed Jul 24 16:17:02 2013 +0000
@@ -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 @@
 .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
diff -r d86337b7c9b1 -r a72b09db94b3 mail/spamassassin/patches/patch-ba
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamassassin/patches/patch-ba        Wed Jul 24 16:17:02 2013 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ba,v 1.4 2013/07/24 16:17:02 drochner Exp $
+
+prepare for SUBST
+
+--- sa-update.raw.orig 2011-06-06 23:59:19.000000000 +0000
++++ sa-update.raw
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl -w -T
++#!/usr/pkg/bin/perl -w -T
+ 
+ # <@LICENSE>
+ # Licensed to the Apache Software Foundation (ASF) under one or more
+@@ -281,10 +281,10 @@ my $GPGPath;
+ if ($GPG_ENABLED || $opt{'import'}) {
+   # find GPG in the PATH
+   # bug 4958: for *NIX it's "gpg", in Windows it's "gpg.exe"
+-  $GPGPath = 'gpg' . $Config{_exe};
++  $GPGPath = '@GPGPATH@' . $Config{_exe};
+   dbg("gpg: Searching for '$GPGPath'");
+ 
+-  if ($GPGPath = Mail::SpamAssassin::Util::find_executable_in_env_path($GPGPath)) {
++  if (-f $GPGPath) {
+     dbg("gpg: found $GPGPath");
+ 
+     # bug 5030: if GPGPath has a space, put it in quotes



Home | Main Index | Thread Index | Old Index