diff options
author | jlam <jlam> | 2004-08-01 04:35:33 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-08-01 04:35:33 +0000 |
commit | 66ea2c7e526459d2f137fa623b4209ad0c756e0f (patch) | |
tree | d5b62a0ffbf22522036952cc09db1f4d26ca6c2e /mail/clamav/Makefile | |
parent | a8d64d34c221f36b641eb43624cb77a26786e5b9 (diff) | |
download | pkgsrc-66ea2c7e526459d2f137fa623b4209ad0c756e0f.tar.gz |
Update mail/clamav to 0.75.1. Changes from verison 0.75 include:
- Convert to use bsd.options.mk.
- The virus database has been moved to ${VARBASE}/clamav.
* freshclam/clamd: fix crash on PPC when LogFile was enabled together
with LogSyslog
* configure: improve gethostbyname_r check; cleanups
* clamav-milter: Use GETHOSTBYNAME_R_6
Better load balancing if max_children = 0
Fixed warning message when building on FreeBSD4.9
Closed (small) memory leak
Fix crash when the 1st remote service goes down
Only use gethostbyname_r on LINUX for now
Improved load balancing a bit
* clamdscan: fix stdin scanning in local mode
* clamav-milter: %v in the template file handling is now replaced
only with the virus name, no "stream:" appears
* libclamav/mbox.c: Fix crash when debugging on SPARC
* libclamav/message.c: Fix occasional crash when scanning
multipart within multipart e-mails
Diffstat (limited to 'mail/clamav/Makefile')
-rw-r--r-- | mail/clamav/Makefile | 65 |
1 files changed, 47 insertions, 18 deletions
diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile index 4d8442bfe05..83e8b73eb9a 100644 --- a/mail/clamav/Makefile +++ b/mail/clamav/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2004/07/27 11:49:11 simonb Exp $ +# $NetBSD: Makefile,v 1.21 2004/08/01 04:35:33 jlam Exp $ DISTNAME= clamav-${CLAMAV_VERSION} PKGNAME= clamav-${CLAMAV_VERSION:S/-/./} @@ -11,49 +11,78 @@ COMMENT= Anti-virus toolkit PKG_INSTALLATION_TYPES= overwrite pkgviews -CLAMAV_VERSION= 0.75 +CLAMAV_VERSION= 0.75.1 USE_BUILDLINK3= yes -GNU_CONFIGURE= yes -USE_PKGINSTALL= yes USE_LIBTOOL= yes -# disable the configure check for user and group: + +GNU_CONFIGURE= yes CONFIGURE_ARGS+= --disable-clamav CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= --with-dbdir=${VIRUSDBDIR} CONFIGURE_ARGS+= --with-uid=${CLAMAV_USER} CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP} CONFIGURE_ARGS+= --with-tcpwrappers -BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP USE_MILTER +.include "../../mk/bsd.prefs.mk" + +BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP +FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER} +MESSAGE_SUBST+= CLAMAV_USER=${CLAMAV_USER} + +USE_PKGINSTALL= yes +DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL RCD_SCRIPTS= clamd PKG_GROUPS+= ${CLAMAV_GROUP} PKG_USERS+= ${CLAMAV_USER}:${CLAMAV_GROUP}::Clamav\\ User +VIRUSDBDIR= ${VARBASE}/clamav EGDIR= ${PREFIX}/share/examples/clamav -CONF_FILES= ${EGDIR}/clamav.conf ${PKG_SYSCONFDIR}/clamav.conf -CONF_FILES+= ${EGDIR}/freshclam.conf ${PKG_SYSCONFDIR}/freshclam.conf -PLIST_SRC= ${PKGDIR}/PLIST +FILES_SUBST+= VIRUSDBDIR=${VIRUSDBDIR} -.include "../../mk/bsd.prefs.mk" -.if defined(USE_MILTER) && !empty(USE_MILTER:M[yY][eE][sS]) -.include "../../mail/libmilter/buildlink3.mk" +OWN_DIRS_PERMS= ${VIRUSDBDIR} ${CLAMAV_USER} ${CLAMAV_GROUP} 0775 +CONF_FILES= # empty +CONF_FILES_PERMS= # empty +.for _file_ in clamav.conf freshclam.conf +CONF_FILES+= ${EGDIR}/${_file_} ${PKG_SYSCONFDIR}/${_file_} +.endfor +.for _file_ in daily.cvd main.cvd +CONF_FILES_PERMS+= ${EGDIR}/${_file_} ${VIRUSDBDIR}/${_file_} \ + ${CLAMAV_USER} ${CLAMAV_GROUP} 0664 +.endfor +.undef _file_ + +INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} CFGINST=${EGDIR} DBINST=${EGDIR} + +# Global and legacy options +.if defined(USE_MILTER) +. if !defined(PKG_OPTIONS.milter) +. if defined(USE_MILTER) && !empty(USE_MILTER:M[yY][eE][sS]) +PKG_OPTIONS.milter+= milter +. endif +. endif +.endif + +PKG_OPTIONS_VAR= PKG_OPTIONS.clamav +PKG_SUPPORTED_OPTIONS= milter +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mmilter) +. include "../../mail/libmilter/buildlink3.mk" CONFIGURE_ARGS+= --enable-milter -PLIST_SRC+= ${PKGDIR}/PLIST.milter +PLIST_SUBST+= MILTER= .else CONFIGURE_ARGS+= --disable-milter # XXX --disable-milter doesn't work as expected, so we need this CONFIGURE_ENV+= ac_cv_header_libmilter_mfapi_h=no +PLIST_SUBST+= MILTER="@comment " .endif -# for freshclam to work it must own the share/clamav dir -post-install: - ${CHOWN} -R ${CLAMAV_USER}:${CLAMAV_GROUP} ${PREFIX}/share/clamav - .include "../../archivers/bzip2/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../devel/gmp/buildlink3.mk" .include "../../security/tcp_wrappers/buildlink3.mk" - .include "../../mk/pthread.buildlink3.mk" + .include "../../mk/bsd.pkg.mk" |