Appendix B. Downloading Samba with Subversion


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:


SAMBA_3_0

This is the branch for all Samba 3.0 development. The code in the tree can undergo major changes between each 3.0.x release. If you want to watch (or participate in) the bleeding edge of Samba 3.0 development, this is the branch to obtain.


SAMBA_3_0_XX

Each numeric 3.0 release (e.g., 3.0.23) will be assigned a branch for bug fixes (also know as letter releases). For example, the SAMBA_3_0_23 branch was created once version 3.0.23 was publicly available. Developers commit fixes to this tree for inclusion in the next bug fix release, such as 3.0.23a, 3.0.23b, and so on. This approach allows the more aggressive development to continue in the SAMBA_3_0 tree, making it easier to fix any minor, but important bugs in the current release code.


SAMBA_3_0_RELEASE

This branch contains the most recently released (or about to be released) version of Samba 3.0.


SAMBA_4_0

This is the research branch used for developing features under the guise of Samba 4. Refer to Chapter 1 for more information on Samba 4.

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.

You can also download the Samba SVN trees using anonymous rsync from rsync://rsync.samba.org/ftp/unpacked/.


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.




Using Samba
Using Samba: A File and Print Server for Linux, Unix & Mac OS X, 3rd Edition
ISBN: 0596007698
EAN: 2147483647
Year: 2004
Pages: 135

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net