aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-05-31 07:24:02 +0800
committermiwi <miwi@FreeBSD.org>2009-05-31 07:24:02 +0800
commit7401f0465c308bd41bc8d55e8425c29b054e5743 (patch)
tree1e3ad463e3626e4a583ac89844a4514ba7f18294 /japanese
parent607615448930a33798ee92dfd69f9cb8d04dc1fe (diff)
downloadfreebsd-ports-graphics-7401f0465c308bd41bc8d55e8425c29b054e5743.tar.gz
freebsd-ports-graphics-7401f0465c308bd41bc8d55e8425c29b054e5743.tar.zst
freebsd-ports-graphics-7401f0465c308bd41bc8d55e8425c29b054e5743.zip
- Sync with mail/p5-Mail-SpamAssassin
PR: 134778 Submitted by: maintainer
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 24f69b07d81..3297d65d5a8 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 54822a65ee9..ee783924a62 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