More work to use %{name} rather than 'samba'
authorAndrew Bartlett <abartlet@samba.org>
Sat, 28 Jun 2008 11:38:19 +0000 (21:38 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 28 Jun 2008 11:38:19 +0000 (21:38 +1000)
packaging/Fedora/samba4.init
packaging/Fedora/samba4.spec

index 1e42364452b7f5eaf329be73c246768f1d9be512..a04cce92c5953fc699e7894e5b010e207c8813cd 100644 (file)
@@ -5,7 +5,7 @@
 #             used to provide SMB network services.
 #
 # pidfile: /var/run/samba4/smbd.pid
-# config:  /etc/samba/smb.conf
+# config:  /etc/samba4/smb.conf
 
 SAMBA_NAME=samba4
 
index 9059f14697eae0520d6d79f06ab1fc09cf8aee5c..ad929f117479a31c0de5d7c0dc7c1c7544dcfd90 100644 (file)
@@ -142,7 +142,7 @@ cd source
        --with-lockdir=/var/lib/%{name} \
        --with-piddir=/var/run \
        --with-privatedir=/var/lib/%{name}/private \
-       --with-logfilebase=/var/log/samba \
+       --with-logfilebase=/var/log/%{name} \
        --with-configdir=%{_sysconfdir}/%{name} \
        --with-winbindd-socket-dir=/var/run/winbind \
        --with-ntp-signd-socket-dir=/var/run/ntp_signd \
@@ -260,7 +260,6 @@ exit 0
 %{_datadir}/samba/setup/*
 %dir /var/lib/%{name}/sysvol
 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
-%dir %{_sysconfdir}/%{name}
 %attr(0700,root,root) %dir /var/log/%{name}
 %attr(0700,root,root) %dir /var/log/%{name}/old
 
@@ -271,6 +270,11 @@ exit 0
 %{_datadir}/samba/*.dat
 %{_libdir}/*.so.*
 %{_libdir}/samba
+%dir %{_sysconfdir}/%{name}
+#Need to mark this as being owned by Samba, but it is normally created
+#by the provision script, which runs best if there is no existing
+#smb.conf
+#%config(noreplace) %{_sysconfdir}/%{name}/smb.conf
 
 %files winbind
 %defattr(-,root,root)