Author: bdubbs
Date: Sun Jul 28 17:45:52 2013
New Revision: 11519
Log:
Update to samba-4.0.7
Modified:
trunk/BOOK/general.ent
trunk/BOOK/introduction/welcome/changelog.xml
trunk/BOOK/networking/netprogs/samba.xml
Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent Sun Jul 28 12:10:25 2013 (r11518)
+++ trunk/BOOK/general.ent Sun Jul 28 17:45:52 2013 (r11519)
@@ -449,7 +449,7 @@
<!ENTITY ntp-version "4.2.6p5">
<!ENTITY rpcbind-version "0.2.0">
<!ENTITY rsync-version "3.0.9">
-<!ENTITY samba-version "3.6.12">
+<!ENTITY samba-version "4.0.7">
<!ENTITY wget-version "1.14">
<!ENTITY wireless-tools-version "29">
<!ENTITY wpa_supplicant-version "2.0">
Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml Sun Jul 28 12:10:25
2013 (r11518)
+++ trunk/BOOK/introduction/welcome/changelog.xml Sun Jul 28 17:45:52
2013 (r11519)
@@ -47,6 +47,9 @@
<para>July 28th, 2013</para>
<itemizedlist>
<listitem>
+ <para>[bdubbs] - Update to samba-4.0.7.</para>
+ </listitem>
+ <listitem>
<para>[krejzi] - Updated GNOME Core packages to latest ones.</para>
</listitem>
<listitem>
Modified: trunk/BOOK/networking/netprogs/samba.xml
==============================================================================
--- trunk/BOOK/networking/netprogs/samba.xml Sun Jul 28 12:10:25 2013
(r11518)
+++ trunk/BOOK/networking/netprogs/samba.xml Sun Jul 28 17:45:52 2013
(r11519)
@@ -6,10 +6,10 @@
<!ENTITY samba-download-http
"http://ftp.samba.org/pub/samba/stable/samba-&samba-version;.tar.gz">
<!ENTITY samba-download-ftp
"ftp://ftp.samba.org/pub/samba/stable/samba-&samba-version;.tar.gz">
- <!ENTITY samba-md5sum "430fd21a1acd26964d3ccf366df8709a">
- <!ENTITY samba-size "34 MB">
- <!ENTITY samba-buildsize "535 MB (includes running the test suite)">
- <!ENTITY samba-time "2.7 SBU (additionall 1.4 SBU to run the test
suite)">
+ <!ENTITY samba-md5sum "d887c1383654fc60b7bb1b74d273a826">
+ <!ENTITY samba-size "21 MB">
+ <!ENTITY samba-buildsize "479 MB (up to 900MB additional for all tests)">
+ <!ENTITY samba-time "8.4 SBU (up to 110 SBU to run all tests)">
]>
<sect1 id="samba" xreflabel="Samba-&samba-version;">
@@ -31,13 +31,12 @@
<para>The <application>Samba</application> package provides file and print
services to SMB/CIFS clients and Windows networking to Linux clients.
- <application>Samba</application> can also be configured as a Windows NT
- 4.0 Domain Controller replacement (with caveats working with NT PDC's and
- BDC's), a file/print server acting as a member of a Windows NT 4.0 or
+ <application>Samba</application> can also be configured as a Windows Domain
+ Controller replacement, a file/print server acting as a member of a Windows
Active Directory domain and a NetBIOS (rfc1001/1002) nameserver (which
- amongst other things provides LAN browsing support).</para>
+ among other things provides LAN browsing support).</para>
- &lfs72_checked;
+ &lfs73_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
@@ -61,45 +60,33 @@
</listitem>
</itemizedlist>
- <!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
- <itemizedlist spacing="compact">
- <listitem>
- <para>Required patch: <ulink
-
url="http://us3.samba.org/samba/patches/patches-&samba-version;/spoolss.diff"/></para>
- </listitem>
- </itemizedlist> -->
-
<bridgehead renderas="sect3">Samba Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
- <para role="required"><xref linkend="libtirpc"/></para>
+ <para role="required">
+ <xref linkend="libtirpc"/>
+ </para>
<bridgehead renderas="sect4">Optional</bridgehead>
- <para role="optional"><xref linkend="popt"/>,
- <xref linkend="linux-pam"/>,
- <xref linkend="cups"/>,
- <xref linkend="openldap"/>,
- <xref linkend="gamin"/>,
- <xref linkend="acl"/>,
- <xref linkend="xfsprogs"/>,
- <xref linkend="mitkrb"/>,
- <xref linkend="python2"/> (used only in parts of the test suite),
- <ulink url="http://tdb.samba.org/">tdb</ulink>,
- <ulink url="http://ctdb.samba.org/">ctdb</ulink>,
- <xref linkend="libcap2"/>,
- <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>,
- <xref linkend="avahi"/>,
- <ulink url="http://www.openafs.org/">OpenAFS</ulink>,
- and <ulink url="http://valgrind.org/">Valgrind</ulink> (optionally
- used by the test suite)</para>
-
- <para>You will need to install one of the kerberos packages if you plan
- on using your system to join a Windows NT domain.</para>
-
- <!-- <bridgehead renderas="sect4">Optional for Samba4 Support</bridgehead>
- <para role="optional"><xref linkend="gnutls"/> (recommended),
- <xref linkend="python2"/>, and
- <xref linkend="sqlite"/></para> -->
+ <para role="optional">
+ <xref linkend="popt"/>,
+ <xref linkend="linux-pam"/>,
+ <xref linkend="cups"/>,
+ <xref linkend="openldap"/>,
+ <xref linkend="gamin"/>,
+ <xref linkend="acl"/>,
+ <xref linkend="xfsprogs"/>,
+ <xref linkend="mitkrb"/>,
+ <xref linkend="python2"/> (used only in parts of the test suite),
+ <xref linkend="libxslt"/> (used only for documentation),
+ <ulink url="http://tdb.samba.org/">tdb</ulink>,
+ <ulink url="http://ctdb.samba.org/">ctdb</ulink>,
+ <xref linkend="libcap2"/>,
+ <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>,
+ <xref linkend="avahi"/>,
+ <ulink url="http://www.openafs.org/">OpenAFS</ulink>, and
+ <ulink url="http://valgrind.org/">Valgrind</ulink> (optionally
+ used by the test suite)</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/samba"/></para>
@@ -111,7 +98,8 @@
<note>
<para>If you wish to run the test suite after the binaries are built,
- you must add the <option>--enable-socket-wrapper</option> parameter to
+ you must add the <option>--enable-socket-wrapper</option>
+ and <option>--enable-selftest</option> parameters to
the <command>configure</command> script below. You may want to run
<command>configure</command> with the <option>--help</option> parameter
first. There may be other parameters needed to take advantage of
@@ -121,11 +109,7 @@
<para>Install <application>Samba</application> by running the following
commands:</para>
-<screen><userinput>cd source3 &&
-
-sed -i -e "s/python2.6 python2.5/python2.7 &/" \
- -e "s/python2.6-config python2.5-config/python2.7-config &/" \
- configure &&
+<screen><userinput>sed -i -e "/dmapi_lib/s/$/ldflags='-ltirpc',/"
source3/wscript_build &&
./configure \
--prefix=/usr \
@@ -134,53 +118,64 @@
--with-piddir=/run/samba \
--with-pammodulesdir=/lib/security \
--with-fhs \
- --enable-nss-wrapper \
- --enable-socket-wrapper &&
-sed -i "s/-ldl/& -ltirpc -lpthread/" Makefile &&
-make</userinput></screen>
+ --enable-nss-wrapper &&
- <para>To test the results, issue: <command>make test</command>. If you have
- <application>Linux-PAM</application> installed and built the PAM library
- modules, you can perform a dlopen test by issuing:
- <command>make test_pam_modules</command>.</para>
+make</userinput></screen>
- <!-- <para>This program dose not come with a functional test suite.</para>
-->
+ <para>To test the results, as the <systemitem
+ class="username">root</systemitem> user,issue: <command>make
+ quicktest</command> (about 8 SBU). There are other targets (test,
+ subunit-test) available, but take a very long (over 100 SBU) time.</para>
<para>Now, as the <systemitem class="username">root</systemitem>
user:</para>
<screen role="root"><userinput>make install &&
-install -v -m644 pkgconfig/*.pc /usr/lib/pkgconfig &&
-install -v -m755 ../nsswitch/libnss_win{s,bind}.so /lib &&
-ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2 &&
-ln -v -sf libnss_wins.so /lib/libnss_wins.so.2 &&
-
-install -v -m644 ../examples/smb.conf.default /etc/samba &&
-
-if [ -d /etc/openldap/schema ]; then
- install -v -m644 ../examples/LDAP/README \
- /etc/openldap/schema/README.LDAP &&
- install -v -m644 ../examples/LDAP/samba* \
- /etc/openldap/schema &&
- install -v -m755 ../examples/LDAP/{convert*,get*,ol*} \
- /etc/openldap/schema &&
-fi &&
+mv -v /usr/lib/libnss_win{s,bind}.so* /lib &&
+ln -v -sf ../../lib/libnss_winbind.so.2 /usr/lib/libnss_winbind.so &&
+ln -v -sf ../../lib/libnss_wins.so.2 /usr/lib/libnss_wins.so &&
+
+install -v -m644 ../examples/smb.conf.default /etc/samba &&
+
+mkdir -pv /etc/openldap/schema &&
+
+install -v -m644 examples/LDAP/README \
+ /etc/openldap/schema/README.LDAP &&
+
+install -v -m644 examples/LDAP/samba* \
+ /etc/openldap/schema &&
+
+install -v -m755 examples/LDAP/{convert*,get*,ol*} \
+ /etc/openldap/schema &&
install -v -m755 -d /usr/share/doc/samba-&samba-version; &&
-install -v -m644 ../docs/*.pdf \
+
+install -v -m644 lib/ntdb/doc/design.pdf \
/usr/share/doc/samba-&samba-version; &&
+
ln -v -s ../../samba/swat
/usr/share/doc/samba-&samba-version;</userinput></screen>
+ <para>To create the html documents needed for <command>swat</command>
+ (<xref linkend='libxslt'/> required), do the following:</para>
+
+<screen><userinput>cd docs-xml &&
+autoreconf &&
+./configure &&
+make htmlman</userinput></screen>
+
+ <para>Now, as the <systemitem class="username">root</systemitem>
user:</para>
+
+<screen role="root"><userinput>mkdir -pv
/usr/share/samba/swat/help/manpages &&
+cp output/htmldocs/manpages/*.html
/usr/share/samba/swat/help/manpages</userinput></screen>
+
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
- <!-- <para><option>-enable-merged-build</option>: Use this parameter to
build
- the (alpha) Samba4 components (GnuTLS is recommended).</para> -->
-
- <para><command>sed -i -e "s/python2.6 ...</command>: Make Samba checking
- for newer Python versions too</para>
+ <para><command>sed ... source3/wscript_build</command>:
+ This command enables the build to complete when using libtirpc instead of
+ the deprecated glibc rpc functions.</para>
<para><parameter>--sysconfdir=/etc</parameter>: Sets the configuration
file directory to avoid the default of
@@ -196,29 +191,20 @@
<para><parameter>--enable-nss-wrapper</parameter>: Builds the nss-wrapper
library.</para>
- <para><parameter>--enable-socket-wrapper</parameter>: This options is
- required to run the test suite.</para>
+ <para><parameter>--enable-socket-wrapper</parameter> and
+ <parameter>--enable-selftest</parameter>: These options are required to run
+ the test suite.</para>
+
+ <para><command>mv -v /usr/lib/libnss_win{s,bind}.so* /lib</command>:
+ The nss libraries are installed in /usr/lib by default. Move them to
+ /lib.</para>
+
+ <para><command>ln -v -sf ../../lib/libnss_winbind.so.2
/usr/lib/libnss_winbind.so</command>
+ and <command>ln -v -sf ../../lib/libnss_wins.so.2
/usr/lib/libnss_wins.so</command>:
+ These symlinks are required when applicates build against these
libraries.</para>
- <para><command>sed -i "s/-ldl/& -ltirpc -lpthread/" Makefile</command>:
- This command enables the build to complete when using libtirpc instead of
- the deprecated GLibC rpc functions.</para>
-
- <para><command>cp pkgconfig/wbclient.pc /usr/lib/pkgconfig</command>:
- Install a file omitted by the install procedure.</para>
-
- <para><command>install -v -m755 nsswitch/libnss_win{s,bind}.so
/lib</command>:
- The nss libraries are not installed by default. If you intend to use
- winbindd for Windows NT domain authentication, and/or WINS name resolution,
- you need these libraries.</para>
-
- <para><command>ln -v -sf libnss_winbind.so
/lib/libnss_winbind.so.2</command>
- and <command>ln -v -sf libnss_wins.so /lib/libnss_wins.so.2</command>:
- These symlinks are required by <application>Glibc</application> to use the
- NSS libraries.</para>
-
- <para><command>if [ -d /etc/openldap/schema ]; then ...; fi</command>:
- These commands are used to see if you have an OpenLDAP installation, and if
- so, they copy sample Samba schemas to the OpenLDAP
+ <para><command>install -v -m644 examples/LDAP/*
/etc/openldap/schema</command>:
+ These commands are used to copy sample Samba schemas to the OpenLDAP
<filename class='directory'>schema</filename> directory.</para>
<para><command>install -v -m644 ../examples/smb.conf.default
@@ -398,15 +384,11 @@
<title>Advanced Requirements</title>
<para>More complex scenarios involving domain control or membership are
- possible if the right flags are passed to the ./configure script when
- the package is built. Such setups are advanced topics and cannot be
- adequately covered in BLFS. Many complete books have been written on
- these topics alone. It should be noted, however, that a
- <application>Samba</application> BDC cannot be used as a fallback
- for a Windows PDC, and conversely, a Windows BDC cannot be used as a
- fallback for a <application>Samba</application> PDC. Also in some
- domain membership scenarios, the <command>winbindd</command> daemon and
- the corresponding bootscript are needed.</para>
+ possible. Such setups are advanced topics and cannot be adequately
+ covered in BLFS. Many complete books have been written on these topics
+ alone. Note that in some domain membership scenarios, the
+ <command>winbindd</command> daemon and the corresponding bootscript are
+ needed.</para>
<para>There is quite a bit of documentation available which covers many
of these advanced configurations. Point your web browser to the links
@@ -416,21 +398,21 @@
<itemizedlist spacing='compact'>
<listitem>
<para>Using Samba, 2nd Edition; a popular book published by
O'Reilly
- <ulink
url="file:///usr/share/samba/swat/using_samba/toc.html"/></para>
+ <ulink
url="http://www.samba.org/samba/docs/using_samba/toc.html"/></para>
</listitem>
<listitem>
<para>The Official Samba HOWTO and Reference Guide <ulink
-
url="file:///usr/share/samba/swat/help/Samba-HOWTO-Collection/index.html"/>
+ url="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/"/>
</para>
</listitem>
<listitem>
<para>Samba-3 by Example
- <ulink
url="file:///usr/share/samba/swat/help/Samba-Guide/index.html"/>
+ <ulink url="http://www.samba.org/samba/docs/man/Samba-Guide/"/>
</para>
</listitem>
<listitem>
<para>The Samba-3 man Pages
- <ulink
url="file:///usr/share/samba/swat/help/samba.7.html"/></para>
+ <ulink
url="file:///usr/share/samba/swat/help/manpages/samba.7.html"/></para>
</listitem>
</itemizedlist>
@@ -495,47 +477,7 @@
<indexterm zone="samba samba-swat-config">
<primary sortas="g-configuring-SWAT">Configuring SWAT</primary>
</indexterm>
-<!--
- <sect4>
- <title>Setting up SWAT using inetd</title>
- <indexterm zone="samba samba-swat-config">
- <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
- </indexterm>
-
- <indexterm zone="samba samba-swat-config">
- <primary sortas="e-etc-services">/etc/services</primary>
- </indexterm>
-
- <warning>
- <para>BLFS does not recommend using these procedures because of the
- security risk involved. However, in a home network environment and
- disclosure of the <systemitem class='username'>root</systemitem>
- password is an acceptable risk, the following
- instructions are provided for your convenience.</para>
- </warning>
-
- <para>First you must add an entry to <filename>/etc/services</filename>
- and modify the <command>inetd</command> configuration. Add this entry
- with the following command issued as the <systemitem
- class="username">root</systemitem> user:</para>
-
-<screen role="root"><userinput>echo "swat 905/tcp" >>
/etc/services</userinput></screen>
-
- <para>Now add this entry to the <filename>/etc/inetd.conf</filename>
- file, again as the <systemitem class="username">root</systemitem>
- user:</para>
-
-<screen role="root"><userinput>echo "swat stream tcp nowait.5 root
/usr/sbin/swat swat >> /etc/inetd.conf</userinput></screen>
-
- <para>Issue a <command>killall -HUP inetd</command> to reread the
- changed <filename>inetd.conf</filename> file.</para>
-
- <para>SWAT can be launched by pointing your web browser to
- http://localhost:905.</para>
-
- </sect4>
--->
<sect4>
<title>Setting up SWAT using xinetd</title>
@@ -654,20 +596,26 @@
<segtitle>Installed Directories</segtitle>
<seglistitem>
- <seg>eventlogadm, findsmb, ldbadd, ldbdel, ldbedit,
- ldbmodify, ldbrename, ldbsearch, net, nmbd,
- nmblookup, ntlm_auth, pdbedit, profiles, rpcclient, sharesec, smbcacls,
- smbclient, smbcontrol, smbcquotas, smbd, smbget, smbpasswd, smbspool,
- smbstatus, smbtar, smbtree, swat, testparm, wbinfo,
- winbindd, and (if not using system TDB) tdbbackup, tdbdump, and
- tdbtool</seg>
+
+ <seg>cifsdd, dbwrap_tool, eventlogadm, gentest, ldbadd, ldbdel,
+ ldbedit, ldbmodify, ldbrename, ldbsearch, locktest, masktest, ndrdump,
+ net, nmbd, nmblookup, nmblookup4, ntlm_auth, oLschema2ldif, pdbedit,
+ pidl, profiles, regdiff, regpatch, regshell, regtree, rpcclient, samba,
+ samba_dnsupdate samba_kcc, samba_spnupdate, samba-tool,
+ samba_upgradedns, sharesec, smbcacls, smbclient, smbclient4,
+ smbcontrol, smbcquotas, smbd, smbget, smbpasswd, smbspool, smbstatus,
+ smbta-util, smbtar, smbtree, smbtorture, swat, testparm, tdbbackup,
+ tdbdump, tdbrestore, and tdbtool, winbindd, and wbinfo</seg>
+
<seg>libnss_winbind.so, libnss_wins.so, libnetapi.so, libsmbclient.so,
- libsmbsharemodes.so, libtalloc.so, libwbclient.so, the pam_winbind.so
+ libsmbsharemodes.so, libwbclient.so, the pam_winbind.so
and pam_smbpass.so PAM libraries, and assorted character set,
filesystem and support modules.</seg>
- <seg>/etc/samba, /usr/lib/samba, /usr/share/doc/samba-&samba-version;,
- /usr/share/samba, /var/lib/samba, /var/log/samba (if configured), and
- /var/nmbd</seg>
+
+ <seg>/etc/samba, /usr/include/samba-4.0, /usr/lib/samba,
+ /usr/share/samba, /var/cache/samba, /var/lib/samba,
+ /var/log/samba, /var/lock/samba, and /var/run/samba</seg>
+
</seglistitem>
</segmentedlist>
@@ -687,17 +635,6 @@
</indexterm>
</listitem>
</varlistentry>
-
- <varlistentry id="findsmb">
- <term><command>findsmb</command></term>
- <listitem>
- <para>lists information about machines that respond to
- SMB name queries on a subnet.</para>
- <indexterm zone="samba findsmb">
- <primary sortas="b-findsmb">findsmb</primary>
- </indexterm>
- </listitem>
- </varlistentry>
<varlistentry id="ldbadd">
<term><command>ldbadd</command></term>
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page