From 81da6d97d210f747e3e61fcb6a39ef0f82ed3ff5 Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura Date: Mon, 7 Jul 2003 07:37:08 +0000 Subject: Use clamav-milter, but support only gcc30 or higher. PR: ports/53699 Submitted by: Rob Evers Approved by: TERAMOTO Masahiro (maintainer) --- security/clamav/Makefile | 8 ++++++++ security/clamav/pkg-descr | 2 ++ security/clamav/pkg-plist | 1 + 3 files changed, 11 insertions(+) (limited to 'security') diff --git a/security/clamav/Makefile b/security/clamav/Makefile index 9f1a412b6d62..9410673f3962 100644 --- a/security/clamav/Makefile +++ b/security/clamav/Makefile @@ -7,6 +7,7 @@ PORTNAME= clamav PORTVERSION= 0.60 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://clamav.elektrapro.com/stable/ \ http://clamav.essentkabel.com/stable/ @@ -37,6 +38,13 @@ MAN8= clamd.8 .include +.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..." ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL diff --git a/security/clamav/pkg-descr b/security/clamav/pkg-descr index 468643344766..af63f4e19c00 100644 --- a/security/clamav/pkg-descr +++ b/security/clamav/pkg-descr @@ -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 --git a/security/clamav/pkg-plist b/security/clamav/pkg-plist index 4cc7f7d00c9b..cac5ce5be29f 100644 --- a/security/clamav/pkg-plist +++ b/security/clamav/pkg-plist @@ -2,6 +2,7 @@ bin/clamscan bin/clamdscan bin/freshclam bin/sigtool +%%CLAMAV-MILTER:%%sbin/clamav-milter sbin/clamd include/clamav.h lib/libclamav.so.1 -- cgit v1.2.3