summaryrefslogtreecommitdiff
path: root/security/clamav/Makefile
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-02-03 06:46:21 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-02-03 06:46:21 +0000
commitdfcb3af5b8f61761317df79fc7f5cffe4a57db09 (patch)
treee91db1c2025f4f6e566f789524685e6fc5534519 /security/clamav/Makefile
parent. Add a pkg-deinstall script telling people how they can get rid of the (diff)
1. Add a freshclam rc.d script to start freshclam so the AV database is
updated periodically. Loosely based on the script in the PR. 2. Reorder some operations in the various Makefile targets. 3. Bump PORTREVISION. PR: 61966 [1] Submitted by: Douglas K. Rand <rand@meridian-enviro.com>
Diffstat (limited to 'security/clamav/Makefile')
-rw-r--r--security/clamav/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index 82ca6d3228c6..eedd186336c2 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -7,7 +7,7 @@
PORTNAME= clamav
PORTVERSION= 0.65
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= clamav
@@ -102,24 +102,32 @@ post-build:
@${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install >${PKGINSTALL}
@${SED} ${SED_SCRIPT} ${FILESDIR}/clamav-clamd.sh \
>${WRKDIR}/clamav-clamd.sh
+ @${SED} ${SED_SCRIPT} ${FILESDIR}/clamav-freshclam.sh \
+ >${WRKDIR}/clamav-freshclam.sh
+.if defined(WITH_MILTER)
@${SED} ${SED_SCRIPT} ${FILESDIR}/clamav-milter.sh \
>${WRKDIR}/clamav-milter.sh
+.endif
pre-install:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
post-install:
+ @${INSTALL_DATA} ${BUILD_WRKSRC}/etc/clamav.conf.default \
+ ${PREFIX}/etc/clamav.conf.default
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \
${RC_DIR}/clamav-clamd${RC_SUFX}
+ @${INSTALL_SCRIPT} ${WRKDIR}/clamav-freshclam.sh \
+ ${RC_DIR}/clamav-freshclam${RC_SUFX}
@${CHOWN} -R clamav:clamav ${DATADIR}
@[ -f ${PREFIX}/etc/clamav.conf ] || \
${CP} ${PREFIX}/etc/clamav.conf.default ${PREFIX}/etc/clamav.conf
- @${SETENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
.if defined(WITH_MILTER)
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \
${RC_DIR}/clamav-milter${RC_SUFX}
.endif
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
.include <bsd.port.post.mk>