ports/59219: Update security/clamav-devel
Rob Evers
rob at debank.tv
Wed Nov 12 16:10:26 UTC 2003
>Number: 59219
>Category: ports
>Synopsis: Update security/clamav-devel
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 12 08:10:20 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Rob Evers
>Release: FreeBSD 4.9-RC i386
>Organization:
>Environment:
System: FreeBSD haha.debank.tv 4.9-RC FreeBSD 4.9-RC #1: Fri Oct 3 12:53:39 CEST 2003 rob at haha.debank.tv:/usr/obj/usr/src/sys/HAHA i386
>Description:
Update security/clamav-devel to 20031112
-This is the same as 'stable' release 0.65
-After install or update virus definitions are automatically downloaded
(This is needed with the new snapshots)
>How-To-Repeat:
>Fix:
--- clamav-devel.patch begins here ---
diff -ruN clamav-devel.orig/Makefile clamav-devel/Makefile
--- clamav-devel.orig/Makefile Wed Nov 12 14:54:35 2003
+++ clamav-devel/Makefile Wed Nov 12 16:48:59 2003
@@ -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 @@
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.*
@@ -112,9 +112,12 @@
post-install:
@[ -f ${PREFIX}/etc/clamav.conf ] || \
- ${CP} ${PREFIX}/etc/clamav.conf.default \
+ ${CP} ${BUILD_WRKSRC}/etc/clamav.conf.default \
${PREFIX}/etc/clamav.conf
@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DATADIR}
+ ${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL \
+ ${CLAMAVUSER} ${DATADIR}
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \
${RC_DIR}/clamav-clamd${RC_SUFX}
.if defined(WITH_MILTER)
diff -ruN clamav-devel.orig/distinfo clamav-devel/distinfo
--- clamav-devel.orig/distinfo Wed Nov 12 14:54:35 2003
+++ clamav-devel/distinfo Wed Nov 12 14:56:03 2003
@@ -1 +1 @@
-MD5 (clamav-devel-20031030.tar.gz) = 104a317a837d4c6ef8a11af80f46d148
+MD5 (clamav-devel-20031112.tar.gz) = a439afdc1a5e51c8a5ecdd2af8436d95
diff -ruN clamav-devel.orig/pkg-install clamav-devel/pkg-install
--- clamav-devel.orig/pkg-install Wed Nov 12 14:54:35 2003
+++ clamav-devel/pkg-install Wed Nov 12 16:01:17 2003
@@ -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 @@
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 -ruN clamav-devel.orig/pkg-plist clamav-devel/pkg-plist
--- clamav-devel.orig/pkg-plist Wed Nov 12 14:54:35 2003
+++ clamav-devel/pkg-plist Wed Nov 12 15:10:02 2003
@@ -16,6 +16,8 @@
@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
--- clamav-devel.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list