aboutsummaryrefslogtreecommitdiffstats
path: root/mail/p5-Mail-SpamAssassin
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-03-20 21:03:33 +0800
committergarga <garga@FreeBSD.org>2006-03-20 21:03:33 +0800
commit63d77523619d98abf4868b83fe9cfd7dd2b0f814 (patch)
tree3f2fe4dcab5f54f191a7aaf2380ed389ea62c94c /mail/p5-Mail-SpamAssassin
parentbb99773c7dbb69f3fc8a482562b4f754acb525db (diff)
downloadfreebsd-ports-graphics-63d77523619d98abf4868b83fe9cfd7dd2b0f814.tar.gz
freebsd-ports-graphics-63d77523619d98abf4868b83fe9cfd7dd2b0f814.tar.zst
freebsd-ports-graphics-63d77523619d98abf4868b83fe9cfd7dd2b0f814.zip
Use USE_RC_SUBR=sa-spamd.sh and remove some SED's using PLIST_SUB instead
Approved by: maintainer on ICQ
Diffstat (limited to 'mail/p5-Mail-SpamAssassin')
-rw-r--r--mail/p5-Mail-SpamAssassin/Makefile16
-rw-r--r--mail/p5-Mail-SpamAssassin/files/sa-spamd.sh.in (renamed from mail/p5-Mail-SpamAssassin/files/spamd.sh)0
2 files changed, 6 insertions, 10 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile
index 9a37c421c10..a2e29fa41b2 100644
--- a/mail/p5-Mail-SpamAssassin/Makefile
+++ b/mail/p5-Mail-SpamAssassin/Makefile
@@ -150,18 +150,17 @@ DOCSCONTRIB= mbox-to-check run-corpora run-masses
DOCSLDAP= README README.testing sa_test.ldif
PORTDOCS= ${DOCS} sql contrib ldap
-USE_RC_SUBR= yes
-SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' \
- -e 's|%%RC_SUBR%%|${RC_SUBR}|g'
+USE_RC_SUBR= sa-spamd.sh
+
.if defined(WITH_MYSQL) || defined(WITH_PGSQL)
-SED_SCRIPT+= -e 's|%%SQL_FLAG%%|-Q|g'
+SUB_LIST+= SQL_FLAG="-Q"
.else
-SED_SCRIPT+= -e 's|%%SQL_FLAG%%||g'
+SUB_LIST+= SQL_FLAG=""
.endif
.if !defined(WITH_AS_ROOT)
-SED_SCRIPT+= -e 's|%%RUN_AS_USER%%|-u spamd -H /var/spool/spamd|g'
+SUB_LIST+= RUN_AS_USER="-u spamd -H /var/spool/spamd"
.else
-SED_SCRIPT+= -e 's|%%RUN_AS_USER%%||g'
+SUB_LIST+= RUN_AS_USER=""
.endif
post-patch:
@@ -181,9 +180,6 @@ post-patch:
${REINPLACE_CMD} -e '/RelayCountry/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/init.pre
.endif
-post-build:
- @${SED} ${SED_SCRIPT} ${FILESDIR}/spamd.sh > ${WRKDIR}/sa-spamd.sh
-
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
diff --git a/mail/p5-Mail-SpamAssassin/files/spamd.sh b/mail/p5-Mail-SpamAssassin/files/sa-spamd.sh.in
index 87530ffb70e..87530ffb70e 100644
--- a/mail/p5-Mail-SpamAssassin/files/spamd.sh
+++ b/mail/p5-Mail-SpamAssassin/files/sa-spamd.sh.in