ports/121672: [Patch] mail/mimedefang: opt out of clamav use

Michael Stowe mstowe at chicago.us.mensa.org
Thu Mar 13 19:10:02 UTC 2008

>Number:         121672
>Category:       ports
>Synopsis:       [Patch] mail/mimedefang: opt out of clamav use
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 13 19:10:01 UTC 2008
>Originator:     Michael Stowe
>Release:        FreeBSD 7.0-STABLE i386
System: FreeBSD baddomain.com 7.0-STABLE FreeBSD 7.0-STABLE #18: Mon Mar 10 09:53:57 CDT 2008 root at baddomain.com:/usr/obj/usr/src/sys/STOWE i386

mimedefang will automatically compile in support for, and try to use, clamav.  This can conflict with other milters (no need to scan twice) and appears to break mimedefang if clamav happens to be installed.  It cannot be turned off at runtime at all.
Install clamav, then mimedefang
The following patch updates the Makefile to allow a make.conf flag to disable compiling clamav support into mimedefang, and mimedefang will then behave itself.

--- clamav.patch begins here ---
diff -ruN mimedefang/Makefile mimedefang.new/Makefile
--- mimedefang/Makefile	2007-09-13 00:28:22.000000000 -0500
+++ mimedefang.new/Makefile	2008-03-13 11:27:11.000000000 -0500
@@ -39,6 +39,13 @@
 			--with-quarantinedir=${QUARANTINEDIR} \
+CONFIGURE_ARGS+=	--disable-antivirus \
+			--disable-clamav \
+			--disable-clamd 
 MAN5=	mimedefang-filter.5
 MAN7=	mimedefang-notify.7 mimedefang-protocol.7
 MAN8=	mimedefang.8 mimedefang.pl.8 mimedefang-multiplexor.8 \
--- clamav.patch ends here ---


More information about the freebsd-ports-bugs mailing list