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