aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-05-30 23:24:02 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-05-30 23:24:02 +0000
commitbe0e6b12ae5d4d62d6d180154ac2de46e8c31147 (patch)
tree95e058694be1c49546c6e309842d05dda45f1f73 /japanese
parentf5bc0fe845213db178341d68a5e539d0e04200e6 (diff)
downloadports-be0e6b12ae5d4d62d6d180154ac2de46e8c31147.tar.gz
ports-be0e6b12ae5d4d62d6d180154ac2de46e8c31147.zip
Notes
Diffstat (limited to 'japanese')
-rw-r--r--japanese/p5-Mail-SpamAssassin/Makefile2
-rw-r--r--japanese/p5-Mail-SpamAssassin/pkg-install5
2 files changed, 6 insertions, 1 deletions
diff --git a/japanese/p5-Mail-SpamAssassin/Makefile b/japanese/p5-Mail-SpamAssassin/Makefile
index 24f69b07d81d..3297d65d5a84 100644
--- a/japanese/p5-Mail-SpamAssassin/Makefile
+++ b/japanese/p5-Mail-SpamAssassin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= Mail-SpamAssassin
PORTVERSION= 3.2.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= japanese mail perl5
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} \
${PATCH_SITES}
diff --git a/japanese/p5-Mail-SpamAssassin/pkg-install b/japanese/p5-Mail-SpamAssassin/pkg-install
index 54822a65ee96..ee783924a624 100644
--- a/japanese/p5-Mail-SpamAssassin/pkg-install
+++ b/japanese/p5-Mail-SpamAssassin/pkg-install
@@ -31,6 +31,11 @@ if [ "$2" = "POST-INSTALL" ];then
if yesno "Do you wish to run sa-update to fetch new rules" "N";then
${PKG_PREFIX}/bin/sa-update
+ if [ $? -eq 4 ];then
+ # rc=4 means host not found, might be old mirrors.
+ rm -rf /var/db/spamassassin/3*/updates_spamassassin_org/MIRRORED.BY
+ ${PKG_PREFIX}/bin/sa-update
+ fi
fi
grep '^load.*Rule2XSBody' ${PKG_PREFIX}/etc/mail/spamassassin/v320.pre > /dev/null
if [ $? -eq 0 ];then