ports/53699: enable clamav-milter for FreeBSD > 5.0 (security/clamav)

Rob Evers rob at debank.tv
Tue Jun 24 23:00:43 UTC 2003


>Number:         53699
>Category:       ports
>Synopsis:       enable clamav-milter for FreeBSD > 5.0 (security/clamav)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 24 16:00:39 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rob Evers
>Release:        FreeBSD 4.8-STABLE i386 and FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD haha.debank.tv 4.8-STABLE FreeBSD 4.8-STABLE #2: Sun Jun 8 23:25:20 CEST 2003 rob at haha.debank.tv:/usr/obj/usr/src/sys/HAHA i386


	
>Description:
cosmetic change and
The clamav-milter needs gcc30 or higher so 5.0 and up can build it by default.
Changed pkg-descr to reflect clamav-milter build on current systems

>How-To-Repeat:
>Fix:

diff -r -u clamav.orig/Makefile clamav/Makefile
--- clamav.orig/Makefile        Tue Jun 24 23:50:22 2003
+++ clamav/Makefile     Wed Jun 25 00:33:11 2003
@@ -23,7 +23,7 @@
 
 USE_GMAKE=     yes
 GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=      --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 USE_LIBTOOL=   yes
 INSTALLS_SHLIB=        yes
 
@@ -36,6 +36,13 @@
 MAN8=          clamd.8
 
 .include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500000
+CONFIGURE_ARGS+=       --enable-milter
+PLIST_SUB+=    CLAMAV-MILTER:=""
+.else
+PLIST_SUB+=    CLAMAV-MILTER:="@comment "
+.endif
 
 pre-install:
        @${ECHO} "===>   Creating custom user to run clamav..."
diff -r -u clamav.orig/pkg-descr clamav/pkg-descr
--- clamav.orig/pkg-descr       Tue Jun 24 23:50:22 2003
+++ clamav/pkg-descr    Wed Jun 25 00:43:09 2003
@@ -1,3 +1,5 @@
 Clam Antivirus is command line virus scanner written entirely in C
 and its database is kept up to date. It also detects polymorphic
 viruses, scans compressed files and supported by AMaViS.
+On FreeBSD 4.X the milter interface isn't built by default because
+it needs gcc30 or higher.
diff -r -u clamav.orig/pkg-plist clamav/pkg-plist
--- clamav.orig/pkg-plist       Tue Jun 24 23:50:22 2003
+++ clamav/pkg-plist    Wed Jun 25 00:28:00 2003
@@ -2,6 +2,7 @@
 bin/clamdscan
 bin/freshclam
 bin/sigtool
+%%CLAMAV-MILTER:%%sbin/clamav-milter
 sbin/clamd
 include/clamav.h
 lib/libclamav.so.1

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



More information about the freebsd-ports-bugs mailing list