From 19a2147a7789f4bf1bc756e684f9dff2d6e5ad28 Mon Sep 17 00:00:00 2001 From: ensc Date: Apr 22 2009 16:33:51 +0000 Subject: updated --- diff --git a/clamav-0.94.2-nooutdate.patch b/clamav-0.94.2-nooutdate.patch new file mode 100644 index 0000000..c558274 --- /dev/null +++ b/clamav-0.94.2-nooutdate.patch @@ -0,0 +1,12 @@ +diff -up clamav-0.94.2/freshclam/mirman.c.nooutdate clamav-0.94.2/freshclam/mirman.c +--- clamav-0.94.2/freshclam/mirman.c.nooutdate 2008-11-21 23:24:42.000000000 +0100 ++++ clamav-0.94.2/freshclam/mirman.c 2009-04-22 18:20:58.000000000 +0200 +@@ -131,7 +131,7 @@ int mirman_check(uint32_t *ip, int af, s + return 0; + } + +- if(mdat->dbflevel && (mdat->dbflevel > flevel) && (mdat->dbflevel - flevel > 3)) ++ if(0 && mdat->dbflevel && (mdat->dbflevel > flevel) && (mdat->dbflevel - flevel > 3)) + if(time(NULL) - mdat->mirtab[i].atime < 4 * 3600) + return 2; + diff --git a/clamav.spec b/clamav.spec index ab6ef56..c302dea 100644 --- a/clamav.spec +++ b/clamav.spec @@ -19,7 +19,7 @@ Summary: End-user tools for the Clam Antivirus scanner Name: clamav Version: 0.94.2 -Release: %release_func 1%{?snapshot:.%snapshot} +Release: %release_func 2%{?snapshot:.%snapshot} License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2} Group: Applications/File @@ -46,6 +46,7 @@ Patch22: clamav-0.93.3-initoff.patch Patch24: clamav-0.92-private.patch Patch25: clamav-0.92-open.patch Patch26: clamav-0.93.3-pid.patch +Patch27: clamav-0.94.2-nooutdate.patch BuildRoot: %_tmppath/%name-%version-%release-root Requires: clamav-lib = %version-%release Requires: data(clamav) @@ -258,6 +259,7 @@ Sendmail customizations of the clamav-milter. %patch24 -p1 -b .private %patch25 -p1 -b .open %patch26 -p1 -b .pid +%patch27 -p1 -b .nooutdate install -p -m0644 %SOURCE300 clamav-milter/ @@ -548,6 +550,16 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || : %changelog +* Wed Apr 22 2009 Enrico Scholz - 0.94.2-2 +- added -nooutdate patch to avoid the 'has connected too many times + with an outdated version' on freshclam invocation. Because clamav is + buggy like hell and full with security leaks, the database upgrade + must not be skipped as broken modules are disabled by it too. + + The patch itself is probably required due to a bug in freshclam: + this message should never be triggered when 'freshclam' is invoked + in non-daemon mode (e.g. manually or as a cron-job). + * Tue Dec 02 2008 Robert Scheck - 0.94.2-1 - Upgrade to 0.94.2 (#474002) diff --git a/verinfo b/verinfo index a4a0b38..814d953 100644 --- a/verinfo +++ b/verinfo @@ -1,2 +1,2 @@ -http://prdownloads.sourceforge.net/sourceforge/clamav/ +http://sourceforge.net/project/showfiles.php?group_id=86638&package_id=90197 clamav-([0-9.-]*?)\.tar\.