From 424876ae90dd05d410605f7de0bae5d58edcace0 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Thu, 28 Oct 2004 16:45:16 +0000 Subject: [PATCH] Install etc/mail/spammassassin/init.pre.sample as etc/mail/spammassassin/init.pre too. --- mail/p5-Mail-SpamAssassin/Makefile | 4 ++++ mail/p5-Mail-SpamAssassin/pkg-plist | 1 + 2 files changed, 5 insertions(+) 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