diff options
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/p5-Mail-SpamAssassin/Makefile | 2 | ||||
-rw-r--r-- | japanese/p5-Mail-SpamAssassin/pkg-install | 5 |
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 |