diff options
author | edwin <edwin@FreeBSD.org> | 2004-01-13 16:29:28 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-01-13 16:29:28 +0800 |
commit | 5073c50359c0b3af66d9e31dd2b970c6ff38c699 (patch) | |
tree | 4c8d026ee454b91620736ea3d56af5f73f95ae37 /mail/p5-Mail-SpamAssassin/Makefile | |
parent | 2f16402bdd8e4d3913b4e61b7f21cadef48384be (diff) | |
download | freebsd-ports-gnome-5073c50359c0b3af66d9e31dd2b970c6ff38c699.tar.gz freebsd-ports-gnome-5073c50359c0b3af66d9e31dd2b970c6ff38c699.tar.zst freebsd-ports-gnome-5073c50359c0b3af66d9e31dd2b970c6ff38c699.zip |
[PATCH] mail/p5-Mail-SpamAssassin 2.60
This patch adds rc_subr support to spamd daemon
of the spamassassin port.
PR: ports/57384
Submitted by: Martin Matuska <martin@tradex.sk>
Diffstat (limited to 'mail/p5-Mail-SpamAssassin/Makefile')
-rw-r--r-- | mail/p5-Mail-SpamAssassin/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile index 6b496197f742..8dadbe4ca3f9 100644 --- a/mail/p5-Mail-SpamAssassin/Makefile +++ b/mail/p5-Mail-SpamAssassin/Makefile @@ -7,6 +7,7 @@ PORTNAME= Mail-SpamAssassin PORTVERSION= 2.61 +PORTREVISION= 1 CATEGORIES= mail perl5 MASTER_SITES= http://spamassassin.org/released/ \ ${MASTER_SITE_PERL_CPAN} @@ -51,6 +52,17 @@ MAN1= spamd.1 spamassassin.1 spamc.1 sa-learn.1 DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' + +USE_RC_SUBR= yes +RC_DIR= ${PREFIX}/etc/rc.d +RC_SUFX= .sh +SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \ + -e 's|%%RC_DIR%%|${RC_DIR}|g' \ + -e 's|%%RC_SUFX%%|${RC_SUFX}|g' +PLIST_SUB+= RC_DIR=${RC_DIR} \ + RC_SUFX=${RC_SUFX} + post-patch: @${FIND} ${WRKSRC} -name \*.orig -delete @@ -59,9 +71,12 @@ post-patch: ${WRKSRC}/Makefile.PL > ${WRKSRC}/Makefile.PL.sed @${MV} ${WRKSRC}/Makefile.PL.sed ${WRKSRC}/Makefile.PL +post-build: + @${SED} ${SED_SCRIPT} ${FILESDIR}/spamd.sh > ${WRKSRC}/spamd.sh + post-install: @${STRIP_CMD} ${PREFIX}/bin/spamc - ${INSTALL_SCRIPT} ${FILESDIR}/spamd.sh ${PREFIX}/etc/rc.d/spamd.sh-dist + ${INSTALL_SCRIPT} ${WRKSRC}/spamd.sh ${PREFIX}/etc/rc.d/spamd${RC_SUFX} .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} |