]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- package missing .service file auto/th/clamav-0.97.7-4 auto/ti/clamav-0.97.7-4
authorŁukasz Kieś <kiesiu@pld-linux.org>
Mon, 18 Mar 2013 09:29:16 +0000 (10:29 +0100)
committerŁukasz Kieś <kiesiu@pld-linux.org>
Mon, 18 Mar 2013 09:29:16 +0000 (10:29 +0100)
- added missing triggerpostun

clamav.spec

index 713bc2131b0b74eec0b789e33a06e7dd9ba8f4c0..ecdcfd908d1a777bc9df253a4d776f6d43f1b8e1 100644 (file)
@@ -27,6 +27,7 @@ Source5:      %{name}.logrotate
 Source8:       %{name}-post-updatedb
 Source9:       %{name}-milter.sysconfig
 Source10:      %{name}.tmpfiles
+Source11:      clamd.service
 Patch0:                %{name}-pld_config.patch
 Patch1:                %{name}-nolibs.patch
 Patch2:                am-nosilentrules.patch
@@ -44,7 +45,7 @@ BuildRequires:        libtool
 %{?with_llvm:BuildRequires:    llvm-devel}
 BuildRequires: ncurses-devel
 BuildRequires: rpm >= 4.4.9-56
-BuildRequires: rpmbuild(macros) >= 1.514
+BuildRequires: rpmbuild(macros) >= 1.647
 BuildRequires: zlib-devel
 Requires(post,preun):  /sbin/chkconfig
 Requires(postun):      /usr/sbin/groupdel
@@ -289,6 +290,9 @@ EOF
 touch /var/lock/subsys/clamd
 %service -q clamd restart
 
+%triggerpostun -- %{name} < 0.97.7-4
+%systemd_trigger clamd.service
+
 %post milter
 /sbin/chkconfig --add clamav-milter
 %service clamav-milter restart "Clam Antivirus daemon"
@@ -316,6 +320,7 @@ fi
 %attr(755,root,root) %{_sbindir}/clamav-cron-updatedb
 %attr(755,root,root) %{_sbindir}/clamav-post-updatedb
 %{systemdtmpfilesdir}/%{name}.conf
+%{systemdunitdir}/clamd.service
 %attr(755,clamav,root) %dir /var/lib/%{name}
 %attr(640,clamav,root) %ghost /var/log/freshclam.log
 %attr(750,clamav,clamav) %dir /var/run/%{name}
This page took 0.039433 seconds and 4 git commands to generate.