diff options
author | gabor <gabor@FreeBSD.org> | 2009-05-21 07:07:03 +0800 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2009-05-21 07:07:03 +0800 |
commit | 37e77a82863ea2dea76cbc56e8f663c43f7ce278 (patch) | |
tree | f95cc3db8ccf4acf6a186c869b7442531c352ec6 /mail/p5-Mail-SpamAssassin | |
parent | 1fa2323f10c703906f9d6db28671852da7386b1b (diff) | |
download | freebsd-ports-gnome-37e77a82863ea2dea76cbc56e8f663c43f7ce278.tar.gz freebsd-ports-gnome-37e77a82863ea2dea76cbc56e8f663c43f7ce278.tar.zst freebsd-ports-gnome-37e77a82863ea2dea76cbc56e8f663c43f7ce278.zip |
- Update sa-update channel when updating the port
- Bump PORTREVISION
PR: ports/134574
Submitted by: Michael Scheidell <scheidell@secnap.net> (maintainer)
Diffstat (limited to 'mail/p5-Mail-SpamAssassin')
-rw-r--r-- | mail/p5-Mail-SpamAssassin/Makefile | 2 | ||||
-rw-r--r-- | mail/p5-Mail-SpamAssassin/pkg-install | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile index cd397cb6ebfd..ab47d58374d1 100644 --- a/mail/p5-Mail-SpamAssassin/Makefile +++ b/mail/p5-Mail-SpamAssassin/Makefile @@ -7,7 +7,7 @@ PORTNAME= Mail-SpamAssassin PORTVERSION= 3.2.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan diff --git a/mail/p5-Mail-SpamAssassin/pkg-install b/mail/p5-Mail-SpamAssassin/pkg-install index 54822a65ee96..ee783924a624 100644 --- a/mail/p5-Mail-SpamAssassin/pkg-install +++ b/mail/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 |