Fix package build after ClamAV update. Option ArchiveMaxCompressionRatio
is gone.
This commit is contained in:
parent
b86b40983c
commit
842f1f94cf
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.5 2008/04/21 17:59:36 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.6 2008/04/21 18:32:06 mbalmer Exp $
|
||||
|
||||
COMMENT= true web content filtering for all
|
||||
DISTNAME= dansguardian-2.9.8.5
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
PKGNAME= ${DISTNAME}p2
|
||||
CATEGORIES= www net
|
||||
|
||||
HOMEPAGE= http://www.dansguardian.org/
|
||||
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-configs_contentscanners_clamav_conf_in,v 1.1 2008/04/21 18:32:06 mbalmer Exp $
|
||||
--- configs/contentscanners/clamav.conf.in.orig Mon Apr 21 20:22:55 2008
|
||||
+++ configs/contentscanners/clamav.conf.in Mon Apr 21 20:23:15 2008
|
||||
@@ -33,9 +33,6 @@ maxfiles = 1000
|
||||
#maxrecursionlevel - The maximum number of archives within archives
|
||||
maxreclevel = 5
|
||||
|
||||
-#maxratio - maxmimum compression ratio to avoid archive bombs
|
||||
-maxratio = 200
|
||||
-
|
||||
exceptionvirusmimetypelist = '@DGCONFDIR@/lists/contentscanners/exceptionvirusmimetypelist'
|
||||
exceptionvirusextensionlist = '@DGCONFDIR@/lists/contentscanners/exceptionvirusextensionlist'
|
||||
exceptionvirussitelist = '@DGCONFDIR@/lists/contentscanners/exceptionvirussitelist'
|
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-src_contentscanners_clamav_cpp,v 1.1 2008/04/21 18:32:06 mbalmer Exp $
|
||||
--- src/contentscanners/clamav.cpp.orig Mon Apr 21 20:20:39 2008
|
||||
+++ src/contentscanners/clamav.cpp Mon Apr 21 20:21:22 2008
|
||||
@@ -273,13 +273,9 @@ int clamavinstance::init(void* args)
|
||||
if (limits.maxreclevel < 1) {
|
||||
limits.maxreclevel = 5;
|
||||
}
|
||||
- limits.maxratio = cv["maxratio"].toInteger();
|
||||
- if (limits.maxratio < 1) {
|
||||
- limits.maxratio = 200;
|
||||
- }
|
||||
#ifdef DGDEBUG
|
||||
std::cerr << "maxfiles: " << limits.maxfiles << " maxfilesize: " << limits.maxfilesize
|
||||
- << " maxreclevel: " << limits.maxreclevel << " maxratio: " << limits.maxratio << std::endl;
|
||||
+ << " maxreclevel: " << limits.maxreclevel << std::endl;
|
||||
#endif
|
||||
|
||||
// load virus database
|
Loading…
Reference in New Issue
Block a user