diff options
author | ache <ache@FreeBSD.org> | 2002-02-26 18:18:58 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-02-26 18:18:58 +0800 |
commit | d923b7b58083a233dfe2b47bacc9bf880a4a6977 (patch) | |
tree | f144a1cacac35f0e2cea61d4ecbe6fd9376cff3a /mail | |
parent | 7d85d85ff9c201ff3aec1b67bdaa7237a0aa71db (diff) | |
download | freebsd-ports-gnome-d923b7b58083a233dfe2b47bacc9bf880a4a6977.tar.gz freebsd-ports-gnome-d923b7b58083a233dfe2b47bacc9bf880a4a6977.tar.zst freebsd-ports-gnome-d923b7b58083a233dfe2b47bacc9bf880a4a6977.zip |
1) Fix bug when only first locale checked for good charset
2) FIx bug with false ALL_CAPS positive on foreign subj
3) Clean *.orig after patch (they are installed otherwise)
Diffstat (limited to 'mail')
3 files changed, 26 insertions, 1 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile index a04060d8f9ba..ffa684b965f0 100644 --- a/mail/p5-Mail-SpamAssassin/Makefile +++ b/mail/p5-Mail-SpamAssassin/Makefile @@ -7,7 +7,7 @@ PORTNAME= Mail-SpamAssassin PORTVERSION= 2.01 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Mail @@ -27,6 +27,9 @@ MAN3= Mail::SpamAssassin.3 Mail::SpamAssassin::PerMsgStatus.3 \ MAN1PREFIX= ${PREFIX} MAN1= spamd.1 spamassassin.1 spamc.1 +post-patch: + @find ${WRKSRC} -type f -name "*.orig" -exec rm -f "{}" ";" + .if !defined(NOPORTDOCS) post-install: ${MKDIR} ${DOCSDIR} diff --git a/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::Locales.pm b/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::Locales.pm new file mode 100644 index 000000000000..34ed60bf65f3 --- /dev/null +++ b/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::Locales.pm @@ -0,0 +1,11 @@ +--- lib/Mail/SpamAssassin/Locales.pm.bak Tue Jan 22 04:27:46 2002 ++++ lib/Mail/SpamAssassin/Locales.pm Tue Feb 26 12:58:16 2002 +@@ -62,7 +62,7 @@ + $locale =~ s/^([a-z][a-z]).*$/$1/; # zh_TW... => zh + + my $ok_for_loc = $charsets_for_locale{$locale}; +- return 0 if (!defined $ok_for_loc); ++ next if (!defined $ok_for_loc); + + if ($ok_for_loc =~ /(?:^| )\Q${cs}\E(?:$| )/) { + return 1; diff --git a/mail/p5-Mail-SpamAssassin/files/patch-rules-20_head_tests.cf b/mail/p5-Mail-SpamAssassin/files/patch-rules-20_head_tests.cf new file mode 100644 index 000000000000..211360ea7abe --- /dev/null +++ b/mail/p5-Mail-SpamAssassin/files/patch-rules-20_head_tests.cf @@ -0,0 +1,11 @@ +--- rules/20_head_tests.cf.bak Fri Jan 25 07:36:02 2002 ++++ rules/20_head_tests.cf Tue Feb 26 13:01:16 2002 +@@ -44,7 +44,7 @@ + header TO_INVESTORS To =~ /\bInvestors\@/ + describe TO_INVESTORS To: non-existent 'Investors' address + +-header SUBJ_ALL_CAPS Subject =~ /^[A-Z0-9\W]{6,}[^a-z]+$/ ++header SUBJ_ALL_CAPS Subject =~ /^[A-Z0-9]{6,}[^a-z]+$/ + describe SUBJ_ALL_CAPS Subject is all capitals + + # (allow this test to pass if there's no Message-Id header) |