Use USE_RC_SUBR=sa-spamd.sh and remove some SED's using PLIST_SUB instead
Approved by: maintainer on ICQ
This commit is contained in:
parent
4ff24336d9
commit
6fa3181f11
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157734
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user