Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2008 13:52:55 -0500 (CDT)
From:      Michael Stowe <mstowe@chicago.us.mensa.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/121672: [Patch] mail/mimedefang: opt out of clamav use
Message-ID:  <200803131852.m2DIqtjx059747@password.michaelstowe.com>
Resent-Message-ID: <200803131910.m2DJA1KE002573@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 13 19:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Michael Stowe
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD baddomain.com 7.0-STABLE FreeBSD 7.0-STABLE #18: Mon Mar 10 09:53:57 CDT 2008 root@baddomain.com:/usr/obj/usr/src/sys/STOWE i386


	
>Description:
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.
>How-To-Repeat:
Install clamav, then mimedefang
>Fix:
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} \
 			--prefix=${PREFIX}
 
+
+.if defined (MIMEDEFANG_DISABLE_CLAMAV)
+CONFIGURE_ARGS+=	--disable-antivirus \
+			--disable-clamav \
+			--disable-clamd 
+.endif
+
 MAN5=	mimedefang-filter.5
 MAN7=	mimedefang-notify.7 mimedefang-protocol.7
 MAN8=	mimedefang.8 mimedefang.pl.8 mimedefang-multiplexor.8 \
--- clamav.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803131852.m2DIqtjx059747>