aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-Mail-SpamAssassin
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-01-20 22:55:43 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-01-20 22:55:43 +0000
commit79ecf8cad192e53b4f68da8e883e5ac43e012824 (patch)
tree2f5a2ff6be7e9d4a219e55c684e4cd05d9197e31 /mail/p5-Mail-SpamAssassin
parent0746b138a327c1a837c51c3353a6095a128bcf60 (diff)
downloadports-79ecf8cad192e53b4f68da8e883e5ac43e012824.tar.gz
ports-79ecf8cad192e53b4f68da8e883e5ac43e012824.zip
Notes
Diffstat (limited to 'mail/p5-Mail-SpamAssassin')
-rw-r--r--mail/p5-Mail-SpamAssassin/Makefile8
-rw-r--r--mail/p5-Mail-SpamAssassin/pkg-plist4
2 files changed, 9 insertions, 3 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile
index 27f4901ab081..63f87ef165fc 100644
--- a/mail/p5-Mail-SpamAssassin/Makefile
+++ b/mail/p5-Mail-SpamAssassin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= Mail-SpamAssassin
PORTVERSION= 3.1.0
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= mail perl5
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/}
MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan
@@ -41,7 +41,7 @@ OPTIONS= AS_ROOT "Run spamd as root (recommended)" on \
.include <bsd.port.pre.mk>
.if defined(WITH_SPF_QUERY)
-RUN_DEPENDS+= spfd:${PORTSDIR}/mail/p5-Mail-SPF-Query
+RUN_DEPENDS+= ${SITE_PERL}/Mail/SPF/Query.pm:${PORTSDIR}/mail/p5-Mail-SPF-Query
.endif
.if !defined(WITHOUT_SSL)
@@ -165,6 +165,7 @@ post-patch:
@${FIND} ${WRKSRC} -name \*.orig -delete
@${REINPLACE_CMD} -e 's#B_CONFDIR)/local.cf#B_CONFDIR)/local.cf.sample#g' \
-e 's#B_CONFDIR)/init.pre#B_CONFDIR)/init.pre.sample#g' \
+ -e 's#B_CONFDIR)/v310.pre#B_CONFDIR)/v310.pre.sample#g' \
-e 's/require DBI/0/' \
${WRKSRC}/Makefile.PL
.if defined(WITH_RAZOR)
@@ -189,6 +190,9 @@ post-install:
@[ -f ${PREFIX}/etc/mail/spamassassin/init.pre ] || \
${CP} ${PREFIX}/etc/mail/spamassassin/init.pre.sample \
${PREFIX}/etc/mail/spamassassin/init.pre
+ @[ -f ${PREFIX}/etc/mail/spamassassin/v310.pre ] || \
+ ${CP} ${PREFIX}/etc/mail/spamassassin/v310.pre.sample \
+ ${PREFIX}/etc/mail/spamassassin/v310.pre
.if defined(WITH_TOOLS)
@${MKDIR} ${DATADIR}/tools
@for f in ${WRKSRC}/tools/*; do \
diff --git a/mail/p5-Mail-SpamAssassin/pkg-plist b/mail/p5-Mail-SpamAssassin/pkg-plist
index 6abbd30834d7..20df547305f5 100644
--- a/mail/p5-Mail-SpamAssassin/pkg-plist
+++ b/mail/p5-Mail-SpamAssassin/pkg-plist
@@ -8,7 +8,9 @@ etc/mail/spamassassin/local.cf.sample
@unexec if cmp -s %B/init.pre.sample %B/init.pre; then rm -f %B/init.pre; fi
etc/mail/spamassassin/init.pre.sample
@exec [ -f %B/init.pre ] || cp %B/%f %B/init.pre
-etc/mail/spamassassin/v310.pre
+@unexec if cmp -s %B/v310.pre.sample %B/v310.pre; then rm -f %B/v310.pre; fi
+etc/mail/spamassassin/v310.pre.sample
+@exec [ -f %B/v310.pre ] || cp %B/%f %B/v310.pre
etc/rc.d/sa-spamd.sh
%%SITE_PERL%%/Mail/SpamAssassin.pm
%%SITE_PERL%%/Mail/SpamAssassin/ArchiveIterator.pm