diff options
author | chris <chris@pkgsrc.org> | 2003-09-28 23:39:24 +0000 |
---|---|---|
committer | chris <chris@pkgsrc.org> | 2003-09-28 23:39:24 +0000 |
commit | 4682c56056c75d24c91768204cb068b1d9876681 (patch) | |
tree | 56cf2d7724fdd4a771a276b21f1f011bc00c7ddc /mail/clamav | |
parent | fe449dcf64a452e165544db2e6f1c7900c405029 (diff) | |
download | pkgsrc-4682c56056c75d24c91768204cb068b1d9876681.tar.gz |
Update clamav so that milter support is optional.
However currently milter support is disabled, as it requires strerror_r to
be available, which it isn't on -current.
Note this required the fixing of the milter tests in the configure.in file.
It seemed if you used --disable-milter and the .h file was in the include
path, eg on -current it's in /usr/include/libmilter it was found and used.
We now have a want_milter for the --enable/disable-milter, which will
trigger the tests to setup have_milter.
Once I've sorted out the strerror_r problem in -current I'll enable the
milter support (or if someone tells me it works with pth)
Bump PKGREVISION.
Diffstat (limited to 'mail/clamav')
-rw-r--r-- | mail/clamav/Makefile | 18 | ||||
-rw-r--r-- | mail/clamav/PLIST | 3 | ||||
-rw-r--r-- | mail/clamav/PLIST.milter | 2 | ||||
-rw-r--r-- | mail/clamav/distinfo | 4 | ||||
-rw-r--r-- | mail/clamav/patches/patch-aa | 29 |
5 files changed, 44 insertions, 12 deletions
diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile index ec38ff29482..49d693a5cf2 100644 --- a/mail/clamav/Makefile +++ b/mail/clamav/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.4 2003/09/20 01:27:17 chris Exp $ +# $NetBSD: Makefile,v 1.5 2003/09/28 23:39:24 chris Exp $ DISTNAME= clamav-0.60 +PKGREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/} @@ -20,13 +21,23 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} CONFIGURE_ARGS+= --with-uid=${CLAMAV_USER} CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP} -BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP +BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP USE_MILTER PKG_GROUPS+= ${CLAMAV_GROUP} PKG_USERS+= ${CLAMAV_USER}:${CLAMAV_GROUP}::Clamav\\ User EGDIR= ${PREFIX}/share/examples/clamav CONF_FILES= ${EGDIR}/clamav.conf ${PKG_SYSCONFDIR}/clamav.conf +PLIST_SRC= ${PKGDIR}/PLIST + +.include "../../mk/bsd.prefs.mk" +.if defined(USE_MILTER) && ${USE_MILTER} == "YES" +#.include "../../mail/libmilter/buildlink2.mk" +#CONFIGURE_ARGS+= --enable-milter +#PLIST_SRC+= ${PKGDIR}/PLIST.milter +.else +CONFIGURE_ARGS+= --disable-milter +.endif pre-configure: cd ${WRKSRC}; \ @@ -36,10 +47,9 @@ pre-configure: # for freshclam to work it must own the share/clamav dir post-install: - ${CHOWN} -R ${CLAMAV_USER}:${CLAMAV_GROUP} ${PREFIX}/share/examples/clamav + ${CHOWN} -R ${CLAMAV_USER}:${CLAMAV_GROUP} ${PREFIX}/share/clamav .include "../../devel/zlib/buildlink2.mk" -.include "../../mail/libmilter/buildlink2.mk" .include "../../archivers/bzip2/buildlink2.mk" .include "../../mk/pthread.buildlink2.mk" .include "../../mk/autoconf.mk" diff --git a/mail/clamav/PLIST b/mail/clamav/PLIST index 2e6e19fb63e..849d3d36023 100644 --- a/mail/clamav/PLIST +++ b/mail/clamav/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2003/09/20 01:27:18 chris Exp $ +@comment $NetBSD: PLIST,v 1.4 2003/09/28 23:39:24 chris Exp $ bin/clamdscan bin/clamscan bin/freshclam @@ -9,7 +9,6 @@ lib/libclamav.la lib/libclamav.so lib/libclamav.so.1 lib/libclamav.so.1.3 -man/man1/clamav-milter.1 man/man1/clamdscan.1 man/man1/clamscan.1 man/man1/freshclam.1 diff --git a/mail/clamav/PLIST.milter b/mail/clamav/PLIST.milter new file mode 100644 index 00000000000..aa7805bffe1 --- /dev/null +++ b/mail/clamav/PLIST.milter @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST.milter,v 1.1 2003/09/28 23:39:24 chris Exp $ +man/man1/clamav-milter.1 diff --git a/mail/clamav/distinfo b/mail/clamav/distinfo index 064d164e64f..431a1a71c46 100644 --- a/mail/clamav/distinfo +++ b/mail/clamav/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.3 2003/09/20 01:27:18 chris Exp $ +$NetBSD: distinfo,v 1.4 2003/09/28 23:39:24 chris Exp $ SHA1 (clamav-0.60.tar.gz) = d72547dc3027fcdd76ad9a4b6edd3aa655534e1c Size (clamav-0.60.tar.gz) = 1018727 bytes -SHA1 (patch-aa) = 715de1a92ba5b148cebdd92c812d18cf9367c8bb +SHA1 (patch-aa) = d3694bbe8a53b47a92ca19a0f60cb479d9020980 SHA1 (patch-ab) = 0d1ef00c0c1c64642461e353f7e4ed7f81e3a042 diff --git a/mail/clamav/patches/patch-aa b/mail/clamav/patches/patch-aa index 573dcaac0bd..62f71a88d73 100644 --- a/mail/clamav/patches/patch-aa +++ b/mail/clamav/patches/patch-aa @@ -1,8 +1,29 @@ -$NetBSD: patch-aa,v 1.3 2003/09/20 01:27:19 chris Exp $ +$NetBSD: patch-aa,v 1.4 2003/09/28 23:39:24 chris Exp $ ---- configure.in.orig 2003-09-20 00:27:32.000000000 +0100 -+++ configure.in 2003-09-20 00:32:19.000000000 +0100 -@@ -255,8 +255,12 @@ +--- configure.in.orig 2003-06-21 04:05:32.000000000 +0100 ++++ configure.in 2003-09-28 23:35:17.000000000 +0100 +@@ -74,12 +74,16 @@ + AC_CHECK_LIB(bz2, bzReadOpen, AC_DEFINE(NOBZ2PREFIX),) + fi + +-have_milter="no" +-AC_CHECK_HEADER(libmilter/mfapi.h,have_milter="yes",) +- + AC_ARG_ENABLE(milter, + [ --enable-milter Build clamav-milter (if milter library found)], +-,have_milter="no") ++want_milter=$enableval, want_milter=no) ++ ++have_milter=no ++if test "$want_milter" = "yes" ++then ++ AC_CHECK_HEADER(libmilter/mfapi.h,[have_milter=yes],) ++fi ++ + + AC_CHECK_HEADER(syslog.h,AC_DEFINE(CLAMD_USE_SYSLOG),) + +@@ -255,8 +259,12 @@ AC_DEFINE(C_BSD) ;; netbsd*) |