diff --git a/clamav.spec b/clamav.spec index 2f0f926..d5a2ef5 100644 --- a/clamav.spec +++ b/clamav.spec @@ -583,6 +583,10 @@ rm -rf "$RPM_BUILD_ROOT" %__fe_useradd 49 -r -s /sbin/nologin -d / -M \ -g %scanuser %scanuser &>/dev/null || : +%{?with_tmpfiles: +%post scanner +%{?with_systemd:/bin/systemd-tmpfiles --create %_sysconfdir/tmpfiles.d/clamd.scan.conf || :}} + %postun scanner %__fe_userdel %scanuser &>/dev/null || : %__fe_groupdel %scanuser &>/dev/null || : @@ -635,6 +639,7 @@ test -e %milterlog || { chown root:%milteruser %milterlog ! -x /sbin/restorecon || /sbin/restorecon %milterlog } +%{?with_systemd:/bin/systemd-tmpfiles --create %_sysconfdir/tmpfiles.d/clamav-milter.conf || :}} %postun milter %__fe_userdel %milteruser &>/dev/null || : @@ -822,6 +827,7 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || : %changelog * Sun Jan 8 2012 Enrico Scholz - set correct SELinux context for logfiles generated in %%post (#754555) +- create systemd tmpfiles in %%post * Tue Oct 18 2011 Nick Bebout - 0.97.3-1700 - updated to 0.97.3