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