caasd
[metze/test/web/.git] / cvs.html
1 <!--#include virtual="/samba/header.html" --> 
2   <title>Samba - CVS Instructions</title>
3 <!--#include virtual="/samba/header_columns.html" -->
4
5
6 <h2 align="center">CVS Access to pserver.samba.org</h2>
7
8
9 <H1>samba development changed to subversion</H1>
10
11 In April 2004 Samba development changed from using CVS to Subversion for
12 version control. Please see the <a href="/samba/subversion.html">subversion
13 information</a> for details.
14
15 <H2>Overview</H2>
16
17 The machine pserver.samba.org runs a publicly accessible CVS
18 repository for access to the source code of several packages.  This
19 document describes how to get anonymous read-only access to this
20 source code.
21
22
23 <H3>Web access to the source</H3>
24
25 <H4>Build Farm - Recent Checkins</H4>
26 The Samba <a href="http://build.samba.org">build farm</a> provides access to the recent checkins on the
27 <a href="http://build.samba.org/?&tree=samba_2_2&function=Recent+Checkins">samba_2_2</a>,  
28 <a href="http://build.samba.org/?&tree=samba_3_0&function=Recent+Checkins">samba_3_0</a>
29 and 
30 <a href="http://build.samba.org/?&tree=samba&function=Recent+Checkins">HEAD</a>
31 branches.. 
32
33 <H4>CVSweb</H4>
34 <p>You can access the source code via your favourite WWW browser. This
35 allows you to access the contents of individual files in the
36 repository and also to look at the revision history and commit logs of
37 individual files. You can also ask for a diff listing between any two
38 versions on the repository.</p>
39
40 To access CVS via cvsweb click <A HREF="http://cvs.samba.org/cgi-bin/cvsweb/">here</A>.
41
42 <H3>Access via cvs</H3>
43
44 You can also access the source code via a normal cvs client. This
45 gives you much more control over you can do with the repository and
46 allows you to checkout whole source trees and keep them uptodate via
47 normal cvs commands. This is the preferred method of access if you are
48 a developer and not just a casual browser.<p>
49
50 To gain access via anonymous cvs use the following steps. For this
51 example I will assume that you want a copy of the samba source
52 code. For the other source code repositories on this system just
53 substitute the correct package name<p>
54
55 <OL> 
56
57 <LI> Install a recent copy of cvs. All you really need is a copy
58 of the cvs client binary.</LI>
59
60 <LI> run the command
61 <blockquote><tt>
62         cvs -d :pserver:cvs@pserver.samba.org:/cvsroot login
63 </tt></blockquote></LI>
64
65 <LI> when it asks you for a password type <it>cvs</it> </LI>
66
67 <LI> run the command 
68 <blockquote><tt>
69         cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co samba
70 </tt></blockquote>
71
72 This will create a directory called samba containing the latest samba
73 source code.  This corresponds to the HEAD development branch.
74 <p>
75 If you want a different branch use the -r option to the co command to
76 specify the branch. For example to checkout the SAMBA_2_2 branch run the
77 command
78
79 <blockquote><tt>
80         cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co -r SAMBA_2_2 samba
81           </tt></blockquote>
82 If you want the latest 3.0 development code, use the SAMBA_3_0 tag.
83 <blockquote><tt>
84         cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co -r SAMBA_3_0 samba
85           </tt></blockquote>
86
87
88 </LI>
89
90 <LI> Whenever you want to merge in the latest code changes use the following
91 command from within the samba directory:
92 <blockquote><tt>
93         cvs update -d -P
94           </tt></blockquote>
95       </LI>
96
97 </OL>
98
99 NOTE: The Samba TNG project is now a separate development effort apart from
100 the main Samba branch (not just another CVS code branch).  For the latest Samba
101 TNG code, please refer to <a href="http://www.samba-tng.org/">http://www.samba-tng.org</a>.
102
103 <h3>Converting from cvs.samba.org</h2>
104
105 Anonymous access to the Samba cvs tree used to be via the host
106 cvs.samba.org. That host is now reserved for developers with commit
107 access and all anonymous access must be via pserver.samba.org.<p>
108
109 If you have an existing checkout from cvs.samba.org then you can run
110 the following script to convert the tree to use pserver.samba.org.
111 <blockquote><tt>
112   find . -name Root -exec sh -c "sed 's/cvs\(.samba.org\)/pserver\1/g' &lt; {} &gt; {}. && mv {}. {}" \;
113 </tt></blockquote>
114 This command will change all occurances of cvs.samba.org to
115 pserver.samba.org in the CVS/Root files in your tree.
116
117 <H3>Access via rsync and ftp</H3>
118
119 pserver.samba.org also exports unpacked copies of most parts of the CVS
120 tree at <A
121 HREF="ftp://pserver.samba.org/pub/unpacked">ftp://pserver.samba.org/pub/unpacked</A>
122 and also via anonymous rsync at rsync://pserver.samba.org/ftp/unpacked/
123
124 I recommend using rsync rather than ftp. See <A
125 HREF="http://rsync.samba.org/">http://rsync.samba.org/</A>
126 for more info on rsync.<p>
127
128 The disadvantage of the unpacked trees is that they do not support
129 automatic merging of local changes like CVS does. rsync access is
130 most convenient for an initial install.
131
132 <h3>Available branches</h3>
133
134 <p>
135 Please refer the <a href="/samba/devel/">Development and General Roadmap</a>
136 page for information on the current cvs branches.
137
138 <H3>How it's done</H3>
139
140 If you are interested in how I have setup anonymous cvs access and
141 want to set it up on your own system then you might like to checkout
142 the pserver source code using the the command 
143 <blockquote><tt>
144         cvs -d :pserver:cvs@pserver.samba.org:/cvsroot co pserver
145       </tt></blockquote>
146     
147 You really have to know what you are doing to do this. Please don't
148 mail me with basic cvs or unix security questions.
149
150 <H2>Reporting problems</H2>
151
152 If you have any problems with this system please ask on the <a
153 href="http://lists.samba.org/">Samba mailing list</a>.
154
155
156 <!--#include virtual="/samba/footer.html" -->