summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-03-13 15:34:03 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-03-13 15:34:03 +0100
commit66f1bceba1de695b93df17298baa1a67c37fd531 (patch)
tree21b7cb18058eb5f784404bc28931fa2fa39bac84
parentff093f41d0516165a2d6deb4a35d3653b56b5bcb (diff)
downloadsamba4-66f1bceba1de695b93df17298baa1a67c37fd531.tar.gz
samba4-66f1bceba1de695b93df17298baa1a67c37fd531.tar.xz
samba4-66f1bceba1de695b93df17298baa1a67c37fd531.zip
Make sure /run/samba exists.
-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)