aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2004-01-19 18:15:09 +0800
committermat <mat@FreeBSD.org>2004-01-19 18:15:09 +0800
commitcb233e4792d58d39bc78b96690aeeaf2c01ab1e1 (patch)
tree29dafa458ce09ddbb2fb906caa3a8650cc113ad9 /mail
parent84de28ebf52c675a2ca6a67455e4b3256d309454 (diff)
downloadfreebsd-ports-gnome-cb233e4792d58d39bc78b96690aeeaf2c01ab1e1.tar.gz
freebsd-ports-gnome-cb233e4792d58d39bc78b96690aeeaf2c01ab1e1.tar.zst
freebsd-ports-gnome-cb233e4792d58d39bc78b96690aeeaf2c01ab1e1.zip
- change spaces to tab to make portlint a little happier
- allow users override RC_DIR and RC_SUFX - fix install spamd.sh in RC_DIR, not PREFIX/etc/rc.d - do not pollute WRKSRC with generated files, use WRKDIR instead (it's IMHO better style) PR: 61560 Submitted by: Sergey Matveychuk <sem@ciam.ru>
Diffstat (limited to 'mail')
-rw-r--r--mail/p5-Mail-SpamAssassin/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile
index 8dadbe4ca3f9..c29b8b31b311 100644
--- a/mail/p5-Mail-SpamAssassin/Makefile
+++ b/mail/p5-Mail-SpamAssassin/Makefile
@@ -52,11 +52,11 @@ MAN1= spamd.1 spamassassin.1 spamc.1 sa-learn.1
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g'
+SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g'
USE_RC_SUBR= yes
-RC_DIR= ${PREFIX}/etc/rc.d
-RC_SUFX= .sh
+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'
@@ -72,11 +72,11 @@ post-patch:
@${MV} ${WRKSRC}/Makefile.PL.sed ${WRKSRC}/Makefile.PL
post-build:
- @${SED} ${SED_SCRIPT} ${FILESDIR}/spamd.sh > ${WRKSRC}/spamd.sh
+ @${SED} ${SED_SCRIPT} ${FILESDIR}/spamd.sh > ${WRKDIR}/spamd.sh
post-install:
@${STRIP_CMD} ${PREFIX}/bin/spamc
- ${INSTALL_SCRIPT} ${WRKSRC}/spamd.sh ${PREFIX}/etc/rc.d/spamd${RC_SUFX}
+ ${INSTALL_SCRIPT} ${WRKDIR}/spamd.sh ${RC_DIR}/spamd${RC_SUFX}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}