[samba4/f17] - Move tmpfiles.d config to common package as it is needed for smbd and winbind. - Make sure tmpfi

asn asn at fedoraproject.org
Mon May 14 12:26:47 UTC 2012


commit 2e5a642bb223c92bfdc43b1472e6911e27b9160f
Author: Andreas Schneider <asn at cryptomilk.org>
Date:   Mon May 14 11:30:42 2012 +0200

    - Move tmpfiles.d config to common package as it is needed for smbd and
      winbind.
    - Make sure tmpfiles get created after installation.

 samba4.spec |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/samba4.spec b/samba4.spec
index 763f301..73481ea 100644
--- a/samba4.spec
+++ b/samba4.spec
@@ -1,4 +1,4 @@
-%define main_release 48
+%define main_release 49
 
 %define samba_version 4.0.0
 %define talloc_version 2.0.7
@@ -627,7 +627,9 @@ if [ $1 = 0 ] ; then
 fi
 exit 0
 
-%post common -p /sbin/ldconfig
+%post common
+/sbin/ldconfig
+/bin/systemd-tmpfiles --create %{_sysconfdir}/tmpfiles.d/samba.conf
 
 %postun common -p /sbin/ldconfig
 
@@ -673,7 +675,6 @@ rm -rf %{buildroot}
 %attr(1777,root,root) %dir /var/spool/samba
 %dir %{_sysconfdir}/openldap/schema
 %{_sysconfdir}/openldap/schema/samba.schema
-%{_sysconfdir}/tmpfiles.d/samba.conf
 %if 0%{?rhel} == 6
 %{_initrddir}/nmb
 %{_initrddir}/smb
@@ -812,6 +813,7 @@ rm -rf %{buildroot}
 %files common
 %defattr(-,root,root)
 #%{_libdir}/samba/charset ???
+%{_sysconfdir}/tmpfiles.d/samba.conf
 %{_bindir}/testparm
 %{_libdir}/libnetapi.so.*
 %{_libdir}/samba/libsmbldap.so
@@ -1224,6 +1226,12 @@ rm -rf %{buildroot}
 %endif # with_libwbclient
 
 %changelog
+* Mon May 14 2012 Andreas Schneider <asn at redhat.com> - 2:4.0.0-49.alpha18
+- Move tmpfiles.d config to common package as it is needed for smbd and
+  winbind.
+- Make sure tmpfiles get created after installation.
+- resolves: #820721
+
 * Thu May 10 2012 Andreas Schneider <asn at redhat.com> - 2:4.0.0-48.alpha18
 - Move testparm to samba4-common package.
 - Move smbcontrol and smbstatus to samba4 package.


More information about the scm-commits mailing list