In Chapter 2, we showed you how to download the latest stable version of Samba published by the Samba developers. For most purposes (including all production servers), this procedure is sufficient. However, sometime you might want to run a version of Samba that includes the latest bug fixes and featuresmaybe for research and testing purposes, or just to see what the Samba developers have been up to lately.
The Samba team keeps the latest Samba source code in a Subversion (SVN) repository. SVN is a freely available source configuration management system distributed under an Apache/BSD-style license. You can download the latest subversion release from http://subversion.tigris.org. The Samba team describes various ways to access its own SVN repositories at http://devel.samba.org.
Samba's SVN tree is broken up into multiple branches, one branch for each development effort. The current list of branches is as follows:
Once you have a working SVN client and have decided which branch to download, you can obtain the source tree with a single command. The following example downloads the current Samba 3.0 development tree to a local directory named samba3:
$ svn co svn://svnanon.samba.org/samba/branches/SAMBA_3_0 samba3
The resulting directory tree will have the same structure as the Samba source distribution described in Chapter 2, except with additional directories named .svn throughout the source tree. These directories are used by SVN to store information about each file in the source tree and how to update them.
Before following the steps outlined in Chapter 2 to compile Samba, build the configure script and related files by running the autogen command. You must have Autoconf version 2.53 or higher installed in order to perform this step.
$ cd samba3/source $ ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h' created for Samba("3.0.24pre1-SVN-build-17944") ./autogen.sh: running autoheader ./autogen.sh: running autoconf Now run ./configure and then make.
You are now ready to build the Samba SVN tree, using the same procedures as you would for an official source release.
The Samba developers typically update the Samba source code multiple times per day. Whenever you want to catch up to the latest changes, cd to the samba3 directory and run the following command:
$ svn up
Each time you do this, you must reconfigure, recompile, and reinstall to update your installation, as we showed you in Chapter 2.