--- rpms/clamav/sme10/clamav.spec 2016/02/04 11:58:13 1.2 +++ rpms/clamav/sme10/clamav.spec 2018/01/27 10:44:12 1.6 @@ -1,4 +1,4 @@ -# $Id$ +# $Id: clamav.spec,v 1.5 2016/05/03 19:41:59 vip-ire Exp $ # Authority: dag # Upstream: @@ -13,8 +13,8 @@ Summary: Anti-virus software Name: clamav -Version: 0.99 -Release: 2%{?dist} +Version: 0.99.3 +Release: 1%{?dist} License: GPL Group: Applications/System URL: http://www.clamav.net/ @@ -289,16 +289,13 @@ fi /usr/sbin/useradd -r -d /var/clamav -s /sbin/nologin -c "Clam Anti Virus Checker" -g clamav clamav 2>/dev/null || : %post -n clamd -/sbin/chkconfig --add clamd +%systemd_post clamav-daemon.service %preun -n clamd -if [ $1 -eq 0 ]; then - /sbin/service clamd stop &>/dev/null || : - /sbin/chkconfig --del clamd -fi +%systemd_preun clamav-daemon.service %postun -n clamd -/sbin/service clamd condrestart &>/dev/null || : +%systemd_postun %post milter /sbin/chkconfig --add clamav-milter @@ -316,6 +313,15 @@ fi /usr/sbin/groupadd -r clamav 2>/dev/null || : /usr/sbin/useradd -r -d /var/clamav -s /sbin/nologin -c "Clam Anti Virus Checker" -g clamav clamav 2>/dev/null || : +%post db +%systemd_post clamav-freshclam.service + +%preun db +%systemd_preun clamav-freshclam.service + +%postun db +%systemd_postun + %clean %{__rm} -rf %{buildroot} @@ -333,6 +339,7 @@ fi %doc %{_mandir}/man1/freshclam.1* %doc %{_mandir}/man5/freshclam.conf.5* %config(noreplace) %{_sysconfdir}/freshclam.conf +%{_unitdir}/clamav-freshclam.service %{_bindir}/clambc %{_bindir}/clamscan %{_bindir}/freshclam @@ -359,6 +366,8 @@ fi %config(noreplace) %{_sysconfdir}/clamd.conf %config(noreplace) %{_sysconfdir}/logrotate.d/clamav %config %{_initrddir}/clamd +%{_unitdir}/clamav-daemon.service +%{_unitdir}/clamav-daemon.socket %{_sbindir}/clamd %{_bindir}/clamconf %{_bindir}/clamdscan @@ -408,6 +417,16 @@ fi %exclude %{_libdir}/libclamunrar_iface.la %changelog +* Sat Jan 27 2018 Daniel Berteaud - 0.99.3-1.sme +- Update to 0.99.3 [SME: 10500] + +* Tue May 3 2016 Daniel Berteaud - 0.99.2-1.sme +- Update to 0.99.2 [SME: 9487] +- Adapt to use systemd unit [SME: 9487] + +* Thu Mar 3 2016 Daniel Berteaud - 0.99.1-1.sme +- Update to 0.99.1 [SME: 9268] + * Tue Jan 12 2016 Daniel Berteaud - 0.99-2.sme - Add pcre-devel to BuildRequires [SME: 9151]