Subject: pkg/22996: mail/clamav depends upon milter
To: None <gnats-bugs@gnats.netbsd.org>
From: Ron Roskens <roskens@elfin.net>
List: netbsd-bugs
Date: 09/28/2003 16:34:34
>Number: 22996
>Category: pkg
>Synopsis: mail/clamav depends upon milter
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Sep 28 21:35:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Ron Roskens
>Release: NetBSD 1.6
>Organization:
>Environment:
System: NetBSD mail.elfin.net 1.6 NetBSD 1.6 (MAIL.MP) #3: Sat Oct 5 18:08:12 UTC 2002 root@hysteria.elfin.net:/usr/src/sys.mp/arch/i386/compile/MAIL.MP i386
Architecture: i386
Machine: i386
>Description:
mail/clamav has a dependency upon mail/libmilter which depends upon mail/sendmail. Installing libmilter on a box
running postfix is unnecessary.
>How-To-Repeat:
# cd mail/clamav
# make
>Fix:
Index: bsd.pkg.defaults.mk
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/mk/bsd.pkg.defaults.mk,v
retrieving revision 1.186
diff -b -u -r1.186 bsd.pkg.defaults.mk
--- bsd.pkg.defaults.mk 2003/09/20 16:56:10 1.186
+++ bsd.pkg.defaults.mk 2003/09/28 21:31:33
@@ -671,6 +671,11 @@
# Possible: any user name
# Default: clamav
+CLAMAV_USE_MILTER?= YES
+# Used in clamav to specify whether to enable milter support.
+# Possible: YES, NO
+# Default: YES
+
CUE_USE_CANNA?= NO
# Used by cue package to determine whether to enable Canna support.
# Possible: YES, NO
Index: Makefile
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/mail/clamav/Makefile,v
retrieving revision 1.4
diff -b -u -r1.4 Makefile
--- Makefile 2003/09/20 01:27:17 1.4
+++ Makefile 2003/09/28 21:29:13
@@ -2,6 +2,7 @@
DISTNAME= clamav-0.60
CATEGORIES= mail
+PKGREVISION= 1
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
MAINTAINER= david@netbsd-fr.org
@@ -20,6 +21,14 @@
CONFIGURE_ARGS+= --with-uid=${CLAMAV_USER}
CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP}
+.include "../../mk/bsd.prefs.mk"
+
+.if ${CLAMAV_USE_MILTER} == YES
+.include "../../mail/libmilter/buildlink2.mk"
+.else
+CONFIGURE_ARGS+= --disable-milter
+.endif
+
BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP
PKG_GROUPS+= ${CLAMAV_GROUP}
@@ -39,7 +48,6 @@
${CHOWN} -R ${CLAMAV_USER}:${CLAMAV_GROUP} ${PREFIX}/share/examples/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"
>Release-Note:
>Audit-Trail:
>Unformatted: