diff options
author | dougb <dougb@FreeBSD.org> | 2003-02-28 07:41:03 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2003-02-28 07:41:03 +0000 |
commit | e09644ac22be6bd685c917e2504cb6ab413d6a23 (patch) | |
tree | f86398e0e354556257da2211cb0d6bae07152e30 /mail | |
parent | 85036f451f38c4743f7bed18e8a4bee9eeb7ea35 (diff) | |
download | FreeBSD-ports-e09644ac22be6bd685c917e2504cb6ab413d6a23.zip FreeBSD-ports-e09644ac22be6bd685c917e2504cb6ab413d6a23.tar.gz |
Fix a problem with sa-learn when called with the --single option.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/p5-Mail-SpamAssassin/Makefile | 4 | ||||
-rw-r--r-- | mail/p5-Mail-SpamAssassin/files/patch-lib_Mail_SpamAssassin_CmdLearn.pm | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile index 1ed2b2e..9826e6a 100644 --- a/mail/p5-Mail-SpamAssassin/Makefile +++ b/mail/p5-Mail-SpamAssassin/Makefile @@ -7,6 +7,7 @@ PORTNAME= Mail-SpamAssassin PORTVERSION= 2.50 +PORTREVISION= 1 CATEGORIES= mail perl5 MASTER_SITES= http://spamassassin.org/released/ \ ${MASTER_SITE_PERL_CPAN} @@ -46,6 +47,9 @@ MAN1= spamd.1 spamassassin.1 spamc.1 sa-learn.1 DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +post-patch: + @${FIND} ${WRKSRC} -name \*.orig -delete + post-install: @${STRIP_CMD} ${PREFIX}/bin/spamc ${INSTALL_SCRIPT} ${FILESDIR}/spamd.sh ${PREFIX}/etc/rc.d/spamd.sh-dist diff --git a/mail/p5-Mail-SpamAssassin/files/patch-lib_Mail_SpamAssassin_CmdLearn.pm b/mail/p5-Mail-SpamAssassin/files/patch-lib_Mail_SpamAssassin_CmdLearn.pm new file mode 100644 index 0000000..f783829 --- /dev/null +++ b/mail/p5-Mail-SpamAssassin/files/patch-lib_Mail_SpamAssassin_CmdLearn.pm @@ -0,0 +1,27 @@ +--- lib/Mail/SpamAssassin/CmdLearn.pm.orig Tue Feb 18 17:29:45 2003 ++++ lib/Mail/SpamAssassin/CmdLearn.pm Thu Feb 27 18:53:49 2003 +@@ -24,7 +24,7 @@ + %opt = (); + + Getopt::Long::Configure(qw(bundling no_getopt_compat +- no_auto_abbrev no_ignore_case)); ++ permute no_auto_abbrev no_ignore_case)); + + GetOptions( + 'spam' => sub { $isspam = 1; }, +@@ -56,12 +56,12 @@ + 'file' => sub { $opt{'format'} = 'file'; }, + 'mbox' => sub { $opt{'format'} = 'mbox'; }, + +- 'single' => sub { +- $opt{'format'} = 'file'; push (@ARGV, '-'); +- }, ++ 'single' => sub { $opt{'format'} = 'file'; }, + + '<>' => \&target, + ) or usage(0, "Unknown option!"); ++ ++ if ($opt{'format'} eq 'file') { push (@ARGV, '-'); } + + if (defined $opt{'help'}) { usage(0, "For more information read the manual page"); } + if (defined $opt{'version'}) { |