Annotation of www/anoncvs.html, Revision 1.155
1.135 naddy 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//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">
7: <meta name="description" content="How to get OpenBSD updates via Internet using Anonymous CVS">
8: <meta name="keywords" content="openbsd,anoncvs,updates">
9: <meta name="distribution" content="global">
1.140 horacio 10: <meta name="copyright" content="This document copyright 1996-2001 by OpenBSD.">
1.1 deraadt 11: </head>
12:
1.135 naddy 13: <body bgcolor="#ffffff" text="#000000" link="#23238e">
1.1 deraadt 14:
1.135 naddy 15: <img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif">
1.93 deraadt 16: <p>
1.135 naddy 17: <h2><font color="#e00000">Anonymous CVS</font></h2>
1.14 downsj 18:
1.135 naddy 19: <hr>
20:
21: <h3>Table Of Contents</h3>
22:
23: <ul>
1.100 ericj 24: <li><a href="#anoncvs">What is Anonymous CVS?</a>
25: <li><a href="#CVS">What is CVS?</a>
1.135 naddy 26: <li><a href="#starting">Getting Started Using Anonymous CVS</a>
27: <li><a href="#using">Using CVS to Get and Update your Source Tree</a>
28: <li><a href="#CVSROOT">Available Anonymous CVS Servers</a>
29: <li><a href="#CRYPTO">Getting crypto sources through cvs(1)</a>
30: <li><a href="#EXAMPLE">Example usages for cvs(1)</a>
1.104 ericj 31: <li><a href="#WHICH">Use rsh(1) or ssh(1)?</a>
1.135 naddy 32: <li><a href="#SUP">Mirroring the CVS repository via sup(1)</a>
33: <li><a href="#MIRROR">Setting up an anoncvs mirror</a>
1.100 ericj 34: </ul>
1.135 naddy 35:
1.100 ericj 36: <hr>
37:
1.135 naddy 38: <h3><a name="anoncvs"><font color="#0000e0">What is Anonymous CVS?</font></a></h3>
1.99 ericj 39:
1.15 grr 40: <p>
41: Anonymous CVS is a method of keeping your local copy of the OpenBSD source
42: tree up to date with respect to changes made to current OpenBSD sources.
1.109 jason 43: In addition to following the bleeding edge of development, it is
44: also possible to track the patches for errata of a release.
1.99 ericj 45: </p>
46:
1.14 downsj 47: <p>
1.15 grr 48: The major advantage of Anonymous CVS over other source code update
49: techniques is that it works directly against a central source code
50: repository or mirror. This means that you have the full set of CVS
51: commands available to control merging and updating your changes with
1.154 jsyn 52: other source changes and for performing diffs, change histories
1.15 grr 53: and other queries against the central repository.
1.99 ericj 54: </p>
55:
1.36 deraadt 56: <p>
1.135 naddy 57: The OpenBSD Project currently has five main source repositories:
1.99 ericj 58: </p>
59:
60: <ul>
1.140 horacio 61: <li><b>src</b> - Houses all source code for the OpenBSD Operating System.</li>
62: <li><b>ports</b> - Houses the <a href="./ports.html">OpenBSD Ports</a>.</li>
63: <li><b>www</b> - Houses all OpenBSD web pages. (Including this one).</li>
1.135 naddy 64: <li><b>X11</b> - Houses OpenBSD's adaptation of the
65: <a href="http://www.XFree86.org/">XFree86-3</a> software project.</li>
66: <li><b>XF4</b> - Houses OpenBSD's adaptation of the
67: <a href="http://www.XFree86.org/">XFree86-4</a> software project.</li>
1.99 ericj 68: </ul>
69:
1.100 ericj 70: <p>
71: To summarize, the real strength of using Anonymous CVS is that it is
72: a "tolerant" source code control system - it <strong>respects</strong>
73: changes that you have made to your local sources and makes <strong>
74: "best efforts"</strong> to update your entire source tree, rather than
75: leaving you a list of arcane problems that have to be resolved before
76: continuing.
77: </p>
78:
1.135 naddy 79: <h3><a name="CVS"><font color="#0000e0">What is CVS?</font></a></h3>
1.99 ericj 80:
1.36 deraadt 81: <p>
1.135 naddy 82: <a href="why-cvs.html">
1.36 deraadt 83: CVS is the source code control system used to manage the OpenBSD source tree.</a>
1.16 deraadt 84: It implements a central repository for all officially released source code
1.15 grr 85: and changes, while permitting developers to maintain local copies of the
1.99 ericj 86: source code with their working changes. Developers with "<b>write access</b>"
1.15 grr 87: can commit changes directly to the OpenBSD source tree, while "Anonymous
1.155 ! jsyn 88: CVS" users have "<b>read access</b>" and can keep their local copies of the
! 89: source up to date and issue queries against the central depository.
1.99 ericj 90: </p>
91:
1.15 grr 92: <p>
1.22 niklas 93: The major strength of CVS is that it has the ability to perform intelligent
1.15 grr 94: merges of changes to the central repository with changes that you make to
95: your local copy. This means that if you make a change to a module and
96: perform an update, your changes are not "blown away", rather CVS makes
97: best efforts to merge the changes made to the central sources with changes
98: you've made to your local copy.
1.99 ericj 99: </p>
100:
1.15 grr 101: <p>
102: In the event that the changes can't be completely merged, CVS provides a
103: "soft fallback", in terms of providing you with annotated changes to your
1.39 todd 104: local copy, preserving an unmodified copy of your version and continuing
1.15 grr 105: to update any other source modules you requested.
1.99 ericj 106: </p>
107:
1.155 ! jsyn 108: <h3><a name="starting"><font color="#0000e0">Getting Started Using Anonymous
! 109: CVS</font></a></h3>
1.100 ericj 110:
111: <p>
112: The latest version of CVS is available at
1.140 horacio 113: <a href="http://www.cvshome.org/">Cyclic</a>.
1.100 ericj 114: Versions earlier than 1.6 are not recommended, and may not work.
115: If you already have OpenBSD installed, CVS is included.
116: </p>
117:
1.22 niklas 118: <p>
1.99 ericj 119: People who own an OpenBSD CD may have seen the <i>CVS/</i> dirs on it.
1.155 ! jsyn 120: Actually there is a reason, the CD has a checkout of the OpenBSD <b>src</b>
! 121: module usable to continue updating from. Using this tree will result in a much
1.23 mickey 122: faster initial CVS update than a fresh checkout of the full OpenBSD
123: source tree. There are two ways of using the CD:
1.99 ericj 124: </p>
125:
1.23 mickey 126: <ul>
1.155 ! jsyn 127: <li>To copy the CVS tree from the CD to <i>/usr/src</i> (assuming the CD is
! 128: mounted on /mnt):
1.22 niklas 129: <pre>
1.99 ericj 130: # <b>cd /mnt; pax -rw CVS Makefile [a-z]* /usr/src</b>
1.22 niklas 131: </pre>
1.155 ! jsyn 132: <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>)
! 133: with the CD below a writable directory. (This can be used when only compiling from the tree.)
1.22 niklas 134: <pre>
1.99 ericj 135: # <b>mount -t union -o -b /mnt /usr/src</b>
1.22 niklas 136: </pre>
1.23 mickey 137: </ul>
1.100 ericj 138:
139: <p>
1.155 ! jsyn 140: 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">
! 141: cvs(1)</a> to "<b>checkout</b>" the source repository for you. This is
! 142: discussed in the <a href="#using">next section</a>.
1.100 ericj 143: </p>
144:
145: <p>
1.155 ! jsyn 146: After this, <i>/usr/src</i> will be a nice checkout area where all
! 147: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1&format=html">
! 148: cvs(1)</a> commands will work OK.
1.100 ericj 149: </p>
150:
1.155 ! jsyn 151: <h3><a name="using"><font color="#0000e0">Using CVS to get and update your
! 152: source tree</font></a></h3>
1.100 ericj 153:
154: <p>
1.109 jason 155: CVS was designed to be a simple way to retrieve and update your sources,
156: therefore there isn't much involved at all in doing so. You must first
157: decide whether you want to track <i>current</i> or a patch branch.
1.112 kjell 158: The current tree has all of the up to the minute changes,
1.109 jason 159: whereas a patch branch contains a formal release plus the patches
160: from the <a href="errata.html">errata</a> already applied.
161:
162: <p>Once you have decided which tree to follow, you much choose which Anonymous
163: CVS server you are going to use. A list of these servers is
1.135 naddy 164: <a href="#CVSROOT">below</a>. Do, however, notice that there are three ways
1.109 jason 165: to access these servers.
1.100 ericj 166: </p>
1.99 ericj 167:
1.135 naddy 168: <dl>
1.155 ! jsyn 169: <dt><b>ssh</b><dd>Secure Shell can be used to access the anonymous CVS servers.
! 170: This is the <em>recommended</em> way of doing so, as it is encrypted. As of
! 171: 2.6, OpenBSD has included OpenSSH in its standard distribution.
! 172: <dt><b>rsh</b><dd>Remote Shell can be used on some of the servers for users
! 173: who don't have access to <a href="http://www.openssh.com/">ssh</a>.
! 174: <dt><b>pserver</b><dd>pserver is primarily useful for users who are behind
! 175: firewalls that block the other two connections.
1.135 naddy 176: </dl>
1.100 ericj 177:
178: <p>
1.155 ! jsyn 179: <b>NOTE:</b> For users wishing to use ssh, you must first set the
! 180: <var>CVS_RSH</var> variable to ssh.
1.100 ericj 181:
182: <ul>
1.135 naddy 183: <li>For Korn/Bourne shells:
1.100 ericj 184: <pre>
1.135 naddy 185: $ <b>export CVS_RSH=/usr/bin/ssh</b>
1.100 ericj 186: </pre>
1.135 naddy 187: <li>For csh/tcsh:
1.100 ericj 188: <pre>
1.135 naddy 189: % <b>setenv CVS_RSH /usr/bin/ssh</b>
1.100 ericj 190: </pre>
191: </ul>
192:
193: <p>
1.155 ! jsyn 194: Once you have chosen which <a href="#CVSROOT">Anonymous CVS Server</a> you will
! 195: use, and which method you will use, you can start using cvs. For those of you
! 196: who have CDs you can start with the CVS checkout that is on the CD by using
! 197: the method <a href="#starting">above</a> to get the sources onto your system.
! 198: If you don't have a CD handy, use the method below to checkout the sources.
! 199: This method puts the OpenBSD source tree into <i>/usr/src</i>.
1.100 ericj 200: </p>
201:
1.135 naddy 202: <pre>
203: # <b>cd /usr; cvs checkout -P src</b>
204: </pre>
1.99 ericj 205:
1.1 deraadt 206: <p>
1.109 jason 207: The above will checkout the <i>current</i> source tree. Many of you will
208: only want a patch branch sources. To checkout a patch branch, you must
209: specify a tag along with your command. Example:
1.100 ericj 210: </p>
1.1 deraadt 211:
1.135 naddy 212: <pre>
1.150 jufi 213: # <b>cd /usr; cvs checkout -P -rOPENBSD_2_9 src</b>
1.135 naddy 214: </pre>
1.1 deraadt 215: <p>
1.150 jufi 216: Or OPENBSD_2_8 for 2.8, etc.
1.100 ericj 217:
1.150 jufi 218: <p> Currently only the OPENBSD_2_9 tag contains the release sources and
1.109 jason 219: errata already applied.
1.100 ericj 220:
1.155 ! jsyn 221: <h3><a name="CVSROOT"><font color="#0000e0">Available Anonymous CVS Servers
! 222: </font></a></h3>
1.1 deraadt 223:
224: <p>
225: There are two levels of source tree access:
226:
227: <dl>
228: <dt><strong>Read-write access for developers:</strong>
229: <dd>Developers who need to commit changes to the source tree must have
230: an account on the OpenBSD machines. Getting this access will be a
231: natural result of working on the sources with other OpenBSD developers.
232: If someone does some good work and shows they can work with the team,
233: they will get an account.
234: </dl>
235:
236: <dl>
237: <dt><strong>Read-only access for everyone:</strong>
238: <dd>Anyone can access the read-only CVS repositories. These copies
239: of the read-write CVS repository are mirrored often. To use one,
1.135 naddy 240: set your <var>CVSROOT</var> environment variable to one of
1.1 deraadt 241: the following values:
1.12 grr 242: <p>
1.135 naddy 243: <em>Please see the note about using ssh vs. rsh below!</em>
1.12 grr 244: <p>
1.1 deraadt 245: <ul>
1.83 millert 246: <li><strong>CVSROOT=anoncvs@anoncvs1.usa.openbsd.org:/cvs</strong><br>
247: Host also known as <strong>anoncvs@anoncvs4.usa.openbsd.org</strong>.<br>
1.143 millert 248: located in Redwood City, California, western USA.<br>
1.135 naddy 249: maintained by <a href="mailto:millert@openbsd.org">Todd Miller</a>.<br>
1.143 millert 250: protocols: rsh, ssh, ssh port 2022, pserver.<br>
1.1 deraadt 251: updated every 4 hours.<br>
252: <p>
1.83 millert 253: <li><strong>CVSROOT=anoncvs@anoncvs.usa.openbsd.org:/cvs</strong><br>
254: Host also known as <strong>anoncvs3.usa.openbsd.org</strong>.<br>
1.1 deraadt 255: located at the University of Colorado, Boulder, western USA.<br>
1.148 millert 256: maintained by <a href="mailto:millert@openbsd.org">Todd Miller</a>.<br>
1.94 millert 257: protocols: rsh, ssh, ssh port 2022, pserver.<br>
1.144 millert 258: updated every 3 hours.<br>
1.1 deraadt 259: <p>
1.76 deraadt 260: <li><strong>CVSROOT=anoncvs@anoncvs5.usa.openbsd.org:/cvs</strong><br>
261: Host also known as <strong>squid.nas.nasa.gov</strong>.<br>
262: located at Ames Research Center, Moffett Field, California, USA.<br>
1.135 naddy 263: maintained by <a href="mailto:allison@mail.arc.nasa.gov">Tyler Allison</a>.<br>
1.77 deraadt 264: protocols: ssh only.<br>
265: updated every 3 hours.<br>
1.121 deraadt 266: <p>
1.84 beck 267: <li><strong>CVSROOT=anoncvs@mirror.arc.nasa.gov:/cvs</strong><br>
268: located at Ames Research Center, Moffett Field, California, USA.<br>
1.135 naddy 269: maintained by <a href="mailto:allison@mail.arc.nasa.gov">Tyler Allison</a>.<br>
1.84 beck 270: protocols: ssh only.<br>
271: updated every 3 hours.<br>
1.76 deraadt 272: <p>
1.31 deraadt 273: <li><strong>CVSROOT=anoncvs@anoncvs6.usa.openbsd.org:/cvs</strong><br>
274: Host also known as <strong>openbsd.citi.umich.edu</strong>.<br>
275: located at the University of Michigan, central USA.<br>
1.135 naddy 276: maintained by <a href="mailto:rees@umich.edu">Jim Rees</a>.<br>
1.31 deraadt 277: protocols: ssh, ssh port 2022.<br>
278: updated every 12 hours.<br>
279: <p>
1.24 deraadt 280: <li><strong>CVSROOT=anoncvs@anoncvs1.ca.openbsd.org:/cvs</strong><br>
1.40 beck 281: Host also known as <strong>anoncvs.ca.openbsd.org</strong>,
1.74 beck 282: <strong>openbsd.sunsite.ualberta.ca</strong><br>
1.24 deraadt 283: located in Edmonton, Alberta, Canada.<br>
1.149 miod 284: maintained by <A HREF="mailto:beck@ualberta.ca">Bob Beck</A>.<br>
1.53 beck 285: protocols: ssh, rsh, ssh port 2022, pserver<br>
1.45 beck 286: updated every 2 hours.<br>
1.24 deraadt 287: <p>
1.151 brad 288: <li><strong>CVSROOT=anoncvs@anoncvs.comstyle.com:/cvs</strong><br>
289: Host also known as <strong>openbsd.comstyle.com</strong><br>
290: located in Toronto, Ontario, Canada.<br>
291: maintained by <A HREF="mailto:brad@comstyle.com">Brad Smith</A>.<br>
292: protocols: ssh, ssh port 2022<br>
293: updated every 2 hours.<br>
294: <p>
1.1 deraadt 295: <li><strong>CVSROOT=anoncvs@anoncvs.uk.openbsd.org:/cvs</strong><br>
296: located in London, UK.<br>
1.135 naddy 297: maintained by <a href="mailto:peter@wonderland.org">Peter Galbavy</a>.<br>
1.116 beck 298: protocols: ssh only.<br>
299: updated every 6 hours.<br>
1.1 deraadt 300: <p>
1.117 beck 301: <li><strong>CVSROOT=anoncvs@anoncvs2.uk.openbsd.org:/cvs</strong><br>
302: located in London, UK.<br>
1.135 naddy 303: maintained by <a href="mailto:joe@hole-in-the.net">Joe Warren-Meeks</a>.<br>
1.117 beck 304: protocols: ssh only.<br>
1.119 brian 305: updated every 3 hours.<br>
1.117 beck 306: <p>
1.1 deraadt 307: <li><strong>CVSROOT=anoncvs@anoncvs.tw.openbsd.org:/cvs</strong><br>
1.64 deraadt 308: Host also known as <strong>OpenBSD.csie.NCTU.edu.tw</strong>.<br>
1.1 deraadt 309: located in Taipei, Taiwan.<br>
1.135 naddy 310: maintained by <a href="mailto:lkchu@OpenBSD.csie.NCTU.edu.tw">Liang-Kai Chu</a>.<br>
1.1 deraadt 311: protocols: rsh, ssh, ssh port 2022.<br>
312: updated every 12 hours.<br>
313: <p>
314: <li><strong>CVSROOT=anoncvs@anoncvs.no.openbsd.org:/cvs</strong><br>
1.64 deraadt 315: Host also known as <strong>cvs.inet.no</strong>.<br>
1.1 deraadt 316: located in Norway.<br>
1.135 naddy 317: maintained by <a href="mailto:cvsadmin@inet.no">Michael Shuldman</a>.<br>
1.1 deraadt 318: protocols: rsh, ssh, ssh port 2022.<br>
319: updated every 4 hours.<br>
320: <p>
1.33 deraadt 321: <li><strong>CVSROOT=anoncvs@anoncvs.se.openbsd.org:/cvs</strong><br>
1.54 art 322: Host also known as <strong>anoncvs.stacken.kth.se</strong>.<br>
1.33 deraadt 323: located in Sweden.<br>
1.135 naddy 324: maintained by <a href="mailto:anoncvs@stacken.kth.se">Magnus Holmberg</a>.<br>
1.33 deraadt 325: protocols: rsh, ssh, ssh port 2022.<br>
1.57 art 326: updated every 3 hours.<br>
1.68 wvdputte 327: <p>
328: <li><strong>CVSROOT=anoncvs@anoncvs.be.openbsd.org:/cvs</strong><br>
329: Host also known as <strong>badlands.rug.ac.be</strong>.<br>
330: located in Belgium.<br>
1.135 naddy 331: maintained by <a href="mailto:wvdputte@reptile.rug.ac.be">Wim Vandeputte</a>.<br>
1.68 wvdputte 332: protocols: ssh, ssh port 2022.<br>
333: updated every 3 hours.<br>
1.69 deraadt 334: <p>
1.142 naddy 335: <li><strong>CVSROOT=anoncvs@anoncvs.nl.openbsd.org:/cvs</strong><br>
336: Host also known as <strong>anoncvs.calyx.nl</strong>.<br>
1.118 beck 337: located in Amsterdam, The Netherlands.<br>
1.142 naddy 338: maintained by <a href="mailto:nick@calyx.net">Nick Merrill</a> and
339: <a href="mailto:alex@calyx.nl">Alexander Grendel</a>.<br>
1.118 beck 340: protocols: ssh.<br>
341: updated every 3 hours.<br>
342: <p>
1.69 deraadt 343: <li><strong>CVSROOT=anoncvs@anoncvs.jp.openbsd.org:/cvs</strong><br>
344: Host also known as <strong>kankoromochi.econ.nagasaki-u.ac.jp</strong>.<br>
345: located at Nagasaki Univ. Faculty of Economics, JAPAN.<br>
1.135 naddy 346: maintained by <a href="mailto:sigh@net.nagasaki-u.ac.jp">SUZUKI Hitoshi</a>.<br>
1.79 deraadt 347: protocols: ssh, pserver.<br>
348: updated every 3 hours.<br>
1.121 deraadt 349: <p>
1.73 deraadt 350: <li><strong>CVSROOT=anoncvs@anoncvs.cz.openbsd.org:/cvs</strong><br>
351: Host also known as <strong>com-os2.ms.mff.cuni.cz</strong>.<br>
1.155 ! jsyn 352: located at Faculty Math & Physics, Charles University, Prague, Czech
! 353: republic.<br>
! 354: maintained by <a href="mailto:galambos@com-os2.ms.mff.cuni.cz">Leo Galambos
! 355: </a>.<br>
1.73 deraadt 356: protocols: ssh, ssh port 2022.<br>
357: updated every 3 hours.<br>
1.121 deraadt 358: <p>
1.84 beck 359: <li><strong>CVSROOT=anoncvs@anoncvs1.au.openbsd.org:/cvs</strong><br>
360: Host also known as <strong>anoncvs.au.openbsd.org</strong>,
361: <strong>anoncvs.openbsd.aba.net.au</strong><br>
362: located in Carlton, Victoria, Australia.<br>
1.149 miod 363: maintained by <A HREF="mailto:mwp@aba.net.au">Micheal Paddon</A>.<br>
1.84 beck 364: protocols: ssh<br>
365: updated every 4 hours.<br>
1.121 deraadt 366: <p>
1.103 beck 367: <li><strong>CVSROOT :pserver:anoncvs@cvs.bsdfr.org:/cvs</strong><br>
1.141 naddy 368: located in France<br>
1.149 miod 369: maintained by: <a href="mailto:jch@oleane.net">Jean-Claude Christophe</a>.<br>
1.103 beck 370: protocols: pserver<br>
371: updated every 24h <br>
1.121 deraadt 372: <p>
1.115 beck 373: <li><strong>CVSROOT=anoncvs@grappa.unix-ag.uni-kl.de:/cvs</strong><br>
374: located at the University of Kaiserslautern, Germany<br>
1.135 naddy 375: maintained by <A HREF="mailto:hgw@d1906.inka.de">Hans Günter Weigand</A>
1.149 miod 376: and <A HREF="mailto:naddy@openbsd.org">Christian Weisgerber</A>.<br>
1.115 beck 377: protocols: rsh, ssh, ssh port 2022, pserver<br>
1.135 naddy 378: updated every 6 hours from cvsup.uk.openbsd.org.<br>
1.121 deraadt 379: <p>
1.80 beck 380: <li><strong>CVSROOT=anoncvs@exokernel.lcs.mit.edu:/cvs</strong><br>
381: located at M.I.T, Eastern USA.<br>
382: maintained by ????<br>
383: protocols: ssh, ???<br>
384: updated every ? hours.<br>
1.121 deraadt 385: <p>
1.108 ho 386: <li><strong>CVSROOT=anoncvs@xyzzy.gsnig.org:/cvs</strong><br>
387: Located in Göteborg, Sweden<br>
1.149 miod 388: maintained by <A HREF="mailto:martin@openbsd.org">Martin Fredriksson</A>.<br>
1.108 ho 389: protocols: ssh port 2022<br>
390: updated every 4 hours.<br>
1.121 deraadt 391: <p>
1.80 beck 392: <li><strong>CVSROOT=anoncvs@stl-isaas.ey.com:/cvs</strong><br>
1.90 beck 393: Located in St. Louis, MO, Eastern USA<br>
1.149 miod 394: maintained by <A HREF="mailto:aaron11@sprynet.com">Aaron Miller</A>.<br>
1.81 beck 395: protocols: ssh, ssh port 2022, pserver<br>
396: updated every 3 hours.<br>
1.121 deraadt 397: <p>
1.91 beck 398: <li><strong>CVSROOT=anoncvs@openbsd.groupbsd.org:/cvs</strong><br>
1.92 jason 399: Located in Hillsborough NC, Eastern USA<br>
1.149 miod 400: maintained by <A HREF="mailto:jason@openbsd.org">Jason Wright</A>.<br>
1.91 beck 401: protocols: ssh<br>
402: updated every 4 hours.<br>
1.121 deraadt 403: <p>
1.120 beck 404: <li><strong>CVSROOT=anoncvs@anoncvs.mx.openbsd.org:/cvs</strong><br>
405: Located at Campus Iztacala, Universidad Autonoma de Mexico<br>
1.149 miod 406: maintained by <A HREF="mailto:alex@iztacala.unam.mx">Alejandro Juarez</A>.<br>
1.120 beck 407: protocols: ssh<br>
408: updated every 3 hours.<br>
1.121 deraadt 409: <p>
1.128 beck 410: <li><strong>CVSROOT=anoncvs@anoncvs.pl.openbsd.org:/cvs</strong><br>
411: Host also known as <strong>anoncvs1.pl.openbsd.org</strong>,
412: <strong>incredible.bmtmc.gda.pl</strong><br>
1.126 beck 413: Located at BMT Maritime Consultants, Gdansk, Poland<br>
1.122 beck 414: maintained by <A HREF="mailto:detergent@incredible.bmtmc.gda.pl">
1.149 miod 415: Adam Naguszewski</A>.<br>
1.128 beck 416: protocols: ssh, pserver<br>
1.122 beck 417: updated every 3 hours.<br>
418: <p>
1.123 beck 419: <li><strong>CVSROOT=anoncvs@rt.fm:/cvs</strong><br>
1.136 miod 420: Located in Lake in the Hills, Illinois, USA<br>
1.123 beck 421: maintained by <A HREF="mailto:jcs@rt.fm">
1.149 miod 422: Joshua Stein</A>.<br>
1.123 beck 423: protocols: ssh<br>
1.124 beck 424: updated every 3 hours.<br>
1.131 beck 425: <P>
426: <li><strong>CVSROOT=anoncvs@shellhung.org:/cvs</strong><br>
427: Located in Hong Kong, China<br>
428: maintained by <A HREF="mailto:shell@shellhung.org">
1.149 miod 429: Shell Hung</A>.<br>
1.131 beck 430: protocols: pserver, ssh<br>
431: updated every 3 hours.<br>
1.123 beck 432: <p>
1.147 miod 433: <li><strong>CVSROOT=anoncvs@anoncvs.openbsd.org.ar:/cvs</strong><br>
1.137 beck 434: Located in Buenos Aires, Argentina<br>
1.138 beck 435: maintained by <A HREF="mailto:alejo@fibertel.com.ar">
1.147 miod 436: Alejo Sanchez</A> and
1.149 miod 437: <A HREF="mailto:claudio@core-sdi.com">Claudio Castiglia</A>.<br>
1.137 beck 438: protocols: ssh<br>
439: updated every 3 hours.<br>
440: <p>
1.149 miod 441: <li><strong>CVSROOT=anoncvs@cvs.openbsd.cz:/cvs</strong><br>
442: Located in Prague, Czech Republic<br>
443: maintained by <A HREF="mailto:vladya@openbsd.cz">Vladimir Kotal</A>.<br>
444: protocols: ssh, pserver.<br>
445: updated every 4 hours.<br>
1.152 beck 446: <p>
1.153 mickey 447: <li><strong>CVSROOT=anoncvs@anoncvs.openbsd.org.ua:/cvs</strong><br>
1.152 beck 448: Located in Kiev, Ukraine<br>
449: maintained by <A HREF="mailto:hunter@dg.net.ua">Sergey Smitienko</A>.<br>
450: protocols: ssh<br>
451: updated every 6 hours.<br>
1.73 deraadt 452: </ul>
1.84 beck 453:
454:
1.73 deraadt 455: <p>
1.135 naddy 456: <em>Note:</em> If your server is listed on here with inaccurate or
1.104 ericj 457: unknown information, please contact
1.135 naddy 458: <a href="mailto:beck@openbsd.org"><tt>beck@openbsd.org</tt></a>
1.104 ericj 459: </p>
460:
1.80 beck 461: <p>
1.104 ericj 462: You may want to use
1.135 naddy 463: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=traceroute&sektion=8&format=html">traceroute(8)</a>
1.104 ericj 464: to find out which server is nearest you.
1.11 michaels 465: Problems with a server should be reported to the <b>maintainer</b> of the
466: server in question.
1.135 naddy 467: </dl>
1.104 ericj 468:
1.155 ! jsyn 469: <h3><a name="CRYPTO"><font color="#0000e0">Getting crypto sources through
! 470: cvs(1)</font></a></h3>
1.104 ericj 471:
1.1 deraadt 472: <p>
473: <strong>IMPORTANT NOTE:</strong>
474: There are a few issues relating to cryptographic software that everyone
475: should be aware of:
476: <ul>
477: <li>The OpenBSD sources are from Canada.
1.9 deraadt 478: As
1.135 naddy 479: <a href="http://insight.mcmaster.ca/org/efc/pages/doc/crypto-export.html">
1.9 deraadt 480: researched by a Canadian individual</a>
481: and as
1.135 naddy 482: <a href="http://axion.physics.ubc.ca/ECL.html">
1.9 deraadt 483: described in the Export Control list of Canada</a>
484: is legal to export crypto software from Canada to the world.
1.1 deraadt 485: <p>
486: <li>However, if you are outside the USA or Canada, you should not
487: fetch the cryptographic sections of the OpenBSD sources from an
488: anoncvs server located in the USA. The files in question are...
489: <ul>
490: <li>src/kerberosIV/*
1.57 art 491: <li>src/lib/libdes/*
1.1 deraadt 492: <li>src/lib/libc/crypt/crypt.c
493: <li>src/lib/libc/crypt/morecrypt.c
1.36 deraadt 494: <li>src/sys/netinet
1.67 art 495: <li>src/usr.sbin/afs/src/rxkad/*
1.56 matthieu 496: <li>X11/xc/lib/Xdmcp/Wraphelp.c
1.1 deraadt 497: </ul>
498: Because of the USA ITAR munitions list,
499: crypto software may only be exported to Canada from the USA.
500: <p>
501: <li>The OpenBSD project is looking for more anoncvs servers -- read
502: on to find out how you can help.
503: </ul>
504:
1.155 ! jsyn 505: <h3><a name="EXAMPLE"><font color="#0000e0">Example usages for cvs(1)</font>
! 506: </a></h3>
1.104 ericj 507:
1.1 deraadt 508: <p>
1.135 naddy 509: A sample use of an anoncvs server would be:
510: <pre>
1.104 ericj 511: % <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
512: % <strong>cd /tmp</strong>
513: % <strong>cvs get src/sys/arch/sparc</strong>
1.12 grr 514: [copies the files from the repository to your machine]
1.104 ericj 515: % <strong>cvs log src/sys/arch/sparc/sparc/locore.s</strong>
1.135 naddy 516: [shows the commit log for the chosen file]
1.104 ericj 517: % <strong>cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s</strong>
1.12 grr 518: [shows the changes between revisions 1.1 and rev 1.5]
1.135 naddy 519: </pre>
1.1 deraadt 520:
521: <p>
1.155 ! jsyn 522: <a name="pserver">In order to use a cvs ``pserver'' (a direct TCP connection
! 523: instead of using ssh or rsh) you must login once:</a>
1.104 ericj 524:
1.135 naddy 525: <pre>
1.104 ericj 526: % <strong>setenv CVSROOT :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
527: % <strong>cvs login</strong>
1.59 beck 528: (Logging in to anoncvs@anoncvs1.ca.openbsd.org)
1.104 ericj 529: CVS password: <strong>anoncvs</strong>
1.135 naddy 530: [This writes a line to ~/.cvspass (filename over-ridden by CVS_PASSFILE).]
1.18 todd 531: [An example line from my ~/.cvspass after typing 'blah' for the above ]
532: [password is: ]
533: [:pserver:anoncvs@anoncvs5.usa.openbsd.org:/cvs Au'yc ]
1.135 naddy 534: [After logging in ONCE every other use of the above CVSROOT will work. ]
1.104 ericj 535: % <strong>cvs get ksrc-i386 ksrc-common</strong>
1.135 naddy 536: [Allows you to retrieve ONLY that necessary to rebuild an i386 kernel. ]
537: </pre>
1.18 todd 538:
539: <p>
1.39 todd 540: Here is how someone using anoncvs regularly would update his
1.1 deraadt 541: source tree:
1.60 millert 542: <ul><li>First, start out by `get'-ing an initial tree:
1.27 todd 543:
1.109 jason 544: <p> (If you are following <i>current</i>):
1.135 naddy 545: <pre>
546: # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
547: # <strong>cd /usr</strong>
548: # <strong>cvs -q get -PA src</strong>
549: </pre>
1.109 jason 550:
1.150 jufi 551: <p> (If you are following the patch branch for 2.9):
1.135 naddy 552: <pre>
553: # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
554: # <strong>cd /usr</strong>
1.150 jufi 555: # <strong>cvs -q get -rOPENBSD_2_9 -P src</strong>
1.135 naddy 556: </pre>
1.27 todd 557: </li>
1.37 todd 558:
1.27 todd 559: <li> Anytime afterwards, to `update' this tree:
1.109 jason 560: <p> (If you are following <i>current</i>):
1.135 naddy 561: <pre>
562: # <strong>cd /usr/src</strong>
563: # <strong>cvs -q up -PAd</strong>
564: </pre>
1.27 todd 565:
1.150 jufi 566: <p> (If you are following the patch branch for 2.9):
1.135 naddy 567: <pre>
568: # <strong>cd /usr/src</strong>
1.150 jufi 569: # <strong>cvs -q up -rOPENBSD_2_9 -Pd</strong>
1.135 naddy 570: </pre>
1.109 jason 571:
1.154 jsyn 572: Every time you ran this it would synchronize your /usr/src tree. It would
1.1 deraadt 573: not destroy any of your local changes, rather it would attempt to merge
574: changes in. If you use obj directories (not obj symbolic links) you may
575: wish to append "-I obj" to the cvs command line, this will keep cvs from
576: spitting out a warning about all the obj directories it is going to
577: encounter which are not in the repository.
1.72 millert 578:
579: <p>
1.109 jason 580: <li> NOTES: if you are updating a source tree that you initially fetched
1.72 millert 581: from a different server, or from a CD, you <strong>must</strong>
1.145 marc 582: add the <em>-d $CVSROOT</em> options to cvs. If you are following
1.109 jason 583: a patch branch, be sure to always <strong>omit</strong> the <code>-A</code>
584: flag to cvs, or you may find yourself tracking <i>current</i> instead.
1.72 millert 585:
1.109 jason 586: <p> (If you are following <i>current</i>):
1.135 naddy 587: <pre>
588: # <strong>cd /usr/src</strong>
589: # <strong>cvs -d $CVSROOT -q up -PAd</strong>
590: </pre>
1.72 millert 591:
1.109 jason 592: <p> (If you are following a patch branch):
1.135 naddy 593: <pre>
594: # <strong>cd /usr/src</strong>
595: # <strong>cvs -d $CVSROOT -q up -Pd</strong>
596: </pre>
1.109 jason 597:
1.27 todd 598: </li>
599: </ul>
600:
1.37 todd 601: <p>
1.135 naddy 602: To <a name="ports">use</a> <a href="ports.html">ports</a>, it is similar to src:
1.37 todd 603: <ul><li>
604: <pre>
1.135 naddy 605: # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
606: # <strong>cd /usr</strong>
607: # <strong>cvs -q get -PA ports</strong>
1.38 deraadt 608: </pre>
1.37 todd 609: </li>
610: <li> Anytime afterwards, to `update' this tree:
611: <pre>
1.135 naddy 612: # <strong>cd /usr</strong>
613: # <strong>cvs -q up -PAd ports</strong>
1.37 todd 614: </pre>
615: </li>
1.127 jufi 616: </ul>
1.37 todd 617:
1.104 ericj 618: In the above example, <i>-q</i> is optional, only intended to minimize
1.27 todd 619: cvs's output. For those who like to see screenfulls of output, it
620: can be omitted.
1.1 deraadt 621:
622: <p>
1.104 ericj 623: or to make a diff of a locally patched module (here <i>cd.c</i>) to include with
1.12 grr 624: a bug report:
1.135 naddy 625: <pre>
626: # <strong>cd /usr</strong>
627: # <strong>cvs diff -u src/sys/scsi/cd.c > /tmp/patch</strong>
628: </pre>
1.12 grr 629:
630: <p>
1.155 ! jsyn 631: The <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1&format=html">
! 632: cvs(1) man page</a>
1.104 ericj 633: (included with the CVS sources) has much more
1.1 deraadt 634: information about how CVS can be used.
635:
1.135 naddy 636: <h4>X11 Source tree</h4>
637:
1.1 deraadt 638: <p>
1.105 ericj 639: Anoncvs mirrors also carry the OpenBSD X11 source tree. You can adapt
640: the recipe above to update your X11 source tree from the second CD.
641: Either copy or use a union mount to get the X11 sources in <i>/usr/X11</i>:
642:
643: <ul>
644: <li>copy the tree off it (assuming the 2nd CD is mounted on /mnt):
645: <pre>
646: # <strong>cd /mnt; cp -Rp X11 /usr</strong>
647: </pre>
648: <li>use a union mount with the CD below a writable directory.
649: <pre>
650: # <strong>mount -t union -o -b /mnt/X11 /usr/X11</strong>
1.135 naddy 651: </pre>
652: </ul>
1.105 ericj 653:
654: After this, <i>/usr/X11</i> will be ready to be used by cvs. You can for
655: example update it to -current source (assuming you've already set
1.140 horacio 656: the <var>CVSROOT</var> environment variable):
1.105 ericj 657:
1.135 naddy 658: <pre>
1.105 ericj 659: # <strong>cd /usr/X11</strong>
660: # <strong>cvs -q update -PAd</strong>
1.135 naddy 661: </pre>
1.105 ericj 662:
663: <p>
1.12 grr 664: <strong>Warning:</strong>
665: When using cvs you should take care that your current directory is either
1.109 jason 666: the root of the tree you are referencing or in a separate place such as /tmp.
1.12 grr 667: Some commands such as "get" can create an arbitrary sub-tree in the current
668: directory, and a subsequent update will recursively flesh out this sub-tree.
669:
670: <p>
1.1 deraadt 671: The anoncvs service gives fledgling developers a chance to learn CVS
672: operation and get thoroughly involved in the development process
673: before getting "commit" access -- as a result of showing useful
674: skills and high quality results they will naturally later be given
675: developer access. As well, people providing patches can create
676: their "diff"s relative to the CVS tree, which will ease integration.
677:
1.104 ericj 678:
1.135 naddy 679: <h3><a name="WHICH"><font color="#0000e0">Use rsh(1) or ssh(1)?</font></a></h3>
1.104 ericj 680:
1.1 deraadt 681: <p>
1.15 grr 682: <strong>Anoncvs: rsh vs. ssh</strong>
1.12 grr 683: <br>
684: By default, the CVS client uses rsh to talk to the CVS server. Many
1.39 todd 685: of the CVS sites no longer support rsh for security reasons or a local
1.12 grr 686: problem like a firewall or imperfect protocol emulator such as slirp
687: may prevent you from using rsh.
1.142 naddy 688: The alternative is a to use a "secure shell" connection using
1.140 horacio 689: <a href="http://www.openssh.com/">OpenSSH</a>.
1.28 beck 690:
1.75 millert 691: <p>
692: Once ssh is installed, one sets the environment variable
1.135 naddy 693: <var>CVS_RSH</var> to point to ssh (typically
1.113 brad 694: <strong>/usr/bin/ssh</strong>). If your local site prevents you
1.28 beck 695: from connecting out to port 22 (which ssh defaults to using) use port
696: 2022.
1.1 deraadt 697:
698: <p>
699: Do not be tempted to turn on compression since CVS already compresses.
700: Use something like the following in your <strong>$HOME/.ssh/config</strong>
1.10 millert 701: file. Note that not all anoncvs servers allow ssh connections on
1.21 millert 702: port 2022. Also note that most anoncvs servers no longer accept
703: the <strong>none</strong> cipher as it is disabled in recent
704: versions of ssh for security reasons.
1.1 deraadt 705: <pre>
1.59 beck 706: Host anoncvs.ca.openbsd.org
1.1 deraadt 707: Port 2022
708: </pre>
709:
710: <p>
711: CVS is a little noisy starting up; to quiet it a bit you may want to
712: do this:
1.105 ericj 713:
1.135 naddy 714: <pre>
715: <strong>% setenv CVS_CLIENT_PORT -1</strong>
716: </pre>
1.1 deraadt 717:
718: <p>
1.155 ! jsyn 719: <h3><a name="SUP"><font color="#0000e0">Mirroring the CVS repository via
! 720: sup(1)</font></a></h3>
1.107 millert 721:
722: <p>
723: Users wishing to mirror the OpenBSD CVS tree itself may now do so
1.143 millert 724: from <em>anoncvs.usa.openbsd.org</em> or <em>anoncvs1.usa.openbsd.org</em>
725: (these are different machines). Note that this is the cvs tree,
726: <b>not</b> a checked out source tree. It is only useful if you
727: want to be able to do fast cvs operations (diff, annotate, etc) or
728: if you have multiple source trees and you only want to transfer new
729: data once (you can then checkout a tree from your local cvs mirror).
1.107 millert 730: <p>
731: A sample supfile would be:
732: <pre>
733: cvs host=anoncvs.usa.openbsd.org hostbase=/ base=/home delete
734: </pre>
735: <p>
736: which would mirror the cvs tree into /home/cvs with the sup data
1.133 millert 737: files ending up in /home/sup. The full OpenBSD cvs tree is currently
738: about 1.3 gigabytes in size.
1.65 matthieu 739:
1.155 ! jsyn 740: <h3><a name="MIRROR"><font color="#0000e0">Setting up an anoncvs mirror
! 741: </font></a></h3>
1.105 ericj 742:
1.107 millert 743: <p>
1.1 deraadt 744: If you wish to be a new anoncvs mirror site, please contact the anoncvs
1.135 naddy 745: <a href="mailto:sup@openbsd.org">maintainer</a>.
1.134 millert 746: Anoncvs mirrors require about 1.2GB of disk, and use up to 32MB of swap
1.1 deraadt 747: per anoncvs user (assuming the user does a large operation; while smaller
748: operations use fewer resources, anoncvs still makes much more of an
749: impact than ftp or sup). Such anoncvs machines should have excellent
750: network connectivity for the area they are expected to serve. A
1.135 naddy 751: <a href="anoncvs.shar">document</a>
1.1 deraadt 752: which describes the setup of anoncvs servers is available.
753:
1.135 naddy 754: <h3><font color="#0000e0">Final notes</font></h3>
1.60 millert 755: After upgrading your source tree, you should read the comments
1.154 jsyn 756: at the top of <KBD>/usr/src/Makefile</KBD> before attempting
1.60 millert 757: a build. Also, you should build a new kernel <strong>before</strong>
1.101 ericj 758: doing a <KBD>make build</KBD> if possible. In some cases it may be
1.60 millert 759: necessary to rebuild and install the <KBD>config</KBD> utility before
760: you can build the kernel. If <KBD>config GENERIC</KBD> fails this
761: is probably the case.
762: <p>
763: It is important to note that upgrading from a release to the current tree
764: by rebuilding the sources can be rather difficult due to dependencies
765: that are often not obvious. Therefore, it is suggested that you first
1.154 jsyn 766: install the latest snapshot before attempting a tree build from source.
1.1 deraadt 767:
768: <hr>
1.155 ! jsyn 769: <a href="index.html"><img height="24" width="24" src="back.gif" border="0"
! 770: alt="OpenBSD"></a>
1.135 naddy 771: <a href="mailto:www@openbsd.org">www@openbsd.org</a>
1.155 ! jsyn 772: <br><small>$OpenBSD: anoncvs.html,v 1.153 2001/08/03 15:20:44 mickey Exp $
! 773: </small>
1.1 deraadt 774:
775: </body>
776: </html>