]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- new script for cron updates
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 3 Nov 2003 20:47:38 +0000 (20:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamav.spec -> 1.50

clamav.spec

index 08a3b5bde855643dcebe413090d9da5b966ada84..802a65748e7bba6825d448f52af870e1274fcad4 100644 (file)
@@ -8,7 +8,7 @@ Summary:        An anti-virus utility for Unix
 Summary(pl):   Antywirusowe narzêdzie dla Unixów
 Name:          clamav
 Version:       0.60
-Release:       4.2
+Release:       4.5
 License:       GPL
 Group:         Applications
 Source0:       http://dl.sourceforge.net/clamav/%{name}-%{version}.tar.gz
@@ -18,6 +18,7 @@ Source2:      %{name}.sysconfig
 # gziped from http://clamav.elektrapro.com/database/:
 Source3:       %{name}-database-%{database_version}.tar.gz
 # Source3-md5: a8848904249edd97b873a43032c0208f
+Source4:       %{name}-cron-updatedb
 Patch0:         %{name}-pld_config.patch
 URL:           http://www.clamav.net/
 BuildRequires: autoconf
@@ -115,13 +116,14 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
        DESTDIR=$RPM_BUILD_ROOT
 
 cat <<EOF >$RPM_BUILD_ROOT%{_sysconfdir}/cron.d/%{name}
-0 */6 * * *    root    umask 022; %{_bindir}/freshclam --quiet -l %{_var}/log/%{name}.log --daemon-notify
+5 * * * *      root    %{_sbindir}/clamav-cron-updatedb
 EOF
 
 touch $RPM_BUILD_ROOT%{_var}/log/%{name}.log
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clamd
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clamd
+install %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}/clamav-cron-updatedb
 install etc/clamav.conf $RPM_BUILD_ROOT%{_sysconfdir}/
 
 # NOTE: clamd uses sane rights to it's clamd.pid file
This page took 0.032808 seconds and 4 git commands to generate.