diff options
author | Renato Botelho <garga@FreeBSD.org> | 2005-08-09 13:58:39 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2005-08-09 13:58:39 +0000 |
commit | d06912e6efb159bf77e12d294c0090426fa385ee (patch) | |
tree | 01ebb26682c2f63cbb81a17768a0f22d0b84d7eb /mail/simscan/Makefile | |
parent | c7c416526e765059632a1e4827fd6b23408ffa47 (diff) | |
download | ports-d06912e6efb159bf77e12d294c0090426fa385ee.tar.gz ports-d06912e6efb159bf77e12d294c0090426fa385ee.zip |
Notes
Diffstat (limited to 'mail/simscan/Makefile')
-rw-r--r-- | mail/simscan/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mail/simscan/Makefile b/mail/simscan/Makefile index 04889ffce5e8..cd26374ee85f 100644 --- a/mail/simscan/Makefile +++ b/mail/simscan/Makefile @@ -18,6 +18,7 @@ COMMENT= Fast Content/Anti-virus Scanner for qmail Written in C BUILD_DEPENDS= ${QMAIL_QUEUE}:${PORTSDIR}/mail/qmail GNU_CONFIGURE= yes +USE_REINPLACE= yes # A normal qmail installation puts everything into /var/qmail/. # Must match your qmail installation @@ -42,7 +43,8 @@ OPTIONS= CLAMAV "Support for ClamAV Virus Scanning" on \ CONFIGURE_ARGS=--enable-clamavdb-path=/var/db/clamav \ --enable-qmaildir=${QMAIL_DIR} \ --enable-spamc-user=n \ - --enable-workdir=${WORKDIR} + --enable-workdir=${WORKDIR} \ + --enable-user=nobody .if defined(WITHOUT_CLAMAV) CONFIGURE_ARGS+= --enable-clamav=n @@ -130,9 +132,12 @@ pre-configure: @${ECHO_MSG} "=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=" @${ECHO_MSG} "" +pre-install: + @${REINPLACE_CMD} -e 's|nobody|simscan|g' ${WRKSRC}/Makefile + @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + post-install: - @${CHMOD} 04711 ${QMAIL_DIR}/bin/simscan - @${CHOWN} simscan:simscan ${QMAIL_DIR}/bin/simscan ${QMAIL_DIR}/bin/simscanmk + @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} |