/[smeserver]/rpms/clamav/sme10/clamav.spec
ViewVC logotype

Diff of /rpms/clamav/sme10/clamav.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by vip-ire, Tue May 3 19:19:44 2016 UTC Revision 1.5 by vip-ire, Tue May 3 19:41:59 2016 UTC
# Line 1  Line 1 
1  # $Id: clamav.spec,v 1.3 2016/03/03 10:30:49 vip-ire Exp $  # $Id: clamav.spec,v 1.4 2016/05/03 19:19:44 vip-ire Exp $
2  # Authority: dag  # Authority: dag
3  # Upstream: <clamav-devel$lists,sf,net>  # Upstream: <clamav-devel$lists,sf,net>
4    
# Line 289  fi Line 289  fi
289  /usr/sbin/useradd -r -d /var/clamav -s /sbin/nologin -c "Clam Anti Virus Checker" -g clamav 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 || :
290    
291  %post -n clamd  %post -n clamd
292  /sbin/chkconfig --add clamd  %systemd_post clamav-daemon.service
293    
294  %preun -n clamd  %preun -n clamd
295  if [ $1 -eq 0 ]; then  %systemd_preun clamav-daemon.service
     /sbin/service clamd stop &>/dev/null || :  
     /sbin/chkconfig --del clamd  
 fi  
296    
297  %postun -n clamd  %postun -n clamd
298  /sbin/service clamd condrestart &>/dev/null || :  %systemd_postun
299    
300  %post milter  %post milter
301  /sbin/chkconfig --add clamav-milter  /sbin/chkconfig --add clamav-milter
# Line 316  fi Line 313  fi
313  /usr/sbin/groupadd -r clamav 2>/dev/null || :  /usr/sbin/groupadd -r clamav 2>/dev/null || :
314  /usr/sbin/useradd -r -d /var/clamav -s /sbin/nologin -c "Clam Anti Virus Checker" -g clamav 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 || :
315    
316    %post db
317    %systemd_post clamav-freshclam.service
318    
319    %preun db
320    %systemd_preun clamav-freshclam.service
321    
322    %postun db
323    %systemd_postun
324    
325  %clean  %clean
326  %{__rm} -rf %{buildroot}  %{__rm} -rf %{buildroot}
327    
# Line 333  fi Line 339  fi
339  %doc %{_mandir}/man1/freshclam.1*  %doc %{_mandir}/man1/freshclam.1*
340  %doc %{_mandir}/man5/freshclam.conf.5*  %doc %{_mandir}/man5/freshclam.conf.5*
341  %config(noreplace) %{_sysconfdir}/freshclam.conf  %config(noreplace) %{_sysconfdir}/freshclam.conf
342    %{_unitdir}/clamav-freshclam.service
343  %{_bindir}/clambc  %{_bindir}/clambc
344  %{_bindir}/clamscan  %{_bindir}/clamscan
345  %{_bindir}/freshclam  %{_bindir}/freshclam
# Line 359  fi Line 366  fi
366  %config(noreplace) %{_sysconfdir}/clamd.conf  %config(noreplace) %{_sysconfdir}/clamd.conf
367  %config(noreplace) %{_sysconfdir}/logrotate.d/clamav  %config(noreplace) %{_sysconfdir}/logrotate.d/clamav
368  %config %{_initrddir}/clamd  %config %{_initrddir}/clamd
369    %{_unitdir}/clamav-daemon.service
370    %{_unitdir}/clamav-daemon.socket
371  %{_sbindir}/clamd  %{_sbindir}/clamd
372  %{_bindir}/clamconf  %{_bindir}/clamconf
373  %{_bindir}/clamdscan  %{_bindir}/clamdscan
# Line 409  fi Line 418  fi
418    
419  %changelog  %changelog
420  * Tue May 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.2-1.sme  * Tue May 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.2-1.sme
421  - UPdate to 0.99.2 [SME: 9487]  - Update to 0.99.2 [SME: 9487]
422    - Adapt to use systemd unit [SME: 9487]
423    
424  * Thu Mar 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.1-1.sme  * Thu Mar 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.1-1.sme
425  - Update to 0.99.1 [SME: 9268]  - Update to 0.99.1 [SME: 9268]


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed