[clamav] create systemd tmpfiles

ensc ensc at fedoraproject.org
Sun Jan 8 11:56:33 UTC 2012


commit df4373da0e624935c70fb3859b6588f0b293620e
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date:   Sun Jan 8 11:42:38 2012 +0100

    create systemd tmpfiles

 clamav.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
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 <enrico.scholz at informatik.tu-chemnitz.de>
 - set correct SELinux context for logfiles generated in %%post (#754555)
+- create systemd tmpfiles in %%post
 
 * Tue Oct 18 2011 Nick Bebout <nb at fedoraproject.org> - 0.97.3-1700
 - updated to 0.97.3


More information about the scm-commits mailing list