summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-11-12 21:14:57 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-11-12 21:14:57 +0000
commit3314beebee4dd9bfb18581492aaf032aa106c575 (patch)
treee60da490a667909d12c9842a2b58d99476b6e45d /security
parentHere's the patch. (diff)
- update to 20031112
PR: 59219 Submitted by: rob@debank.tv
Notes
Notes: svn path=/head/; revision=93843
Diffstat (limited to 'security')
-rw-r--r--security/clamav-devel/Makefile6
-rw-r--r--security/clamav-devel/distinfo2
-rw-r--r--security/clamav-devel/pkg-install10
-rw-r--r--security/clamav-devel/pkg-plist2
4 files changed, 13 insertions, 7 deletions
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index 6e930e33736e..26d649670a14 100644
--- a/security/clamav-devel/Makefile
+++ b/security/clamav-devel/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= clamav
-PORTVERSION= 20031030
+PORTVERSION= 20031112
CATEGORIES= security
MASTER_SITES= http://clamav.sourceforge.net/snapshot/
PKGNAMESUFFIX= -devel
@@ -36,9 +36,9 @@ CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
-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
+MAN8= clamd.8 clamav-milter.8
CONFLICTS= clamav-0.*
diff --git a/security/clamav-devel/distinfo b/security/clamav-devel/distinfo
index 8265f1aa0613..9f2435f4894a 100644
--- a/security/clamav-devel/distinfo
+++ b/security/clamav-devel/distinfo
@@ -1 +1 @@
-MD5 (clamav-devel-20031030.tar.gz) = 104a317a837d4c6ef8a11af80f46d148
+MD5 (clamav-devel-20031112.tar.gz) = a439afdc1a5e51c8a5ecdd2af8436d95
diff --git a/security/clamav-devel/pkg-install b/security/clamav-devel/pkg-install
index 418e2e9bc8d5..85f30e097aca 100644
--- a/security/clamav-devel/pkg-install
+++ b/security/clamav-devel/pkg-install
@@ -1,8 +1,6 @@
#!/bin/sh
-if [ ! "$2" = "PRE-INSTALL" ]; then
- exit 0
-fi
+if [ "$2" = "PRE-INSTALL" ]; then
if [ -z "${CLAMAVUSER}" ]; then
CLAMAVUSER=clamav
@@ -43,5 +41,11 @@ chown "${CLAMAVUSER}:${CLAMAVGROUP}" "${CLAMRUN}"
mkdir -p "${CLAMLOG}"
chown "${CLAMAVUSER}:${CLAMAVGROUP}" "${CLAMLOG}"
+fi
+
+if [ "$2" = "POST-INSTALL" ]; then
+ echo "===> Updating virus definitions..."
+ $1/bin/freshclam -u $3 --datadir=$4
+fi
exit 0
diff --git a/security/clamav-devel/pkg-plist b/security/clamav-devel/pkg-plist
index 820f593a4da3..39ab856d80c1 100644
--- a/security/clamav-devel/pkg-plist
+++ b/security/clamav-devel/pkg-plist
@@ -16,6 +16,8 @@ etc/clamav.conf.default
@owner %%CLAMAVUSER%%
@group %%CLAMAVGROUP%%
%%DATADIR%%/mirrors.txt
+%%DATADIR%%/main.cvd
+%%DATADIR%%/daily.cvd
@exec chown %%CLAMAVUSER%%:%%CLAMAVGROUP%% %B
@dirrm %%DATADIR%%
@unexec rmdir /var/run/clamav 2>/dev/null || true