After spending four days with John Terpstra of the Samba project and taking
one of his classes, I finally decided to give samba3 a try. I built the
samba3-3.0.4-20040509.src.rpm from the CURRENT tree, but found it had some
problems (e.g. was looking for the smb.conf file in
%{l_profix}/lib/smb.conf and some other files were installed in strange
places).
I spent some time yesterday building this on a SuSE 9.0 Professional Linux
system, then on our main FreeBSD 4.8 server (yeah, I know it's out of
date). The attached patch for the samba3.spec file puts things where they
work, and are backwards compatible with the samba-2.2* packages -- notably
the smb.passwd file is in %{l_prefix}/etc/samba instead of someplace under
var where it probably belongs.
I also added options for some of the more important options, but haven't
done any extensive testing of these. It should probably have options for
things like mysql and postgresql support as well. Samba3 will probably
rival apache for option count by the time all of its important options are
included.
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
``If the future navigation system [for interactive networked services on
the NII] looks like something from Microsoft, it will never work.''
(Chairman of Walt Disney Television & Telecommunications)
--- samba3.spec.orig Sat May 8 23:50:42 2004
+++ samba3.spec Sun Jun 27 10:26:50 2004
@@ -34,11 +34,13 @@
Group: Filesystem
License: GPL
Version: 3.0.4
-Release: 20040509
+Release: 20040626
# package options
%option with_pam no
%option with_swat no
+%option with_ldap no
+%option with_smbmount no
# list of sources
Source0: http://download.samba.org/samba/ftp/samba-%{version}.tar.gz
@@ -57,9 +59,14 @@
BuildPreReq: PAM
PreReq: PAM
%endif
+%if "%{with_ldap}" == "yes"
+BuildPreReq: openldap
+PreReq: openldap
+%endif
AutoReq: no
AutoReqProv: no
Provides: samba
+Obsoletes: samba
%description
Samba is an open source software suite that provides seamless file
@@ -94,18 +101,30 @@
export CPPFLAGS
./configure \
--prefix=%{l_prefix} \
+ --libexecdir=%{l_prefix}/libexec/samba \
--localstatedir=%{l_prefix}/var/samba/run \
--sysconfdir=%{l_prefix}/etc/samba \
+ --with-libdir=%{l_prefix}/lib/samba \
+ --with-privatedir=%{l_prefix}/etc/samba \
+ --with-codepagedir=%{l_prefix}/share/samba \
+ --with-configdir=%{l_prefix}/etc/samba \
+ --with-lockdir=%{l_prefix}/var/samba/run/locks \
+ --with-piddir=%{l_prefix}/var/samba/run \
--with-privatedir=%{l_prefix}/var/samba/run \
- --with-sambaconfdir=%{l_prefix}/etc/samba \
- --with-lockdir=%{l_prefix}/var/samba/run \
+ --with-privatedir=%{l_prefix}/var/samba/run/private \
--with-swatdir=%{l_prefix}/share/samba \
- --with-codepagedir=%{l_prefix}/share/samba \
+ --with-acl-support \
--with-ssl \
--with-sslinc=%{l_prefix}/include \
--with-included-popt \
%if "%{with_pam}" == "yes"
--with-pam \
+%endif
+%if "%{with_ldap}" == "yes"
+ --with-ldap \
+%endif
+%if "%{with_smbmount}" == "yes"
+ --with-smbmount \
%endif
--with-vfs
%{l_make} %{l_mflags}