Date: Wed, 25 Jun 2003 00:53:04 +0200 (CEST) From: Rob Evers <rob@debank.tv> To: FreeBSD-gnats-submit@FreeBSD.org Cc: markun@onohara.to Subject: ports/53699: enable clamav-milter for FreeBSD > 5.0 (security/clamav) Message-ID: <200306242253.h5OMr4W4099954@haha.debank.tv> Resent-Message-ID: <200306242300.h5ON0eUp036497@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306242253.h5OMr4W4099954>