aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2004-10-29 00:45:16 +0800
committermat <mat@FreeBSD.org>2004-10-29 00:45:16 +0800
commitdcb18775d681b74a37dfbb7dbfbf08809b72918f (patch)
treee87fb5903554d2a3cf8644d0c3de2cc970ac80e8 /mail
parent4dcff02a4f0d6997f779a5c56d03f4b973a65cbc (diff)
downloadfreebsd-ports-gnome-dcb18775d681b74a37dfbb7dbfbf08809b72918f.tar.gz
freebsd-ports-gnome-dcb18775d681b74a37dfbb7dbfbf08809b72918f.tar.zst
freebsd-ports-gnome-dcb18775d681b74a37dfbb7dbfbf08809b72918f.zip
Install etc/mail/spammassassin/init.pre.sample as etc/mail/spammassassin/init.pre too.
Diffstat (limited to 'mail')
-rw-r--r--mail/p5-Mail-SpamAssassin/Makefile4
-rw-r--r--mail/p5-Mail-SpamAssassin/pkg-plist1
2 files changed, 5 insertions, 0 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile
index 3f5544c63707..58248c41f2da 100644
--- a/mail/p5-Mail-SpamAssassin/Makefile
+++ b/mail/p5-Mail-SpamAssassin/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Mail-SpamAssassin
PORTVERSION= 3.0.1
+PORTREVISION= 1
CATEGORIES= mail perl5
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/}
MASTER_SITE_SUBDIR= spamassassin/:apache Mail/:cpan
@@ -87,6 +88,9 @@ post-build:
post-install:
@${STRIP_CMD} ${PREFIX}/bin/spamc
@${INSTALL_SCRIPT} ${WRKDIR}/sa-spamd.sh ${PREFIX}/etc/rc.d/sa-spamd.sh
+ @[ -f ${PREFIX}/etc/mail/spamassassin/init.pre ] || \
+ ${CP} ${PREFIX}/etc/mail/spamassassin/init.pre.sample \
+ ${PREFIX}/etc/mail/spamassassin/init.pre
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR} ${DOCSDIR}/sql ${DOCSDIR}/contrib ${DOCSDIR}/ldap
@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
diff --git a/mail/p5-Mail-SpamAssassin/pkg-plist b/mail/p5-Mail-SpamAssassin/pkg-plist
index b71f2c592b5d..3de61e368ce0 100644
--- a/mail/p5-Mail-SpamAssassin/pkg-plist
+++ b/mail/p5-Mail-SpamAssassin/pkg-plist
@@ -2,6 +2,7 @@ bin/sa-learn
bin/spamassassin
bin/spamc
bin/spamd
+@unexec if cmp -s %D/etc/mail/spamassassin/init.pre.sample %D/etc/mail/spamassassin/init.pre; then rm -f %D/etc/mail/spamassassin/init.pre; fi
etc/mail/spamassassin/init.pre.sample
etc/mail/spamassassin/local.cf.sample
etc/rc.d/sa-spamd.sh