Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 09:47:41 +0100 (CET)
From:      Rob Evers <rob@bavke.debank.tv>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        yar@FreeBSD.org
Subject:   ports/76086: Unbreak security/clamav-devel
Message-ID:  <200501110847.j0B8lfk9014423@bavke.debank.tv>
Resent-Message-ID: <200501110850.j0B8oS8R088594@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         76086
>Category:       ports
>Synopsis:       Unbreak 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:   Tue Jan 11 08:50:27 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Rob Evers
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD flappie.debank.tv 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Dec 23 15:29:18 CET 2004 rob@flappie:/usr/obj/usr/src/sys/FLAPPIE i386


>Description:
Unbreak security/clamav-devel:
	Fix fetching
	Update to new snapshot
	various cleanups (obtained from yar@)
>How-To-Repeat:
>Fix:


--- clamav-devel.patch begins here ---
===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/security/clamav-devel/Makefile /usr/ports/security/clamav-devel.new/Makefile
--- /usr/ports/security/clamav-devel/Makefile	Wed Dec 22 03:10:12 2004
+++ /usr/ports/security/clamav-devel.new/Makefile	Tue Jan 11 09:31:51 2005
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	clamav
-PORTVERSION=	20041213
-PORTREVISION=	1
+PORTVERSION=	20050110
 CATEGORIES=	security
 MASTER_SITES=	http://www.clamav.net/snapshot/
 PKGNAMESUFFIX=	-devel
@@ -42,7 +41,9 @@
 PORTDOCS=	NEWS ChangeLog html
 
 DBDIR=		/var/db/clamav
-PLIST_SUB+=	DBDIR=${DBDIR}
+RUNDIR=		/var/run/clamav
+PLIST_SUB+=	DBDIR=${DBDIR} RUNDIR=${RUNDIR}
+
 CONFIGURE_ARGS=	--with-dbdir=${DBDIR} \
 		--with-zlib=/usr \
 		--disable-zlib-vcheck \
@@ -65,11 +66,12 @@
 
 CLAMAVUSER?=	clamav
 CLAMAVGROUP?=	clamav
-CLAMAV_CLAMD_SOCKET?=	/var/run/clamav/clamd
-CLAMAV_MILTER_SOCKET?=	/var/run/clamav/clmilter.sock
+CLAMAV_CLAMD_SOCKET?=	${RUNDIR}/clamd
+CLAMAV_MILTER_SOCKET?=	${RUNDIR}/clmilter.sock
 
 SED_SCRIPT=	-e 's|%%PREFIX%%|${PREFIX}|g' \
 		-e 's|%%DBDIR%%|${DBDIR}|g' \
+		-e 's|%%RUNDIR%%|${RUNDIR}|g' \
 		-e 's|%%CLAMAVUSER%%|${CLAMAVUSER}|g' \
 		-e 's|%%CLAMAVGROUP%%|${CLAMAVGROUP}|g' \
 		-e 's|%%CLAMAV_CLAMD_SOCKET%%|${CLAMAV_CLAMD_SOCKET}|g' \
@@ -77,7 +79,7 @@
 
 SED_CONF=	-E -e 's|^\#?(Example)$$|\#\1|' \
 		-e 's|^\#?((Update)?LogFile) .*/([a-z]+\.log)$$|\1 /var/log/clamav/\3|' \
-		-e 's|^\#?(PidFile) .*/([a-z]+\.pid)$$|\1 /var/run/clamav/\2|' \
+		-e 's|^\#?(PidFile) .*/([a-z]+\.pid)$$|\1 ${RUNDIR}/\2|' \
 		-e 's|^\#?(LocalSocket) .*$$|\1 ${CLAMAV_CLAMD_SOCKET}|' \
 		-e 's|^\#?(User) .*$$|\1 ${CLAMAVUSER}|' \
 		-e 's|^\#?(AllowSupplementaryGroups)$$|\1|' \
