summaryrefslogtreecommitdiffstats
path: root/security/clamav-devel
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-06-25 12:33:31 +0000
committernork <nork@FreeBSD.org>2003-06-25 12:33:31 +0000
commitd5009943f2dbd84b019a7dcba2d4a45280ca37b9 (patch)
tree03e33df01048fc40d16d7912757ea026baad4ace /security/clamav-devel
parent42c0b7293e704c938880af13c84451fdd3adf09b (diff)
downloadFreeBSD-ports-d5009943f2dbd84b019a7dcba2d4a45280ca37b9.zip
FreeBSD-ports-d5009943f2dbd84b019a7dcba2d4a45280ca37b9.tar.gz
Add new port of clamav-devel after repo copy.
Update to snapshot(20030625). PR: ports/53306 Submitted by: Rob Evers <rob@debank.tv> Approved by: portmgr (marcus) Repo copyed by: cvs (joe)
Diffstat (limited to 'security/clamav-devel')
-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
5 files changed, 40 insertions, 32 deletions
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index 9f1a412..7ace63e 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 32cf0bc..8f12c74 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 4686433..130ab02 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 e99d150..f040d5b 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 4cc7f7d..09d8e8d 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
OpenPOWER on IntegriCloud