]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- use .cvd database format
authorankry <ankry@pld-linux.org>
Mon, 1 Mar 2004 12:42:44 +0000 (12:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixed pid path in initscript
- rel. 4 (3 is for Ra)

Changed files:
    clamav.spec -> 1.71

clamav.spec

index a22847164ca2bef1c3ff1116e64ab7b21cef57bd..003ed08b21a4bb2ca7686301eb6efa1171544d48 100644 (file)
@@ -8,7 +8,7 @@ Summary(pl):    Antywirusowe narz
 Name:          clamav
 %define        _ver    0.67-1
 Version:       %(echo %{_ver} | tr - .)
-Release:       2
+Release:       4
 License:       GPL
 Group:         Applications
 Source0:       http://dl.sourceforge.net/clamav/%{name}-%{_ver}.tar.gz
@@ -16,7 +16,7 @@ Source0:      http://dl.sourceforge.net/clamav/%{name}-%{_ver}.tar.gz
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 # bziped from http://www.clamav.net/database/
-Source3:       %{name}-database-%{database_version}.tar.bz2
+# Source3:     %{name}-database-%{database_version}.tar.bz2
 # Source3-md5: 4affa1cae8a0edaaaa084ea57702c1e8
 Source4:       %{name}-cron-updatedb
 Source5:       %{name}.logrotate
@@ -94,7 +94,7 @@ Virus database for clamav (updated %{database_version})
 Bazy wirusów dla clamav (aktualizowana %{database_version})
 
 %prep
-%setup -q -a 3 -n %{name}-%{_ver}
+%setup -q -n %{name}-%{_ver}
 %patch0 -p1
 
 %build
@@ -122,7 +122,7 @@ EOF
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clamd
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clamd
-install database/viruses.db* $RPM_BUILD_ROOT/var/lib/%{name}/
+install database/*.cvd $RPM_BUILD_ROOT/var/lib/%{name}/
 install %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}/clamav-cron-updatedb
 install etc/clamav.conf $RPM_BUILD_ROOT%{_sysconfdir}/
 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
@@ -188,6 +188,9 @@ if [ -f /var/lock/subsys/clamd ]; then
 else
        echo "Run \"/etc/rc.d/init.d/clamd start\" to start Clam Antivirus daemon." >&2
 fi
+touch %{_var}/log/freshclam.log
+chown clamav:root %{_var}/log/freshclam.log
+chmod 640 %{_var}/log/freshclam.log
 
 %preun
 if [ "$1" = "0" ]; then
@@ -215,7 +218,7 @@ fi
 %attr(755,root,root) %{_sbindir}/*
 %attr(755,clamav,root) %dir /var/lib/%{name}
 #%%attr(640,clamav,root) %ghost %{_var}/log/%{name}.log
-%attr(640,clamav,root) %{_var}/log/freshclam.log
+%attr(640,clamav,root) %ghost %{_var}/log/freshclam.log
 %attr(750,clamav,clamav) %dir %{_var}/run/%{name}
 
 %attr(640,root,root) %{_sysconfdir}/cron.d/%{name}
@@ -243,4 +246,4 @@ fi
 
 %files database
 %defattr(644,root,root,755)
-%attr(644,clamav,root) %verify(not md5 size mtime) /var/lib/%{name}/*.db*
+%attr(644,clamav,root) %verify(not md5 size mtime) /var/lib/%{name}/*.cvd
This page took 0.111908 seconds and 4 git commands to generate.