diff -ruN --exclude=CVS /usr/ports/security/clamav-devel/distinfo /usr/ports/security/clamav-devel.new/distinfo
--- /usr/ports/security/clamav-devel/distinfo	Wed Dec 15 10:57:27 2004
+++ /usr/ports/security/clamav-devel.new/distinfo	Tue Jan 11 09:31:51 2005
@@ -1,2 +1,2 @@
-MD5 (clamav-devel-20041213.tar.gz) = bbd6194cbbc0bd71341e5ecffa5486b7
-SIZE (clamav-devel-20041213.tar.gz) = 1476871
+MD5 (clamav-devel-20050110.tar.gz) = 60d394ae8b6533640adbef9306a35c2f
+SIZE (clamav-devel-20050110.tar.gz) = 1542220
diff -ruN --exclude=CVS /usr/ports/security/clamav-devel/files/patch-configure.in /usr/ports/security/clamav-devel.new/files/patch-configure.in
--- /usr/ports/security/clamav-devel/files/patch-configure.in	Wed Dec 15 10:57:27 2004
+++ /usr/ports/security/clamav-devel.new/files/patch-configure.in	Tue Jan 11 09:31:51 2005
@@ -1,14 +1,5 @@
---- configure.in.orig	Tue Dec  7 23:46:18 2004
-+++ configure.in	Mon Dec 13 23:09:50 2004
-@@ -38,7 +38,7 @@
- AC_DEFINE(FILEBUFF, 8192,   [file i/o buffer size])
- 
- AC_HEADER_STDC
--AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h sys/filio.h uio.h)
-+AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h sys/filio.h sys/uio.h)
- AC_CHECK_HEADER(syslog.h,AC_DEFINE(USE_SYSLOG,1,[use syslog]),)
- 
- AC_TYPE_OFF_T
+--- configure.in.o	Mon Jan 10 20:13:18 2005
++++ configure.in	Mon Jan 10 20:13:42 2005
 @@ -360,9 +360,6 @@
      ;;
  freebsd*)
diff -ruN --exclude=CVS /usr/ports/security/clamav-devel/pkg-plist /usr/ports/security/clamav-devel.new/pkg-plist
--- /usr/ports/security/clamav-devel/pkg-plist	Wed Dec 22 03:10:12 2004
+++ /usr/ports/security/clamav-devel.new/pkg-plist	Tue Jan 11 09:31:51 2005
@@ -1,6 +1,7 @@
 @comment $FreeBSD: ports/security/clamav-devel/pkg-plist,v 1.24 2004/12/22 02:10:12 edwin Exp $
-@unexec [ ! -f /var/run/clamav/clamd.pid ] || %%RC_DIR%%/clamav-clamd%%RC_SUFX%% stop || true
-@unexec [ ! -f /var/run/clamav/freshclam.pid ] || %%RC_DIR%%/clamav-freshclam%%RC_SUFX%% stop || true
+%%CLAMAV-MILTER%%@unexec [ ! -f %%RUNDIR%%/clamav-milter.pid ] || %%RC_DIR%%/clamav-milter%%RC_SUFX%% stop || true
+@unexec [ ! -f %%RUNDIR%%/freshclam.pid ] || %%RC_DIR%%/clamav-freshclam%%RC_SUFX%% stop || true
+@unexec [ ! -f %%RUNDIR%%/clamd.pid ] || %%RC_DIR%%/clamav-clamd%%RC_SUFX%% stop || true
 bin/clamav-config
 bin/clamscan
 bin/clamdscan
@@ -25,5 +26,5 @@
 @unexec [ ! -f %%DBDIR%%/daily.cvd ] || rm -f %%DBDIR%%/daily.cvd || true
 @unexec [ ! -f %%DBDIR%%/main.cvd ] || rm -f %%DBDIR%%/main.cvd || true
 @unexec rmdir %%DBDIR%%
-@unexec rmdir /var/run/clamav 2>/dev/null || true
+@unexec rmdir %%RUNDIR%% 2>/dev/null || true
 @unexec rmdir /var/log/clamav 2>/dev/null || true
===> Done
--- clamav-devel.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501110847.j0B8lfk9014423>