summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samba.conf.tmp1
-rw-r--r--samba4.spec8
2 files changed, 7 insertions, 2 deletions
diff --git a/samba.conf.tmp b/samba.conf.tmp
new file mode 100644
index 0000000..8a29577
--- /dev/null
+++ b/samba.conf.tmp
@@ -0,0 +1 @@
+d /var/run/samba 755 root root
diff --git a/samba4.spec b/samba4.spec
index 95cf227..ac60fd3 100644
--- a/samba4.spec
+++ b/samba4.spec
@@ -1,4 +1,4 @@
-%define main_release 101
+%define main_release 103
%define samba_version 4.0.0
%define talloc_version 2.0.7
@@ -50,7 +50,7 @@ Source3: swat.desktop
Source4: smb.conf.default
Source5: pam_winbind.conf
Source6: samba.pamd
-#Source7: smbprint
+Source7: samba.conf.tmp
Patch1: samba4-libpdb-soversion.patch
Patch2: samba4-samr-lsa-session_key.patch
@@ -406,6 +406,9 @@ install -m644 examples/LDAP/samba.schema %{buildroot}%{_sysconfdir}/openldap/sch
install -d -m 0755 %{buildroot}%{_sysconfdir}/xinetd.d
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/xinetd.d/swat
+install -d -m 0755 %{buildroot}%{_sysconfdir}/tmpfiles.d/
+install -m644 %{SOURCE7} %{buildroot}%{_sysconfdir}/tmpfiles.d/samba.conf
+
install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
install -m 0644 packaging/systemd/samba.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/samba
@@ -527,6 +530,7 @@ 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
%files libs
%defattr(-,root,root)