Annotation of www/anoncvs.html, Revision 1.220
1.180 jufi 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1.1 deraadt 2: <html>
3: <head>
1.93 deraadt 4: <title>OpenBSD AnonCVS</title>
1.135 naddy 5: <link rev="made" href="mailto:www@openbsd.org">
1.93 deraadt 6: <meta name="resource-type" content="document">
1.180 jufi 7: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
1.93 deraadt 8: <meta name="description" content="How to get OpenBSD updates via Internet using Anonymous CVS">
9: <meta name="keywords" content="openbsd,anoncvs,updates">
10: <meta name="distribution" content="global">
1.200 nick 11: <meta name="copyright" content="This document copyright 1996-2004 by OpenBSD.">
1.1 deraadt 12: </head>
13:
1.135 naddy 14: <body bgcolor="#ffffff" text="#000000" link="#23238e">
1.1 deraadt 15:
1.171 jsyn 16: <a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a>
1.93 deraadt 17: <p>
1.135 naddy 18: <h2><font color="#e00000">Anonymous CVS</font></h2>
1.14 downsj 19:
1.135 naddy 20: <hr>
21:
22: <h3>Table Of Contents</h3>
23:
24: <ul>
1.100 ericj 25: <li><a href="#anoncvs">What is Anonymous CVS?</a>
26: <li><a href="#CVS">What is CVS?</a>
1.135 naddy 27: <li><a href="#starting">Getting Started Using Anonymous CVS</a>
28: <li><a href="#using">Using CVS to Get and Update your Source Tree</a>
29: <li><a href="#CVSROOT">Available Anonymous CVS Servers</a>
30: <li><a href="#CRYPTO">Getting crypto sources through cvs(1)</a>
31: <li><a href="#EXAMPLE">Example usages for cvs(1)</a>
1.104 ericj 32: <li><a href="#WHICH">Use rsh(1) or ssh(1)?</a>
1.135 naddy 33: <li><a href="#SUP">Mirroring the CVS repository via sup(1)</a>
34: <li><a href="#MIRROR">Setting up an anoncvs mirror</a>
1.100 ericj 35: </ul>
1.135 naddy 36:
1.100 ericj 37: <hr>
38:
1.135 naddy 39: <h3><a name="anoncvs"><font color="#0000e0">What is Anonymous CVS?</font></a></h3>
1.99 ericj 40:
1.15 grr 41: <p>
42: Anonymous CVS is a method of keeping your local copy of the OpenBSD source
43: tree up to date with respect to changes made to current OpenBSD sources.
1.109 jason 44: In addition to following the bleeding edge of development, it is
45: also possible to track the patches for errata of a release.
1.99 ericj 46: </p>
47:
1.14 downsj 48: <p>
1.15 grr 49: The major advantage of Anonymous CVS over other source code update
50: techniques is that it works directly against a central source code
51: repository or mirror. This means that you have the full set of CVS
52: commands available to control merging and updating your changes with
1.154 jsyn 53: other source changes and for performing diffs, change histories
1.15 grr 54: and other queries against the central repository.
1.99 ericj 55: </p>
56:
1.36 deraadt 57: <p>
1.135 naddy 58: The OpenBSD Project currently has five main source repositories:
1.99 ericj 59: </p>
60:
61: <ul>
1.140 horacio 62: <li><b>src</b> - Houses all source code for the OpenBSD Operating System.</li>
63: <li><b>ports</b> - Houses the <a href="./ports.html">OpenBSD Ports</a>.</li>
64: <li><b>www</b> - Houses all OpenBSD web pages. (Including this one).</li>
1.135 naddy 65: <li><b>X11</b> - Houses OpenBSD's adaptation of the
66: <a href="http://www.XFree86.org/">XFree86-3</a> software project.</li>
67: <li><b>XF4</b> - Houses OpenBSD's adaptation of the
68: <a href="http://www.XFree86.org/">XFree86-4</a> software project.</li>
1.99 ericj 69: </ul>
70:
1.100 ericj 71: <p>
72: To summarize, the real strength of using Anonymous CVS is that it is
73: a "tolerant" source code control system - it <strong>respects</strong>
74: changes that you have made to your local sources and makes <strong>
75: "best efforts"</strong> to update your entire source tree, rather than
76: leaving you a list of arcane problems that have to be resolved before
77: continuing.
78: </p>
79:
1.135 naddy 80: <h3><a name="CVS"><font color="#0000e0">What is CVS?</font></a></h3>
1.99 ericj 81:
1.36 deraadt 82: <p>
1.135 naddy 83: <a href="why-cvs.html">
1.36 deraadt 84: CVS is the source code control system used to manage the OpenBSD source tree.</a>
1.16 deraadt 85: It implements a central repository for all officially released source code
1.15 grr 86: and changes, while permitting developers to maintain local copies of the
1.99 ericj 87: source code with their working changes. Developers with "<b>write access</b>"
1.15 grr 88: can commit changes directly to the OpenBSD source tree, while "Anonymous
1.155 jsyn 89: CVS" users have "<b>read access</b>" and can keep their local copies of the
1.169 miod 90: source up to date and issue queries against the central repository.
1.99 ericj 91: </p>
92:
1.15 grr 93: <p>
1.22 niklas 94: The major strength of CVS is that it has the ability to perform intelligent
1.15 grr 95: merges of changes to the central repository with changes that you make to
96: your local copy. This means that if you make a change to a module and
97: perform an update, your changes are not "blown away", rather CVS makes
98: best efforts to merge the changes made to the central sources with changes
99: you've made to your local copy.
1.99 ericj 100: </p>
101:
1.15 grr 102: <p>
103: In the event that the changes can't be completely merged, CVS provides a
104: "soft fallback", in terms of providing you with annotated changes to your
1.39 todd 105: local copy, preserving an unmodified copy of your version and continuing
1.15 grr 106: to update any other source modules you requested.
1.99 ericj 107: </p>
108:
1.155 jsyn 109: <h3><a name="starting"><font color="#0000e0">Getting Started Using Anonymous
110: CVS</font></a></h3>
1.100 ericj 111:
112: <p>
113: The latest version of CVS is available at
1.140 horacio 114: <a href="http://www.cvshome.org/">Cyclic</a>.
1.100 ericj 115: Versions earlier than 1.6 are not recommended, and may not work.
116: If you already have OpenBSD installed, CVS is included.
117: </p>
118:
1.22 niklas 119: <p>
1.99 ericj 120: People who own an OpenBSD CD may have seen the <i>CVS/</i> dirs on it.
1.155 jsyn 121: Actually there is a reason, the CD has a checkout of the OpenBSD <b>src</b>
122: module usable to continue updating from. Using this tree will result in a much
1.23 mickey 123: faster initial CVS update than a fresh checkout of the full OpenBSD
124: source tree. There are two ways of using the CD:
1.99 ericj 125: </p>
126:
1.23 mickey 127: <ul>
1.155 jsyn 128: <li>To copy the CVS tree from the CD to <i>/usr/src</i> (assuming the CD is
129: mounted on /mnt):
1.22 niklas 130: <pre>
1.99 ericj 131: # <b>cd /mnt; pax -rw CVS Makefile [a-z]* /usr/src</b>
1.22 niklas 132: </pre>
1.155 jsyn 133: <li>Use a union mount (see <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=mount_union&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html">mount_union(8)</a>)
134: with the CD below a writable directory. (This can be used when only compiling from the tree.)
1.22 niklas 135: <pre>
1.99 ericj 136: # <b>mount -t union -o -b /mnt /usr/src</b>
1.22 niklas 137: </pre>
1.23 mickey 138: </ul>
1.100 ericj 139:
140: <p>
1.155 jsyn 141: For people who don't have a CD on hand, you can use <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1&format=html">
142: cvs(1)</a> to "<b>checkout</b>" the source repository for you. This is
143: discussed in the <a href="#using">next section</a>.
1.100 ericj 144: </p>
145:
146: <p>
1.155 jsyn 147: After this, <i>/usr/src</i> will be a nice checkout area where all
148: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1&format=html">
149: cvs(1)</a> commands will work OK.
1.100 ericj 150: </p>
151:
1.155 jsyn 152: <h3><a name="using"><font color="#0000e0">Using CVS to get and update your
153: source tree</font></a></h3>
1.100 ericj 154:
155: <p>
1.109 jason 156: CVS was designed to be a simple way to retrieve and update your sources,
157: therefore there isn't much involved at all in doing so. You must first
158: decide whether you want to track <i>current</i> or a patch branch.
1.112 kjell 159: The current tree has all of the up to the minute changes,
1.109 jason 160: whereas a patch branch contains a formal release plus the patches
1.157 heko 161: from the <a href="errata.html">errata</a> already applied. For a definition
162: of <i>current</i>, see the <a href="faq/upgrade-minifaq.html#1.1">Upgrade
163: Mini-FAQ</a>.
1.109 jason 164:
1.169 miod 165: <p>Once you have decided which tree to follow, you must choose which Anonymous
1.109 jason 166: CVS server you are going to use. A list of these servers is
1.135 naddy 167: <a href="#CVSROOT">below</a>. Do, however, notice that there are three ways
1.109 jason 168: to access these servers.
1.100 ericj 169: </p>
1.99 ericj 170:
1.135 naddy 171: <dl>
1.155 jsyn 172: <dt><b>ssh</b><dd>Secure Shell can be used to access the anonymous CVS servers.
173: This is the <em>recommended</em> way of doing so, as it is encrypted. As of
174: 2.6, OpenBSD has included OpenSSH in its standard distribution.
175: <dt><b>rsh</b><dd>Remote Shell can be used on some of the servers for users
176: who don't have access to <a href="http://www.openssh.com/">ssh</a>.
177: <dt><b>pserver</b><dd>pserver is primarily useful for users who are behind
178: firewalls that block the other two connections.
1.135 naddy 179: </dl>
1.100 ericj 180:
181: <p>
1.159 jcs 182: <b>NOTE:</b> For users wishing to use rsh, you must first set the
183: <var>CVS_RSH</var> variable to rsh.
1.100 ericj 184:
185: <ul>
1.135 naddy 186: <li>For Korn/Bourne shells:
1.100 ericj 187: <pre>
1.159 jcs 188: $ <b>export CVS_RSH=/usr/bin/rsh</b>
1.100 ericj 189: </pre>
1.135 naddy 190: <li>For csh/tcsh:
1.100 ericj 191: <pre>
1.159 jcs 192: % <b>setenv CVS_RSH /usr/bin/rsh</b>
1.100 ericj 193: </pre>
194: </ul>
195:
196: <p>
1.155 jsyn 197: Once you have chosen which <a href="#CVSROOT">Anonymous CVS Server</a> you will
198: use, and which method you will use, you can start using cvs. For those of you
199: who have CDs you can start with the CVS checkout that is on the CD by using
200: the method <a href="#starting">above</a> to get the sources onto your system.
201: If you don't have a CD handy, use the method below to checkout the sources.
202: This method puts the OpenBSD source tree into <i>/usr/src</i>.
1.100 ericj 203: </p>
204:
1.135 naddy 205: <pre>
206: # <b>cd /usr; cvs checkout -P src</b>
207: </pre>
1.99 ericj 208:
1.1 deraadt 209: <p>
1.109 jason 210: The above will checkout the <i>current</i> source tree. Many of you will
1.169 miod 211: only want the patch branch sources. To checkout a patch branch, you must
1.109 jason 212: specify a tag along with your command. Example:
1.100 ericj 213: </p>
1.1 deraadt 214:
1.135 naddy 215: <pre>
1.205 david 216: # <b>cd /usr; cvs checkout -P -rOPENBSD_3_5 src</b>
1.135 naddy 217: </pre>
1.1 deraadt 218: <p>
1.205 david 219: Or OPENBSD_3_4 for 3.4, etc.
1.100 ericj 220:
1.205 david 221: <p> The OPENBSD_3_5 tag contains the release sources and
1.109 jason 222: errata already applied.
1.100 ericj 223:
1.155 jsyn 224: <h3><a name="CVSROOT"><font color="#0000e0">Available Anonymous CVS Servers
225: </font></a></h3>
1.1 deraadt 226:
227: <p>
228: There are two levels of source tree access:
229:
230: <dl>
231: <dt><strong>Read-write access for developers:</strong>
232: <dd>Developers who need to commit changes to the source tree must have
233: an account on the OpenBSD machines. Getting this access will be a
234: natural result of working on the sources with other OpenBSD developers.
235: If someone does some good work and shows they can work with the team,
236: they will get an account.
237: </dl>
238:
239: <dl>
240: <dt><strong>Read-only access for everyone:</strong>
241: <dd>Anyone can access the read-only CVS repositories. These copies
242: of the read-write CVS repository are mirrored often. To use one,
1.135 naddy 243: set your <var>CVSROOT</var> environment variable to one of
1.1 deraadt 244: the following values:
1.12 grr 245: <p>
1.159 jcs 246: <em>Please see the note about <a href="#WHICH">ssh vs. rsh</a> below!</em>
1.12 grr 247: <p>
1.1 deraadt 248: <ul>
1.196 nick 249: <li><strong>CVSROOT=anoncvs@anoncvs1.usa.openbsd.org:/cvs</strong><br>
1.209 david 250: Host also known as <strong>anoncvs@anoncvs.usa.openbsd.org</strong>,
251: <strong>anoncvs@anoncvs4.usa.openbsd.org</strong>.<br>
1.210 naddy 252: Located in Redwood City, California, western USA.<br>
253: Maintained by <a href="mailto:millert@openbsd.org">Todd Miller</a>.<br>
254: Protocols: rsh, ssh, ssh port 2022, pserver.<br>
255: Updated every 2 hours.<br>
1.214 millert 256: SSH fingerprints:<br>
257: (RSA1) 1024 64:de:26:16:c2:ff:1b:c7:24:ed:a4:4a:d7:2f:69:3e<br>
258: (RSA) 1024 49:67:9a:46:62:8a:3f:4e:b3:63:ca:d6:41:29:2a:2f<br>
259: (DSA) 1024 a7:75:49:77:f3:47:d1:3c:5e:65:84:84:3b:03:f1:33<br>
1.196 nick 260: <p>
1.209 david 261: <li><strong>CVSROOT=anoncvs@anoncvs2.usa.openbsd.org:/cvs</strong><br>
262: Host also known as <strong>repository.citi.umich.edu</strong>.<br>
1.210 naddy 263: Located at the University of Michigan, central USA.<br>
264: Maintained by <a href="mailto:rees@umich.edu">Jim Rees</a>.<br>
265: Protocols: ssh, ssh port 2022.<br>
266: Updated every 12 hours.<br>
1.209 david 267: <p>
268: <li><strong>CVSROOT=anoncvs@anoncvs3.usa.openbsd.org:/cvs</strong><br>
1.210 naddy 269: Located at the University of Colorado, Boulder, western USA.<br>
270: Maintained by <a href="mailto:millert@openbsd.org">Todd Miller</a>.<br>
271: Protocols: rsh, ssh, ssh port 2022, pserver.<br>
272: Updated every 2 hours.<br>
1.214 millert 273: SSH fingerprints:<br>
274: (RSA1) 1024 21:d3:93:29:bc:3f:68:37:6c:84:9f:12:0c:8a:35:2f<br>
275: (RSA) 1024 f4:85:d1:b4:c3:df:62:b9:cf:78:64:73:67:05:e3:ca<br>
276: (DSA) 1024 8d:c7:c3:07:3b:60:fa:80:85:c1:b4:1c:0a:33:c4:33<br>
1.1 deraadt 277: <p>
1.24 deraadt 278: <li><strong>CVSROOT=anoncvs@anoncvs1.ca.openbsd.org:/cvs</strong><br>
1.40 beck 279: Host also known as <strong>anoncvs.ca.openbsd.org</strong>,
1.74 beck 280: <strong>openbsd.sunsite.ualberta.ca</strong><br>
1.210 naddy 281: Located in Edmonton, Alberta, Canada.<br>
282: Maintained by <a href="mailto:beck@ualberta.ca">Bob Beck</a>.<br>
283: Protocols: ssh, rsh, ssh port 2022, pserver<br>
284: Updated every 2 hours.<br>
1.24 deraadt 285: <p>
1.1 deraadt 286: <li><strong>CVSROOT=anoncvs@anoncvs.no.openbsd.org:/cvs</strong><br>
1.64 deraadt 287: Host also known as <strong>cvs.inet.no</strong>.<br>
1.210 naddy 288: Located in Norway.<br>
289: Maintained by <a href="mailto:cvsadmin@inet.no">Michael Shuldman</a>.<br>
290: Protocols: rsh, ssh, ssh port 2022.<br>
291: Updated every 4 hours.<br>
1.1 deraadt 292: <p>
1.208 millert 293: <li><strong>CVSROOT=anoncvs@anoncvs.at.openbsd.org:/cvs</strong><br>
294: Host also known as <strong>togetic.kd85.com</strong>.<br>
1.210 naddy 295: Located in Austria.<br>
296: Maintained by <a href="mailto:wim@kd85.com">Wim Vandeputte</a>.<br>
297: Protocols: ssh, ssh port 2022.<br>
298: Updated every 3 hours.<br>
1.69 deraadt 299: <p>
1.142 naddy 300: <li><strong>CVSROOT=anoncvs@anoncvs.nl.openbsd.org:/cvs</strong><br>
301: Host also known as <strong>anoncvs.calyx.nl</strong>.<br>
1.210 naddy 302: Located in Amsterdam, The Netherlands.<br>
303: Maintained by <a href="mailto:nick@calyx.net">Nick Merrill</a> and
1.142 naddy 304: <a href="mailto:alex@calyx.nl">Alexander Grendel</a>.<br>
1.210 naddy 305: Protocols: ssh.<br>
306: Updated every 3 hours.<br>
1.118 beck 307: <p>
1.69 deraadt 308: <li><strong>CVSROOT=anoncvs@anoncvs.jp.openbsd.org:/cvs</strong><br>
309: Host also known as <strong>kankoromochi.econ.nagasaki-u.ac.jp</strong>.<br>
1.210 naddy 310: Located at Nagasaki Univ. Faculty of Economics, Japan.<br>
311: Maintained by <a href="mailto:sigh@net.nagasaki-u.ac.jp">SUZUKI Hitoshi</a>.<br>
312: Protocols: ssh, pserver.<br>
313: Updated every 3 hours.<br>
1.121 deraadt 314: <p>
1.161 naddy 315: <li><strong>CVSROOT=anoncvs@anoncvs.de.openbsd.org:/cvs</strong><br>
316: Host also known as <strong>grappa.unix-ag.uni-kl.de</strong>.<br>
1.210 naddy 317: Located at the University of Kaiserslautern, Germany.<br>
318: Maintained by <a href="mailto:naddy@openbsd.org">Christian Weisgerber</a>.<br>
319: Protocols: ssh, ssh port 2022, pserver<br>
320: Updated every 6 hours.<br>
1.211 naddy 321: SSH fingerprints:<br>
322: (RSA) 1024 cf:a9:ee:a4:60:5d:66:00:50:5b:fd:d3:72:04:14:a3<br>
323: (DSA) 1024 78:d4:19:da:df:6f:c0:14:7f:4a:55:2a:e9:82:5f:e4<br>
1.220 ! nick 324: <!-- <p>
1.128 beck 325: <li><strong>CVSROOT=anoncvs@anoncvs.pl.openbsd.org:/cvs</strong><br>
326: Host also known as <strong>anoncvs1.pl.openbsd.org</strong>,
1.210 naddy 327: <strong>incredible.bmtmc.gda.pl</strong>.<br>
328: Located at BMT Maritime Consultants, Gdansk, Poland.<br>
329: Maintained by <a href="mailto:detergent@incredible.bmtmc.gda.pl">
1.198 david 330: Adam Naguszewski</a>.<br>
1.210 naddy 331: Protocols: ssh, pserver<br>
1.220 ! nick 332: Updated every 3 hours.<br> -->
1.122 beck 333: <p>
1.123 beck 334: <li><strong>CVSROOT=anoncvs@rt.fm:/cvs</strong><br>
1.210 naddy 335: Located in Lake in the Hills, Illinois, USA.<br>
336: Maintained by <a href="mailto:jcs@rt.fm">
1.198 david 337: Joshua Stein</a>.<br>
1.210 naddy 338: Protocols: ssh<br>
339: Updated every 3 hours.<br>
1.215 david 340: SSH fingerprints:<br>
1.212 jcs 341: (RSA) 1024 54:74:ca:17:d0:07:c3:53:b7:7e:1d:9b:10:bf:04:37<br>
342: (DSA) 1024 46:78:40:52:7a:18:f9:0e:68:61:b0:27:29:f9:d9:c4<br>
1.123 beck 343: <p>
1.149 miod 344: <li><strong>CVSROOT=anoncvs@cvs.openbsd.cz:/cvs</strong><br>
1.210 naddy 345: Located in Prague, Czech Republic.<br>
346: Maintained by <a href="mailto:vlada@openbsd.cz">Vladimir Kotal</a>.<br>
347: Protocols: ssh, pserver.<br>
348: Updated every 4 hours.<br>
1.220 ! nick 349: <!-- <p>
1.153 mickey 350: <li><strong>CVSROOT=anoncvs@anoncvs.openbsd.org.ua:/cvs</strong><br>
1.210 naddy 351: Located in Kiev, Ukraine.<br>
352: Maintained by <a href="mailto:hunter@dg.net.ua">Sergey Smitienko</a>.<br>
353: Protocols: ssh<br>
1.220 ! nick 354: Updated every 6 hours.<br> -->
! 355: <!-- <p>
1.165 miod 356: <li><strong>CVSROOT=openbsd@openbsd.bug.it:/cvs</strong><br>
1.210 naddy 357: Located in Modena, Italy.<br>
358: Maintained by <a href="mailto:jwk@bug.it">Giacomo Cariello</a>.<br>
359: Protocols: ssh, password "openbsd"<br>
1.220 ! nick 360: Updated every 6 hours.<br> -->
1.176 miod 361: <p>
362: <li><strong>CVSROOT=anoncvs@anoncvs.openbsd.lt:/cvs</strong><br>
1.217 naddy 363: Located at TVK, Cable TV and Internet Services, Lithuania.<br>
364: Maintained by <a href="mailto:helpas@ebox.lt">Donatas Budvytis</a>.<br>
365: Protocols: ssh<br>
366: Updated every 3 hours from cvsup.no.openbsd.org.<br>
1.183 jufi 367: <p>
1.199 nick 368: <li><strong>CVSROOT=anoncvs@anoncvs2.de.openbsd.org:/cvs</strong><br>
369: Host also known as <strong>openbsd.informatik.uni-erlangen.de</strong>.<br>
1.210 naddy 370: Located at the University of Erlangen-Nuremberg, Germany.<br>
1.219 naddy 371: Maintained by <a href="mailto:grunk@pestilenz.org">Alexander von Gernler</a>.<br>
1.210 naddy 372: Protocols: ssh, ssh port 2022, pserver<br>
373: Updated every 2 hours.<br>
1.211 naddy 374: SSH fingerprints:<br>
375: (RSA) 1024 fc:94:b0:c1:e5:b0:98:7c:58:43:99:76:97:ee:9f:b7<br>
376: (DSA) 1024 a9:00:3f:ba:50:81:16:d1:e9:b8:4f:3c:b2:10:e2:6c<br>
1.194 nick 377: <p>
1.185 jufi 378: <li><strong>CVSROOT=anoncvs@mirror.osn.de:/cvs</strong><br>
1.210 naddy 379: Located in Nürnberg, Germany.<br>
380: Maintained by <a href="mailto:aw@osn.de">Armin Wolfermann</a>.<br>
381: Protocols: ssh<br>
382: Updated every 4 hours.<br>
1.213 naddy 383: SSH fingerprints:<br>
384: (RSA) 1024 f2:73:d2:f6:e3:01:ef:ca:3b:e7:6c:80:b6:bd:bb:84<br>
385: (DSA) 1024 fb:33:05:62:96:20:cf:88:7e:10:cb:8d:91:72:57:32<br>
1.186 beck 386: <p>
387: <li><strong>CVSROOT=anoncvs@openbsd.chem.uw.edu.pl:/cvs</strong><br>
1.210 naddy 388: Located in Warsaw, Poland.<br>
389: Maintained by <a href="mailto:admin@chem.uw.edu.pl">Piotr Klein</a>.<br>
390: Protocols: ssh<br>
391: Updated every 3 hours.<br>
1.203 saad 392: <p>
1.202 beck 393: <li><strong>CVSROOT=anoncvs@anoncvs.student.pw.edu.pl:/cvs</strong><br>
1.210 naddy 394: Located at the Warsaw University of Technology, Poland.<br>
395: Maintained by <a href="mailto:dmarcink@elka.pw.edu.pl">Darek Marcinkeiwicz</a>.<br>
396: Protocols: ssh<br>
397: Updated every 3 hours.<br>
1.73 deraadt 398: </ul>
1.84 beck 399:
400:
1.73 deraadt 401: <p>
1.135 naddy 402: <em>Note:</em> If your server is listed on here with inaccurate or
1.104 ericj 403: unknown information, please contact
1.135 naddy 404: <a href="mailto:beck@openbsd.org"><tt>beck@openbsd.org</tt></a>
1.104 ericj 405: </p>
406:
1.80 beck 407: <p>
1.104 ericj 408: You may want to use
1.135 naddy 409: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=traceroute&sektion=8&format=html">traceroute(8)</a>
1.104 ericj 410: to find out which server is nearest you.
1.11 michaels 411: Problems with a server should be reported to the <b>maintainer</b> of the
412: server in question.
1.135 naddy 413: </dl>
1.104 ericj 414:
1.155 jsyn 415: <h3><a name="CRYPTO"><font color="#0000e0">Getting crypto sources through
416: cvs(1)</font></a></h3>
1.104 ericj 417:
1.1 deraadt 418: <p>
419: <strong>IMPORTANT NOTE:</strong>
420: There are a few issues relating to cryptographic software that everyone
421: should be aware of:
422: <ul>
423: <li>The OpenBSD sources are from Canada.
1.9 deraadt 424: As
1.182 nick 425: <a href="http://www.efc.ca/pages/doc/crypto-export.html">
1.9 deraadt 426: researched by a Canadian individual</a>
427: and as
1.135 naddy 428: <a href="http://axion.physics.ubc.ca/ECL.html">
1.9 deraadt 429: described in the Export Control list of Canada</a>
1.156 ian 430: it is legal to export crypto software from Canada to the world.
1.1 deraadt 431: <p>
432: <li>However, if you are outside the USA or Canada, you should not
433: fetch the cryptographic sections of the OpenBSD sources from an
434: anoncvs server located in the USA. The files in question are...
435: <ul>
436: <li>src/kerberosIV/*
1.167 miod 437: <li>src/kerberosV/*
1.57 art 438: <li>src/lib/libdes/*
1.1 deraadt 439: <li>src/lib/libc/crypt/crypt.c
440: <li>src/lib/libc/crypt/morecrypt.c
1.167 miod 441: <li>src/sys/crypto
1.36 deraadt 442: <li>src/sys/netinet
1.67 art 443: <li>src/usr.sbin/afs/src/rxkad/*
1.167 miod 444: <li>XF4/xc-mit/lib/Xdmcp/Wraphelp.c
445: <li>XF4/xc-old/lib/Xdmcp/Wraphelp.c
446: <li>XF4/xc/lib/Xdmcp/Wraphelp.c
1.1 deraadt 447: </ul>
448: Because of the USA ITAR munitions list,
449: crypto software may only be exported to Canada from the USA.
450: <p>
451: <li>The OpenBSD project is looking for more anoncvs servers -- read
452: on to find out how you can help.
453: </ul>
454:
1.155 jsyn 455: <h3><a name="EXAMPLE"><font color="#0000e0">Example usages for cvs(1)</font>
456: </a></h3>
1.104 ericj 457:
1.198 david 458: <p>
1.168 pvalchev 459: NOTICE: If you want to update a branch (such as a patch branch)
1.169 miod 460: to <i>current</i>, you would add the <code>-A</code>
1.163 chris 461: flag to cvs, but this flag is of little use otherwise. Some older
462: versions of the OpenBSD documentation recommended use of this flag
463: in many examples. We no longer recommend this flag unless absolutely necessary.
464:
1.1 deraadt 465: <p>
1.135 naddy 466: A sample use of an anoncvs server would be:
467: <pre>
1.104 ericj 468: % <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
469: % <strong>cd /tmp</strong>
470: % <strong>cvs get src/sys/arch/sparc</strong>
1.12 grr 471: [copies the files from the repository to your machine]
1.104 ericj 472: % <strong>cvs log src/sys/arch/sparc/sparc/locore.s</strong>
1.135 naddy 473: [shows the commit log for the chosen file]
1.104 ericj 474: % <strong>cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s</strong>
1.12 grr 475: [shows the changes between revisions 1.1 and rev 1.5]
1.135 naddy 476: </pre>
1.1 deraadt 477:
478: <p>
1.155 jsyn 479: <a name="pserver">In order to use a cvs ``pserver'' (a direct TCP connection
480: instead of using ssh or rsh) you must login once:</a>
1.104 ericj 481:
1.135 naddy 482: <pre>
1.104 ericj 483: % <strong>setenv CVSROOT :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
484: % <strong>cvs login</strong>
1.59 beck 485: (Logging in to anoncvs@anoncvs1.ca.openbsd.org)
1.104 ericj 486: CVS password: <strong>anoncvs</strong>
1.135 naddy 487: [This writes a line to ~/.cvspass (filename over-ridden by CVS_PASSFILE).]
1.18 todd 488: [An example line from my ~/.cvspass after typing 'blah' for the above ]
489: [password is: ]
490: [:pserver:anoncvs@anoncvs5.usa.openbsd.org:/cvs Au'yc ]
1.135 naddy 491: [After logging in ONCE every other use of the above CVSROOT will work. ]
1.104 ericj 492: % <strong>cvs get ksrc-i386 ksrc-common</strong>
1.135 naddy 493: [Allows you to retrieve ONLY that necessary to rebuild an i386 kernel. ]
494: </pre>
1.18 todd 495:
496: <p>
1.39 todd 497: Here is how someone using anoncvs regularly would update his
1.1 deraadt 498: source tree:
1.60 millert 499: <ul><li>First, start out by `get'-ing an initial tree:
1.27 todd 500:
1.109 jason 501: <p> (If you are following <i>current</i>):
1.135 naddy 502: <pre>
503: # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
504: # <strong>cd /usr</strong>
1.163 chris 505: # <strong>cvs -q get -P src</strong>
1.135 naddy 506: </pre>
1.109 jason 507:
1.205 david 508: <p> (If you are following the patch branch for 3.5):
1.135 naddy 509: <pre>
510: # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
511: # <strong>cd /usr</strong>
1.205 david 512: # <strong>cvs -q get -rOPENBSD_3_5 -P src</strong>
1.135 naddy 513: </pre>
1.27 todd 514: </li>
1.37 todd 515:
1.27 todd 516: <li> Anytime afterwards, to `update' this tree:
1.109 jason 517: <p> (If you are following <i>current</i>):
1.135 naddy 518: <pre>
519: # <strong>cd /usr/src</strong>
1.163 chris 520: # <strong>cvs -q up -Pd</strong>
1.135 naddy 521: </pre>
1.27 todd 522:
1.205 david 523: <p> (If you are following the patch branch for 3.5):
1.135 naddy 524: <pre>
525: # <strong>cd /usr/src</strong>
1.205 david 526: # <strong>cvs -q up -rOPENBSD_3_5 -Pd</strong>
1.135 naddy 527: </pre>
1.109 jason 528:
1.154 jsyn 529: Every time you ran this it would synchronize your /usr/src tree. It would
1.1 deraadt 530: not destroy any of your local changes, rather it would attempt to merge
531: changes in. If you use obj directories (not obj symbolic links) you may
532: wish to append "-I obj" to the cvs command line, this will keep cvs from
533: spitting out a warning about all the obj directories it is going to
534: encounter which are not in the repository.
1.72 millert 535:
536: <p>
1.163 chris 537: <li> NOTE:
538: If you are updating a source tree that you initially fetched
1.72 millert 539: from a different server, or from a CD, you <strong>must</strong>
1.163 chris 540: add the <em>-d $CVSROOT</em> options to cvs.
1.135 naddy 541: <pre>
542: # <strong>cd /usr/src</strong>
543: # <strong>cvs -d $CVSROOT -q up -Pd</strong>
544: </pre>
1.27 todd 545: </li>
546: </ul>
547:
1.37 todd 548: <p>
1.135 naddy 549: To <a name="ports">use</a> <a href="ports.html">ports</a>, it is similar to src:
1.37 todd 550: <ul><li>
1.157 heko 551: <p> (If you are following <i>current</i>):
1.37 todd 552: <pre>
1.135 naddy 553: # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
554: # <strong>cd /usr</strong>
1.163 chris 555: # <strong>cvs -q get -P ports</strong>
1.38 deraadt 556: </pre>
1.205 david 557: <p> (If you are following the patch branch for 3.5):
1.157 heko 558: <pre>
559: # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
560: # <strong>cd /usr</strong>
1.205 david 561: # <strong>cvs -q get -rOPENBSD_3_5 -P ports</strong>
1.157 heko 562: </pre>
1.37 todd 563: <li> Anytime afterwards, to `update' this tree:
1.157 heko 564: <p> (If you are following <i>current</i>):
1.37 todd 565: <pre>
1.218 nick 566: # <strong>cd /usr/ports</strong>
567: # <strong>cvs -q up -Pd</strong>
1.157 heko 568: </pre>
1.205 david 569: <p> (If you are following the patch branch for 3.5):
1.157 heko 570: <pre>
1.218 nick 571: # <strong>cd /usr/ports</strong>
572: # <strong>cvs -q up -rOPENBSD_3_5 -Pd</strong>
1.157 heko 573: </pre>
1.37 todd 574: </li>
1.127 jufi 575: </ul>
1.37 todd 576:
1.104 ericj 577: In the above example, <i>-q</i> is optional, only intended to minimize
1.27 todd 578: cvs's output. For those who like to see screenfulls of output, it
579: can be omitted.
1.1 deraadt 580:
581: <p>
1.104 ericj 582: or to make a diff of a locally patched module (here <i>cd.c</i>) to include with
1.12 grr 583: a bug report:
1.135 naddy 584: <pre>
585: # <strong>cd /usr</strong>
586: # <strong>cvs diff -u src/sys/scsi/cd.c > /tmp/patch</strong>
587: </pre>
1.12 grr 588:
589: <p>
1.155 jsyn 590: The <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1&format=html">
591: cvs(1) man page</a>
1.104 ericj 592: (included with the CVS sources) has much more
1.1 deraadt 593: information about how CVS can be used.
594:
1.135 naddy 595: <h4>X11 Source tree</h4>
596:
1.1 deraadt 597: <p>
1.163 chris 598: Anoncvs mirrors also carry the OpenBSD X11 (XFree86) source tree. You can adapt
1.172 miod 599: the recipe above to update your XFree86 source tree from the third CD.
1.163 chris 600: You can copy or download the XFree86 3 source tree with the X11 cvs module,
601: although the current module containing XFree86 4 is XF4.
602: There are two ways to get the XF4 sources to <i>/usr/XF4</i>:
1.105 ericj 603:
604: <ul>
1.173 miod 605: <li>copy the tree off the CD (assuming the 3rd CD is mounted on /mnt):
1.105 ericj 606: <pre>
1.163 chris 607: # <strong>cd /mnt; cp -Rp XF4 /usr</strong>
1.105 ericj 608: </pre>
609: <li>use a union mount with the CD below a writable directory.
610: <pre>
1.163 chris 611: # <strong>mount -t union -o -b /mnt/XF4 /usr/XF4</strong>
1.135 naddy 612: </pre>
613: </ul>
1.105 ericj 614:
1.163 chris 615: After this, <i>/usr/XF4</i> will be ready to be used by cvs. You can for
1.105 ericj 616: example update it to -current source (assuming you've already set
1.140 horacio 617: the <var>CVSROOT</var> environment variable):
1.105 ericj 618:
1.135 naddy 619: <pre>
1.163 chris 620: # <strong>cd /usr/XF4</strong>
621: # <strong>cvs -q update -Pd</strong>
1.135 naddy 622: </pre>
1.105 ericj 623:
624: <p>
1.12 grr 625: <strong>Warning:</strong>
626: When using cvs you should take care that your current directory is either
1.109 jason 627: the root of the tree you are referencing or in a separate place such as /tmp.
1.12 grr 628: Some commands such as "get" can create an arbitrary sub-tree in the current
629: directory, and a subsequent update will recursively flesh out this sub-tree.
630:
631: <p>
1.1 deraadt 632: The anoncvs service gives fledgling developers a chance to learn CVS
633: operation and get thoroughly involved in the development process
634: before getting "commit" access -- as a result of showing useful
635: skills and high quality results they will naturally later be given
636: developer access. As well, people providing patches can create
637: their "diff"s relative to the CVS tree, which will ease integration.
638:
1.104 ericj 639:
1.135 naddy 640: <h3><a name="WHICH"><font color="#0000e0">Use rsh(1) or ssh(1)?</font></a></h3>
1.104 ericj 641:
1.1 deraadt 642: <p>
1.159 jcs 643: By default, the CVS client uses ssh ("secure shell":
644: <a href="http://www.openssh.com/">OpenSSH</a>) to talk to the CVS server.
645:
646: <p>
647: Many of the CVS sites no longer support rsh for security reasons. Local
648: problems like firewalls or imperfect protocol emulators such as slirp may
649: also hinder rsh usage. However, if rsh is desired, one must set the
650: <var>CVS_RSH</var> environment variable to point to rsh
651: (typically <strong>/usr/bin/rsh</strong>).
652:
653: <p>
654: If local policy prevents outgoing connections to ssh's default port of 22,
655: port 2022 may be used in its place. Note, however, that not all anoncvs
656: servers accept ssh connections on this port. Furthermore, most anoncvs servers
657: no longer accept the <strong>none</strong> cipher, as it is disabled in
1.169 miod 658: recent versions of ssh for security reasons. Also, do not be tempted
1.159 jcs 659: to turn on compression: CVS already compresses.
660:
661: <p>
662: One could specify something like the following in the
663: <strong>$HOME/.ssh/config</strong> configuration file to avoid the pitfalls
664: and restrictions mentioned above:
1.1 deraadt 665: <pre>
1.59 beck 666: Host anoncvs.ca.openbsd.org
1.159 jcs 667: Compression no
1.1 deraadt 668: Port 2022
669: </pre>
670:
671: <p>
672: CVS is a little noisy starting up; to quiet it a bit you may want to
673: do this:
1.105 ericj 674:
1.135 naddy 675: <pre>
676: <strong>% setenv CVS_CLIENT_PORT -1</strong>
677: </pre>
1.1 deraadt 678:
679: <p>
1.155 jsyn 680: <h3><a name="SUP"><font color="#0000e0">Mirroring the CVS repository via
681: sup(1)</font></a></h3>
1.107 millert 682:
683: <p>
684: Users wishing to mirror the OpenBSD CVS tree itself may now do so
1.214 millert 685: from <em>anoncvs.usa.openbsd.org</em> or <em>anoncvs3.usa.openbsd.org</em>
1.143 millert 686: (these are different machines). Note that this is the cvs tree,
687: <b>not</b> a checked out source tree. It is only useful if you
688: want to be able to do fast cvs operations (diff, annotate, etc) or
689: if you have multiple source trees and you only want to transfer new
690: data once (you can then checkout a tree from your local cvs mirror).
1.107 millert 691: <p>
692: A sample supfile would be:
693: <pre>
694: cvs host=anoncvs.usa.openbsd.org hostbase=/ base=/home delete
695: </pre>
696: <p>
697: which would mirror the cvs tree into /home/cvs with the sup data
1.133 millert 698: files ending up in /home/sup. The full OpenBSD cvs tree is currently
1.195 brad 699: about 2.2GB in size.
1.65 matthieu 700:
1.155 jsyn 701: <h3><a name="MIRROR"><font color="#0000e0">Setting up an anoncvs mirror
702: </font></a></h3>
1.105 ericj 703:
1.107 millert 704: <p>
1.200 nick 705: If you wish to setup a new anoncvs mirror site and make it available to
706: the general public, please contact the anoncvs
1.135 naddy 707: <a href="mailto:sup@openbsd.org">maintainer</a>.
1.197 brad 708: Anoncvs mirrors require about 2.2GB of disk, and use up to 32MB of swap
1.1 deraadt 709: per anoncvs user (assuming the user does a large operation; while smaller
710: operations use fewer resources, anoncvs still makes much more of an
711: impact than ftp or sup). Such anoncvs machines should have excellent
712: network connectivity for the area they are expected to serve. A
1.135 naddy 713: <a href="anoncvs.shar">document</a>
1.1 deraadt 714: which describes the setup of anoncvs servers is available.
715:
1.135 naddy 716: <h3><font color="#0000e0">Final notes</font></h3>
1.60 millert 717: After upgrading your source tree, you should read the comments
1.198 david 718: at the top of <kbd>/usr/src/Makefile</kbd> before attempting
1.60 millert 719: a build. Also, you should build a new kernel <strong>before</strong>
1.198 david 720: doing a <kbd>make build</kbd> if possible. In some cases it may be
721: necessary to rebuild and install the <kbd>config</kbd> utility before
722: you can build the kernel. If <kbd>config GENERIC</kbd> fails this
1.60 millert 723: is probably the case.
724: <p>
725: It is important to note that upgrading from a release to the current tree
726: by rebuilding the sources can be rather difficult due to dependencies
727: that are often not obvious. Therefore, it is suggested that you first
1.154 jsyn 728: install the latest snapshot before attempting a tree build from source.
1.1 deraadt 729:
730: <hr>
1.155 jsyn 731: <a href="index.html"><img height="24" width="24" src="back.gif" border="0"
732: alt="OpenBSD"></a>
1.135 naddy 733: <a href="mailto:www@openbsd.org">www@openbsd.org</a>
1.220 ! nick 734: <br><small>$OpenBSD: anoncvs.html,v 1.219 2004/08/12 15:14:22 naddy Exp $
1.155 jsyn 735: </small>
1.1 deraadt 736:
737: </body>
738: </html>