--- rpms/smeserver-clamav/sme8/smeserver-clamav-2.2.0-crondaily.patch 2010/06/05 19:11:21 1.1 +++ rpms/smeserver-clamav/sme8/smeserver-clamav-2.2.0-crondaily.patch 2010/06/14 20:38:03 1.2 @@ -1,23 +1,24 @@ diff -ruN smeserver-clamav-2.2.0.old/createlinks smeserver-clamav-2.2.0/createlinks ---- smeserver-clamav-2.2.0.old/createlinks 2010-06-05 19:53:20.000000000 +0100 -+++ smeserver-clamav-2.2.0/createlinks 2010-06-05 19:51:33.000000000 +0100 -@@ -5,7 +5,7 @@ - my $panel = "manager"; - panel_link("clamav", $panel); +--- smeserver-clamav-2.2.0.old/createlinks 2010-06-14 21:12:03.000000000 +0100 ++++ smeserver-clamav-2.2.0/createlinks 2010-06-14 21:14:08.000000000 +0100 +@@ -17,6 +17,7 @@ + } --foreach (qw(freshclam.conf clamd.conf logrotate.d/clamscan)) -+foreach (qw(freshclam.conf clamd.conf logrotate.d/clamscan cron.daily/freshclam)) - { - templates2events("/etc/$_", - qw( -diff -ruN smeserver-clamav-2.2.0.old/root/etc/e-smith/templates/etc/cron.daily/freshclam smeserver-clamav-2.2.0/root/etc/e-smith/templates/etc/cron.daily/freshclam ---- smeserver-clamav-2.2.0.old/root/etc/e-smith/templates/etc/cron.daily/freshclam 1970-01-01 01:00:00.000000000 +0100 -+++ smeserver-clamav-2.2.0/root/etc/e-smith/templates/etc/cron.daily/freshclam 2010-06-05 19:51:33.000000000 +0100 -@@ -0,0 +1 @@ -+# blank file -\ No newline at end of file + templates2events("/etc/crontab", "clamav-update"); ++templates2events("/etc/cron.daily/freshclam", "bootstrap-console-save"); + + my $event = "email-update"; + +diff -ruN smeserver-clamav-2.2.0.old/root/etc/e-smith/templates/etc/cron.daily/freshclam/10freshclam smeserver-clamav-2.2.0/root/etc/e-smith/templates/etc/cron.daily/freshclam/10freshclam +--- smeserver-clamav-2.2.0.old/root/etc/e-smith/templates/etc/cron.daily/freshclam/10freshclam 1970-01-01 01:00:00.000000000 +0100 ++++ smeserver-clamav-2.2.0/root/etc/e-smith/templates/etc/cron.daily/freshclam/10freshclam 2010-06-14 21:14:08.000000000 +0100 +@@ -0,0 +1,4 @@ ++#! /bin/sh ++# We do not run freshclam here, because an always-running supervised freshclam ++# is used in SME Server ++exit 0 diff -ruN smeserver-clamav-2.2.0.old/root/etc/e-smith/templates.metadata/etc/cron.daily/freshclam smeserver-clamav-2.2.0/root/etc/e-smith/templates.metadata/etc/cron.daily/freshclam --- smeserver-clamav-2.2.0.old/root/etc/e-smith/templates.metadata/etc/cron.daily/freshclam 1970-01-01 01:00:00.000000000 +0100 -+++ smeserver-clamav-2.2.0/root/etc/e-smith/templates.metadata/etc/cron.daily/freshclam 2010-06-05 19:51:33.000000000 +0100 ++++ smeserver-clamav-2.2.0/root/etc/e-smith/templates.metadata/etc/cron.daily/freshclam 2010-06-14 21:14:08.000000000 +0100 @@ -0,0 +1 @@ +PERMS=0755