SPECS: clamav.spec - config trigger
glen
glen at pld-linux.org
Mon Nov 6 09:49:38 CET 2006
Author: glen Date: Mon Nov 6 08:49:38 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- config trigger
---- Files affected:
SPECS:
clamav.spec (1.197 -> 1.198)
---- Diffs:
================================================================
Index: SPECS/clamav.spec
diff -u SPECS/clamav.spec:1.197 SPECS/clamav.spec:1.198
--- SPECS/clamav.spec:1.197 Sun Nov 5 17:17:48 2006
+++ SPECS/clamav.spec Mon Nov 6 09:49:33 2006
@@ -1,7 +1,6 @@
# $Revision$, $Date$
# TODO:
# - Make freshclam (script and daemon)
-# - trigger for 0.90 config
# - check how the "scripted updates" work (instead of old full cvd download)
#
# Conditional build:
@@ -11,7 +10,7 @@
#
%define _ver 0.90
%define _rc rc2
-%define _rel 0.1
+%define _rel 0.7
Summary: An anti-virus utility for Unix
Summary(pl): Narzędzie antywirusowe dla Uniksów
Name: clamav
@@ -274,7 +273,20 @@
mv -f /etc/clamd.conf /etc/clamd.conf.rpmnew
mv -f /etc/clamav.conf.rpmsave /etc/clamd.conf
echo "Changing config location in freshclam config"
- sed -i -e 's/clamav.conf/clamd.conf/' /etc/freshclam.conf
+ %{__sed} -i -e 's/clamav.conf/clamd.conf/' /etc/freshclam.conf
+fi
+
+%triggerpostun -- %{name} < 0.90-0.rc2.0.7
+if [ -f /etc/clamav.conf.rpmnew ]; then
+ %{__cp} -f /etc/clamd.conf{,.rpmsave}
+ %{__sed} -i -e '
+ s,^LogSyslog$,& yes,
+ s,^FixStaleSocket$,& yes,
+ s,^AllowSupplementaryGroups$,& yes,
+ s,^ClamukoScanOnOpen$,& yes,
+ s,^ClamukoScanOnClose$,& yes,
+ s,^ClamukoScanOnExec$,& yes,
+ ' /etc/clamd.conf
fi
%post milter
@@ -358,6 +370,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.198 2006/11/06 08:49:33 glen
+- config trigger
+
Revision 1.197 2006/11/05 16:17:48 glen
- updated database
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/clamav.spec?r1=1.197&r2=1.198&f=u
More information about the pld-cvs-commit
mailing list