aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/clamav-devel/Makefile35
-rw-r--r--security/clamav-devel/distinfo2
-rw-r--r--security/clamav-devel/pkg-descr9
-rw-r--r--security/clamav-devel/pkg-install23
-rw-r--r--security/clamav-devel/pkg-plist3
6 files changed, 41 insertions, 32 deletions
diff --git a/security/Makefile b/security/Makefile
index e999871c8bf2..dca3c25a4731 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -37,6 +37,7 @@
SUBDIR += chrootuid
SUBDIR += cksfv
SUBDIR += clamav
+ SUBDIR += clamav-devel
SUBDIR += cops
SUBDIR += cp2fwb
SUBDIR += crack
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index 9f1a412b6d62..7ace63eca5fa 100644
--- a/security/clamav-devel/Makefile
+++ b/security/clamav-devel/Makefile
@@ -1,17 +1,20 @@
-# New ports collection makefile for: clamav
-# Date created: 15 July 2002
-# Whom: markun@onohara.to
+# New ports collection makefile for: clamav-devel
+# Date created: 13 June 2003
+# Whom: Rob Evers <rob@debank.tv>
#
# $FreeBSD$
#
PORTNAME= clamav
-PORTVERSION= 0.60
+PORTVERSION= 20030625
CATEGORIES= security
-MASTER_SITES= http://clamav.elektrapro.com/stable/ \
- http://clamav.essentkabel.com/stable/
+MASTER_SITES= http://clamav.elektrapro.com/snapshot/ \
+ http://clamav.essentkabel.com/snapshot/ \
+ http://clamav.ozforces.com/ \
+ http://clamav.rulez.pl/snapshot/
+PKGNAMESUFFIX= -devel
-MAINTAINER= markun@onohara.to
+MAINTAINER= rob@debank.tv
COMMENT= Command line virus scanner written entirely in C
RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \
@@ -23,26 +26,32 @@ RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \
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
CONFIGURE_ARGS= --prefix=${PREFIX} \
- --disable-clamav \
- --enable-bigstack
+ --disable-clamav
-MAN1= clamscan.1 freshclam.1 sigtool.1 clamdscan.1 clamav-milter.1
+MAN1= clamscan.1 freshclam.1 sigtool.1 clamdscan.1
MAN5= clamav.conf.5
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..."
+ @${ECHO} "===> Creating custom user to run clamav..."
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
- @${ECHO} "===> Setting permissions..."
+ @${ECHO} "===> Setting permissions..."
@${SETENV} PKG_PREFIX=${PREFIX} ${sh} \
${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
diff --git a/security/clamav-devel/distinfo b/security/clamav-devel/distinfo
index 32cf0bc64db3..8f12c749dbf9 100644
--- a/security/clamav-devel/distinfo
+++ b/security/clamav-devel/distinfo
@@ -1 +1 @@
-MD5 (clamav-0.60.tar.gz) = eddeba4e1f399f65bc71aa2b3e901543
+MD5 (clamav-20030625.tar.gz) = ce9d1da01fa3081d2fbc186ec6d851b9
diff --git a/security/clamav-devel/pkg-descr b/security/clamav-devel/pkg-descr
index 468643344766..130ab0289186 100644
--- a/security/clamav-devel/pkg-descr
+++ b/security/clamav-devel/pkg-descr
@@ -1,3 +1,6 @@
-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.
+This is a snapshot version of Clam Antivirus. Clam Antivirus
+is a command line virus scanner written entirely in C its
+database is kept up to date. It also detects polymorphic
+viruses, scans compressed files and is 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-devel/pkg-install b/security/clamav-devel/pkg-install
index e99d15038e69..f040d5b8fa83 100644
--- a/security/clamav-devel/pkg-install
+++ b/security/clamav-devel/pkg-install
@@ -1,15 +1,18 @@
#!/bin/sh
-if [ "$2" = "PRE-INSTALL" ]; then
+
+if [ "$2" != "PRE-INSTALL" ]; then
+ chown -R clamav:clamav ${PKG_PREFIX}/share/clamav
+fi
USER=clamav
GROUP=clamav
if ! pw groupshow "$GROUP" 2>/dev/null 1>&2; then
if pw groupadd $GROUP; then
- echo "=> Added group \"$GROUP\"."
+ echo "===> Added group \"$GROUP\"."
else
- echo "=> Adding group \"$GROUP\" failed..."
+ echo "===> Adding group \"$GROUP\" failed..."
exit 1
fi
fi
@@ -19,20 +22,10 @@ if ! pw usershow "$USER" 2>/dev/null 1>&2; then
-s "/sbin/nologin" -d "/nonexistent" \
-c "Clam Antivirus"; \
then
- echo "=> Added user \"$USER\"."
+ echo "===> Added user \"$USER\"."
else
- echo "=> Adding user \"$USER\" failed..."
+ echo "===> Adding user \"$USER\" failed..."
exit 1
fi
fi
-fi
-
-if [ "$2" = "POST-INSTALL" ]; then
- chown -R clamav:clamav ${PKG_PREFIX}/share/clamav
-fi
-
-if [ "$2" != "POST-INSTALL" ] && [ "$2" != "PRE-INSTALL" ]; then
- exit 0
-fi
-
exit 0
diff --git a/security/clamav-devel/pkg-plist b/security/clamav-devel/pkg-plist
index 4cc7f7d00c9b..09d8e8d8f624 100644
--- a/security/clamav-devel/pkg-plist
+++ b/security/clamav-devel/pkg-plist
@@ -1,7 +1,9 @@
+@exec mkdir -p share/clamav
bin/clamscan
bin/clamdscan
bin/freshclam
bin/sigtool
+%%CLAMAV-MILTER:%%sbin/clamav-milter
sbin/clamd
include/clamav.h
lib/libclamav.so.1
@@ -11,5 +13,6 @@ lib/libclamav.a
share/clamav/mirrors.txt
share/clamav/viruses.db
share/clamav/viruses.db2
+@exec chown clamav share/clamav share/clamav/mirrors.txt share/clamav/viruses.db share/clamav/viruses.db2
@dirrm share/clamav
@unexec rmuser -y clamav