35.1 Access Samba Source Code via CVS

35.1.1 Introduction

Samba is developed in an open environment. Developers use Concurrent Versioning System (CVS) to " checkin " (also known as " commit ") new source code. Samba's various CVS branches can be accessed via anonymous CVS using the instructions detailed in this chapter.

This chapter is a modified version of the instructions found at http://samba.org/samba/cvs.html

35.1.2 CVS Access to samba.org

The machine samba.org runs a publicly accessible CVS repository for access to the source code of several packages, including Samba, rsync, distcc, ccache, and jitterbug. There are two main ways of accessing the CVS server on this host: Access via CVSweb

You can access the source code via your favorite WWW browser. This allows you to access the contents of individual files in the repository and also to look at the revision history and commit logs of individual files. You can also ask for a diff listing between any two versions on the repository.

Use the URL: http://samba.org/cgi-bin/CVSweb Access via CVS

You can also access the source code via a normal CVS client. This gives you much more control over what you can do with the repository and allows you to checkout whole source trees and keep them up-to-date via normal CVS commands. This is the preferred method of access if you are a developer and not just a casual browser.

To download the latest CVS source code, point your browser at the URL : http://www.cyclic.com/. and click on the " How to get CVS " link. CVS is free software under the GNU GPL (as is Samba). Note that there are several graphical CVS clients that provide a graphical interface to the sometimes mundane CVS commands. Links to theses clients are also available from the Cyclic Web site.

To gain access via anonymous CVS, use the following steps. For this example it is assumed that you want a copy of the Samba source code. For the other source code repositories on this system just substitute the correct package name .


  1. Install a recent copy of CVS. All you really need is a copy of the CVS client binary.

  2. Run the command: cvs -d :pserver:cvs@samba.org:/cvsroot login

  3. When it asks you for a password, type cvs .

  4. Run the command cvs -d :pserver:CVS@samba.org:/cvsroot co samba . This will create a directory called samba containing the latest Samba source code (i.e., the HEAD tagged CVS branch). This currently corresponds to the 3.0 development tree. CVS branches other then HEAD can be obtained by using the -r and defining a tag name. A list of branch tag names can be found on the " Development " page of the Samba Web site. A common request is to obtain the latest 3.0 release code. This could be done by using the following command: cvs -d :pserver:cvs@samba.org:/cvsroot co -r SAMBA_3_0 samba .

  5. Whenever you want to merge in the latest code changes, use the following command from within the Samba directory: cvs update -d -P

Official Samba-3 HOWTO and Reference Guide
The Official Samba-3 HOWTO and Reference Guide, 2nd Edition
ISBN: 0131882228
EAN: 2147483647
Year: 2005
Pages: 297

Similar book on Amazon

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