Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2007 14:08:47 +0200 (CEST)
From:      Tom Mueller-Kortkamp <tmueko@kommunity.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/117135: fix for www/mod_clamav
Message-ID:  <200710121208.l9CC8knC042114@thegates.kommunity.net>
Resent-Message-ID: <200710121230.l9CCU3vv000340@freefall.freebsd.org>

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

>Number:         117135
>Category:       ports
>Synopsis:       fix for www/mod_clamav
>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:   Fri Oct 12 12:30:03 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Tom Mueller-Kortkamp
>Release:        FreeBSD 6.2-RELEASE-p7 i386
>Organization:
Kommunity GmbH & Co. KG
>Environment:
System: FreeBSD thegates.kommunity.net 6.2-RELEASE

>Description:
	Fix for broken mod_clamav
>How-To-Repeat:

>Fix:

--- mod_clamav begins here ---
diff -Nur mod_clamav.bak/Makefile mod_clamav/Makefile
--- mod_clamav.bak/Makefile	Fri Oct 12 09:58:24 2007
+++ mod_clamav/Makefile	Fri Oct 12 09:58:54 2007
@@ -14,8 +14,6 @@
 MAINTAINER=	tmueko@kommunity.net
 COMMENT=	Scans content delivered by the Apache2 proxy module for viruses
 
-BROKEN=		doesn't work since cl_buildtrie() and cl_freetrie() where removed from clamlib (upstream problem)
-
 LIB_DEPENDS+=	clamav:${PORTSDIR}/${CLAMAV_PORT}
 
 USE_AUTOTOOLS=	libtool:15
diff -Nur mod_clamav.bak/files/patch-mod_clamav.c mod_clamav/files/patch-mod_clamav.c
--- mod_clamav.bak/files/patch-mod_clamav.c	Thu Jan  1 01:00:00 1970
+++ mod_clamav/files/patch-mod_clamav.c	Fri Oct 12 10:04:22 2007
@@ -0,0 +1,25 @@
+--- mod_clamav.c.bak	Fri Oct 12 10:03:41 2007
++++ mod_clamav.c	Fri Oct 12 10:02:09 2007
+@@ -102,6 +102,22 @@
+     unsigned long	reloads;	/* number of database reloads (local) */
+ } clamav_stats;
+ 
++const char *cl_perror(int clerror) /* deprecated */ 
++{ 
++	return cl_strerror(clerror); 
++} 
++ 
++void cl_freetrie(struct cl_node *root) /* for backward compatibility */ 
++{ 
++	cl_free(root); 
++} 
++ 
++int cl_buildtrie(struct cl_node *root) /* for backward compatibility */ 
++{ 
++	return cl_build(root); 
++} 
++ 
++
+ static void	clamav_virus_record(clamav_stats *stats, const char *uri,
+ 		    const char *req, const char *virus, off_t size) {
+     /* find the index of the entry we are about to create */
--- mod_clamav ends here ---


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



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