[BACK]Return to anoncvs.html CVS log [TXT][DIR] Up to [local] / www

Annotation of www/anoncvs.html, Revision 1.175

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.162     horacio    10: <meta name="copyright" content="This document copyright 1996-2002 by OpenBSD.">
1.1       deraadt    11: </head>
                     12:
1.135     naddy      13: <body bgcolor="#ffffff" text="#000000" link="#23238e">
1.1       deraadt    14:
1.171     jsyn       15: <a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a>
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
1.169     miod       89: source up to date and issue queries against the central repository.
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&amp;apropos=0&amp;sektion=8&amp;manpath=OpenBSD+Current&amp;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&amp;sektion=1&amp;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&amp;sektion=1&amp;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
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.150     jufi      215:        # <b>cd /usr; cvs checkout -P -rOPENBSD_2_9 src</b>
1.135     naddy     216: </pre>
1.1       deraadt   217: <p>
1.150     jufi      218: Or OPENBSD_2_8 for 2.8, etc.
1.100     ericj     219:
1.150     jufi      220: <p> Currently only the OPENBSD_2_9 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.83      millert   248: <li><strong>CVSROOT=anoncvs@anoncvs1.usa.openbsd.org:/cvs</strong><br>
                    249: Host also known as <strong>anoncvs@anoncvs4.usa.openbsd.org</strong>.<br>
1.143     millert   250: located in Redwood City, California, western USA.<br>
1.135     naddy     251: maintained by <a href="mailto:millert@openbsd.org">Todd Miller</a>.<br>
1.143     millert   252: protocols: rsh, ssh, ssh port 2022, pserver.<br>
1.1       deraadt   253: updated every 4 hours.<br>
                    254: <p>
1.83      millert   255: <li><strong>CVSROOT=anoncvs@anoncvs.usa.openbsd.org:/cvs</strong><br>
                    256: Host also known as <strong>anoncvs3.usa.openbsd.org</strong>.<br>
1.1       deraadt   257: located at the University of Colorado, Boulder, western USA.<br>
1.148     millert   258: maintained by <a href="mailto:millert@openbsd.org">Todd Miller</a>.<br>
1.94      millert   259: protocols: rsh, ssh, ssh port 2022, pserver.<br>
1.144     millert   260: updated every 3 hours.<br>
1.1       deraadt   261: <p>
1.76      deraadt   262: <li><strong>CVSROOT=anoncvs@anoncvs5.usa.openbsd.org:/cvs</strong><br>
                    263: Host also known as <strong>squid.nas.nasa.gov</strong>.<br>
                    264: located at Ames Research Center, Moffett Field, California, USA.<br>
1.135     naddy     265: maintained by <a href="mailto:allison@mail.arc.nasa.gov">Tyler Allison</a>.<br>
1.77      deraadt   266: protocols: ssh only.<br>
                    267: updated every 3 hours.<br>
1.121     deraadt   268: <p>
1.84      beck      269: <li><strong>CVSROOT=anoncvs@mirror.arc.nasa.gov:/cvs</strong><br>
                    270: located at Ames Research Center, Moffett Field, California, USA.<br>
1.135     naddy     271: maintained by <a href="mailto:allison@mail.arc.nasa.gov">Tyler Allison</a>.<br>
1.84      beck      272: protocols: ssh only.<br>
                    273: updated every 3 hours.<br>
1.76      deraadt   274: <p>
1.31      deraadt   275: <li><strong>CVSROOT=anoncvs@anoncvs6.usa.openbsd.org:/cvs</strong><br>
                    276: Host also known as <strong>openbsd.citi.umich.edu</strong>.<br>
                    277: located at the University of Michigan, central USA.<br>
1.135     naddy     278: maintained by <a href="mailto:rees@umich.edu">Jim Rees</a>.<br>
1.31      deraadt   279: protocols: ssh, ssh port 2022.<br>
                    280: updated every 12 hours.<br>
                    281: <p>
1.24      deraadt   282: <li><strong>CVSROOT=anoncvs@anoncvs1.ca.openbsd.org:/cvs</strong><br>
1.40      beck      283: Host also known as <strong>anoncvs.ca.openbsd.org</strong>,
1.74      beck      284: <strong>openbsd.sunsite.ualberta.ca</strong><br>
1.24      deraadt   285: located in Edmonton, Alberta, Canada.<br>
1.149     miod      286: maintained by <A HREF="mailto:beck@ualberta.ca">Bob Beck</A>.<br>
1.53      beck      287: protocols: ssh, rsh, ssh port 2022, pserver<br>
1.45      beck      288: updated every 2 hours.<br>
1.24      deraadt   289: <p>
1.151     brad      290: <li><strong>CVSROOT=anoncvs@anoncvs.comstyle.com:/cvs</strong><br>
                    291: Host also known as <strong>openbsd.comstyle.com</strong><br>
                    292: located in Toronto, Ontario, Canada.<br>
                    293: maintained by <A HREF="mailto:brad@comstyle.com">Brad Smith</A>.<br>
                    294: protocols: ssh, ssh port 2022<br>
                    295: updated every 2 hours.<br>
                    296: <p>
1.1       deraadt   297: <li><strong>CVSROOT=anoncvs@anoncvs.tw.openbsd.org:/cvs</strong><br>
1.64      deraadt   298: Host also known as <strong>OpenBSD.csie.NCTU.edu.tw</strong>.<br>
1.1       deraadt   299: located in Taipei, Taiwan.<br>
1.135     naddy     300: maintained by <a href="mailto:lkchu@OpenBSD.csie.NCTU.edu.tw">Liang-Kai Chu</a>.<br>
1.1       deraadt   301: protocols: rsh, ssh, ssh port 2022.<br>
                    302: updated every 12 hours.<br>
                    303: <p>
                    304: <li><strong>CVSROOT=anoncvs@anoncvs.no.openbsd.org:/cvs</strong><br>
1.64      deraadt   305: Host also known as <strong>cvs.inet.no</strong>.<br>
1.1       deraadt   306: located in Norway.<br>
1.135     naddy     307: maintained by <a href="mailto:cvsadmin@inet.no">Michael Shuldman</a>.<br>
1.1       deraadt   308: protocols: rsh, ssh, ssh port 2022.<br>
                    309: updated every 4 hours.<br>
                    310: <p>
1.33      deraadt   311: <li><strong>CVSROOT=anoncvs@anoncvs.se.openbsd.org:/cvs</strong><br>
1.54      art       312: Host also known as <strong>anoncvs.stacken.kth.se</strong>.<br>
1.33      deraadt   313: located in Sweden.<br>
1.135     naddy     314: maintained by <a href="mailto:anoncvs@stacken.kth.se">Magnus Holmberg</a>.<br>
1.33      deraadt   315: protocols: rsh, ssh, ssh port 2022.<br>
1.57      art       316: updated every 3 hours.<br>
1.68      wvdputte  317: <p>
                    318: <li><strong>CVSROOT=anoncvs@anoncvs.be.openbsd.org:/cvs</strong><br>
                    319: Host also known as <strong>badlands.rug.ac.be</strong>.<br>
                    320: located in Belgium.<br>
1.135     naddy     321: maintained by <a href="mailto:wvdputte@reptile.rug.ac.be">Wim Vandeputte</a>.<br>
1.68      wvdputte  322: protocols: ssh, ssh port 2022.<br>
                    323: updated every 3 hours.<br>
1.69      deraadt   324: <p>
1.142     naddy     325: <li><strong>CVSROOT=anoncvs@anoncvs.nl.openbsd.org:/cvs</strong><br>
                    326: Host also known as <strong>anoncvs.calyx.nl</strong>.<br>
1.118     beck      327: located in Amsterdam, The Netherlands.<br>
1.142     naddy     328: maintained by <a href="mailto:nick@calyx.net">Nick Merrill</a> and
                    329: <a href="mailto:alex@calyx.nl">Alexander Grendel</a>.<br>
1.118     beck      330: protocols: ssh.<br>
                    331: updated every 3 hours.<br>
                    332: <p>
1.69      deraadt   333: <li><strong>CVSROOT=anoncvs@anoncvs.jp.openbsd.org:/cvs</strong><br>
                    334: Host also known as <strong>kankoromochi.econ.nagasaki-u.ac.jp</strong>.<br>
                    335: located at Nagasaki Univ. Faculty of Economics, JAPAN.<br>
1.135     naddy     336: maintained by <a href="mailto:sigh@net.nagasaki-u.ac.jp">SUZUKI Hitoshi</a>.<br>
1.79      deraadt   337: protocols: ssh, pserver.<br>
                    338: updated every 3 hours.<br>
1.121     deraadt   339: <p>
1.73      deraadt   340: <li><strong>CVSROOT=anoncvs@anoncvs.cz.openbsd.org:/cvs</strong><br>
                    341: Host also known as <strong>com-os2.ms.mff.cuni.cz</strong>.<br>
1.155     jsyn      342: located at Faculty Math &amp; Physics, Charles University, Prague, Czech
                    343: republic.<br>
                    344: maintained by <a href="mailto:galambos@com-os2.ms.mff.cuni.cz">Leo Galambos
                    345: </a>.<br>
1.73      deraadt   346: protocols: ssh, ssh port 2022.<br>
                    347: updated every 3 hours.<br>
1.121     deraadt   348: <p>
1.84      beck      349: <li><strong>CVSROOT=anoncvs@anoncvs1.au.openbsd.org:/cvs</strong><br>
                    350: Host also known as <strong>anoncvs.au.openbsd.org</strong>,
                    351: <strong>anoncvs.openbsd.aba.net.au</strong><br>
                    352: located in Carlton, Victoria, Australia.<br>
1.149     miod      353: maintained by <A HREF="mailto:mwp@aba.net.au">Micheal Paddon</A>.<br>
1.84      beck      354: protocols: ssh<br>
                    355: updated every 4 hours.<br>
1.121     deraadt   356: <p>
1.103     beck      357: <li><strong>CVSROOT :pserver:anoncvs@cvs.bsdfr.org:/cvs</strong><br>
1.141     naddy     358: located in France<br>
1.149     miod      359: maintained by: <a href="mailto:jch@oleane.net">Jean-Claude Christophe</a>.<br>
1.103     beck      360: protocols: pserver<br>
                    361: updated every 24h <br>
1.121     deraadt   362: <p>
1.161     naddy     363: <li><strong>CVSROOT=anoncvs@anoncvs.de.openbsd.org:/cvs</strong><br>
                    364: Host also known as <strong>grappa.unix-ag.uni-kl.de</strong>.<br>
1.115     beck      365: located at the University of Kaiserslautern, Germany<br>
1.161     naddy     366: maintained by <A HREF="mailto:hgw@d1906.inka.de">Hans-G&uuml;nter Weigand</A>
1.149     miod      367: and <A HREF="mailto:naddy@openbsd.org">Christian Weisgerber</A>.<br>
1.115     beck      368: protocols: rsh, ssh, ssh port 2022, pserver<br>
1.161     naddy     369: updated every 6 hours from cvsup.leo.org.<br>
1.121     deraadt   370: <p>
1.80      beck      371: <li><strong>CVSROOT=anoncvs@exokernel.lcs.mit.edu:/cvs</strong><br>
                    372: located at M.I.T, Eastern USA.<br>
                    373: maintained by ????<br>
                    374: protocols: ssh, ???<br>
                    375: updated every ? hours.<br>
1.121     deraadt   376: <p>
1.108     ho        377: <li><strong>CVSROOT=anoncvs@xyzzy.gsnig.org:/cvs</strong><br>
                    378: Located in G&ouml;teborg, Sweden<br>
1.149     miod      379: maintained by <A HREF="mailto:martin@openbsd.org">Martin Fredriksson</A>.<br>
1.108     ho        380: protocols: ssh port 2022<br>
                    381: updated every 4 hours.<br>
1.121     deraadt   382: <p>
1.80      beck      383: <li><strong>CVSROOT=anoncvs@stl-isaas.ey.com:/cvs</strong><br>
1.90      beck      384: Located in St. Louis, MO, Eastern USA<br>
1.149     miod      385: maintained by <A HREF="mailto:aaron11@sprynet.com">Aaron Miller</A>.<br>
1.81      beck      386: protocols: ssh, ssh port 2022, pserver<br>
                    387: updated every 3 hours.<br>
1.121     deraadt   388: <p>
1.91      beck      389: <li><strong>CVSROOT=anoncvs@openbsd.groupbsd.org:/cvs</strong><br>
1.92      jason     390: Located in Hillsborough NC, Eastern USA<br>
1.158     miod      391: maintained by <A HREF="mailto:randy@openbsd.org">Randy Lewis</A>
                    392: and <A HREF="mailto:jason@openbsd.org">Jason Wright</A>.<br>
                    393: protocols: ssh, pserver<br>
1.91      beck      394: updated every 4 hours.<br>
1.121     deraadt   395: <p>
1.120     beck      396: <li><strong>CVSROOT=anoncvs@anoncvs.mx.openbsd.org:/cvs</strong><br>
1.170     miod      397: Located at Campus Iztacala, Universidad Aut&oacute;noma de M&eacute;xico<br>
                    398: maintained by <A HREF="mailto:jcortes@openbsd.org.mx">Jorge A. Cort&eacute;s</A>.<br>
1.120     beck      399: protocols: ssh<br>
                    400: updated every 3 hours.<br>
1.121     deraadt   401: <p>
1.128     beck      402: <li><strong>CVSROOT=anoncvs@anoncvs.pl.openbsd.org:/cvs</strong><br>
                    403: Host also known as <strong>anoncvs1.pl.openbsd.org</strong>,
                    404: <strong>incredible.bmtmc.gda.pl</strong><br>
1.126     beck      405: Located at BMT Maritime Consultants, Gdansk, Poland<br>
1.122     beck      406: maintained by <A HREF="mailto:detergent@incredible.bmtmc.gda.pl">
1.149     miod      407: Adam Naguszewski</A>.<br>
1.128     beck      408: protocols: ssh, pserver<br>
1.122     beck      409: updated every 3 hours.<br>
                    410: <p>
1.123     beck      411: <li><strong>CVSROOT=anoncvs@rt.fm:/cvs</strong><br>
1.136     miod      412: Located in Lake in the Hills, Illinois, USA<br>
1.123     beck      413: maintained by <A HREF="mailto:jcs@rt.fm">
1.149     miod      414: Joshua Stein</A>.<br>
1.123     beck      415: protocols: ssh<br>
1.124     beck      416: updated every 3 hours.<br>
1.131     beck      417: <P>
                    418: <li><strong>CVSROOT=anoncvs@shellhung.org:/cvs</strong><br>
                    419: Located in Hong Kong, China<br>
                    420: maintained by <A HREF="mailto:shell@shellhung.org">
1.149     miod      421: Shell Hung</A>.<br>
1.131     beck      422: protocols: pserver, ssh<br>
                    423: updated every 3 hours.<br>
1.123     beck      424: <p>
1.149     miod      425: <li><strong>CVSROOT=anoncvs@cvs.openbsd.cz:/cvs</strong><br>
                    426: Located in Prague, Czech Republic<br>
                    427: maintained by <A HREF="mailto:vladya@openbsd.cz">Vladimir Kotal</A>.<br>
                    428: protocols: ssh, pserver.<br>
                    429: updated every 4 hours.<br>
1.152     beck      430: <p>
1.153     mickey    431: <li><strong>CVSROOT=anoncvs@anoncvs.openbsd.org.ua:/cvs</strong><br>
1.152     beck      432: Located in Kiev, Ukraine<br>
                    433: maintained by <A HREF="mailto:hunter@dg.net.ua">Sergey Smitienko</A>.<br>
                    434: protocols: ssh<br>
                    435: updated every 6 hours.<br>
1.164     miod      436: <p>
1.165     miod      437: <li><strong>CVSROOT=openbsd@openbsd.bug.it:/cvs</strong><br>
1.164     miod      438: Located in Modena, Italy<br>
                    439: maintained by <A HREF="mailto:jwk@bug.it">Giacomo Cariello</A>.<br>
1.165     miod      440: protocols: ssh, password "openbsd"<br>
1.164     miod      441: updated every 6 hours.<br>
1.73      deraadt   442: </ul>
1.84      beck      443:
                    444:
1.73      deraadt   445: <p>
1.135     naddy     446: <em>Note:</em> If your server is listed on here with inaccurate or
1.104     ericj     447: unknown information, please contact
1.135     naddy     448: <a href="mailto:beck@openbsd.org"><tt>beck@openbsd.org</tt></a>
1.104     ericj     449: </p>
                    450:
1.80      beck      451: <p>
1.104     ericj     452: You may want to use
1.135     naddy     453: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=traceroute&amp;sektion=8&amp;format=html">traceroute(8)</a>
1.104     ericj     454: to find out which server is nearest you.
1.11      michaels  455: Problems with a server should be reported to the <b>maintainer</b> of the
                    456: server in question.
1.135     naddy     457: </dl>
1.104     ericj     458:
1.155     jsyn      459: <h3><a name="CRYPTO"><font color="#0000e0">Getting crypto sources through
                    460: cvs(1)</font></a></h3>
1.104     ericj     461:
1.1       deraadt   462: <p>
                    463: <strong>IMPORTANT NOTE:</strong>
                    464: There are a few issues relating to cryptographic software that everyone
                    465: should be aware of:
                    466: <ul>
                    467: <li>The OpenBSD sources are from Canada.
1.9       deraadt   468: As
1.135     naddy     469:        <a href="http://insight.mcmaster.ca/org/efc/pages/doc/crypto-export.html">
1.9       deraadt   470:        researched by a Canadian individual</a>
                    471: and as
1.135     naddy     472:        <a href="http://axion.physics.ubc.ca/ECL.html">
1.9       deraadt   473:        described in the Export Control list of Canada</a>
1.156     ian       474: it is legal to export crypto software from Canada to the world.
1.1       deraadt   475: <p>
                    476: <li>However, if you are outside the USA or Canada, you should not
                    477: fetch the cryptographic sections of the OpenBSD sources from an
                    478: anoncvs server located in the USA. The files in question are...
                    479: <ul>
                    480: <li>src/kerberosIV/*
1.167     miod      481: <li>src/kerberosV/*
1.57      art       482: <li>src/lib/libdes/*
1.1       deraadt   483: <li>src/lib/libc/crypt/crypt.c
                    484: <li>src/lib/libc/crypt/morecrypt.c
1.167     miod      485: <li>src/sys/crypto
1.36      deraadt   486: <li>src/sys/netinet
1.67      art       487: <li>src/usr.sbin/afs/src/rxkad/*
1.167     miod      488: <li>XF4/xc-mit/lib/Xdmcp/Wraphelp.c
                    489: <li>XF4/xc-old/lib/Xdmcp/Wraphelp.c
                    490: <li>XF4/xc/lib/Xdmcp/Wraphelp.c
1.1       deraadt   491: </ul>
                    492: Because of the USA ITAR munitions list,
                    493: crypto software may only be exported to Canada from the USA.
                    494: <p>
                    495: <li>The OpenBSD project is looking for more anoncvs servers -- read
                    496: on to find out how you can help.
                    497: </ul>
                    498:
1.155     jsyn      499: <h3><a name="EXAMPLE"><font color="#0000e0">Example usages for cvs(1)</font>
                    500: </a></h3>
1.104     ericj     501:
1.163     chris     502: <P>
1.168     pvalchev  503: NOTICE: If you want to update a branch (such as a patch branch)
1.169     miod      504: to <i>current</i>, you would add the <code>-A</code>
1.163     chris     505: flag to cvs, but this flag is of little use otherwise.   Some older
                    506: versions of the OpenBSD documentation recommended use of this flag
                    507: in many examples. We no longer recommend this flag unless absolutely necessary.
                    508:
1.1       deraadt   509: <p>
1.135     naddy     510: A sample use of an anoncvs server would be:
                    511: <pre>
1.104     ericj     512: % <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
                    513: % <strong>cd /tmp</strong>
                    514: % <strong>cvs get src/sys/arch/sparc</strong>
1.12      grr       515:     [copies the files from the repository to your machine]
1.104     ericj     516: % <strong>cvs log src/sys/arch/sparc/sparc/locore.s</strong>
1.135     naddy     517:     [shows the commit log for the chosen file]
1.104     ericj     518: % <strong>cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s</strong>
1.12      grr       519:     [shows the changes between revisions 1.1 and rev 1.5]
1.135     naddy     520: </pre>
1.1       deraadt   521:
                    522: <p>
1.155     jsyn      523: <a name="pserver">In order to use a cvs ``pserver'' (a direct TCP connection
                    524: instead of using ssh or rsh) you must login once:</a>
1.104     ericj     525:
1.135     naddy     526: <pre>
1.104     ericj     527: % <strong>setenv CVSROOT :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
                    528: % <strong>cvs login</strong>
1.59      beck      529: (Logging in to anoncvs@anoncvs1.ca.openbsd.org)
1.104     ericj     530: CVS password: <strong>anoncvs</strong>
1.135     naddy     531:     [This writes a line to ~/.cvspass (filename over-ridden by CVS_PASSFILE).]
1.18      todd      532:     [An example line from my ~/.cvspass after typing 'blah' for the above    ]
                    533:     [password is:                                                            ]
                    534:     [:pserver:anoncvs@anoncvs5.usa.openbsd.org:/cvs Au'yc                    ]
1.135     naddy     535:     [After logging in ONCE every other use of the above CVSROOT will work.   ]
1.104     ericj     536: % <strong>cvs get ksrc-i386 ksrc-common</strong>
1.135     naddy     537:     [Allows you to retrieve ONLY that necessary to rebuild an i386 kernel.   ]
                    538: </pre>
1.18      todd      539:
                    540: <p>
1.39      todd      541: Here is how someone using anoncvs regularly would update his
1.1       deraadt   542: source tree:
1.60      millert   543: <ul><li>First, start out by `get'-ing an initial tree:
1.27      todd      544:
1.109     jason     545: <p> (If you are following <i>current</i>):
1.135     naddy     546: <pre>
                    547:        # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
                    548:        # <strong>cd /usr</strong>
1.163     chris     549:        # <strong>cvs -q get -P src</strong>
1.135     naddy     550: </pre>
1.109     jason     551:
1.150     jufi      552: <p> (If you are following the patch branch for 2.9):
1.135     naddy     553: <pre>
                    554:        # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
                    555:        # <strong>cd /usr</strong>
1.150     jufi      556:        # <strong>cvs -q get -rOPENBSD_2_9 -P src</strong>
1.135     naddy     557: </pre>
1.27      todd      558: </li>
1.37      todd      559:
1.27      todd      560: <li> Anytime afterwards, to `update' this tree:
1.109     jason     561: <p> (If you are following <i>current</i>):
1.135     naddy     562: <pre>
                    563:        # <strong>cd /usr/src</strong>
1.163     chris     564:        # <strong>cvs -q up -Pd</strong>
1.135     naddy     565: </pre>
1.27      todd      566:
1.150     jufi      567: <p> (If you are following the patch branch for 2.9):
1.135     naddy     568: <pre>
                    569:        # <strong>cd /usr/src</strong>
1.150     jufi      570:        # <strong>cvs -q up -rOPENBSD_2_9 -Pd</strong>
1.135     naddy     571: </pre>
1.109     jason     572:
1.154     jsyn      573: Every time you ran this it would synchronize your /usr/src tree. It would
1.1       deraadt   574: not destroy any of your local changes, rather it would attempt to merge
                    575: changes in. If you use obj directories (not obj symbolic links) you may
                    576: wish to append "-I obj" to the cvs command line, this will keep cvs from
                    577: spitting out a warning about all the obj directories it is going to
                    578: encounter which are not in the repository.
1.72      millert   579:
                    580: <p>
1.163     chris     581: <li> NOTE:
                    582: If you are updating a source tree that you initially fetched
1.72      millert   583: from a different server, or from a CD, you <strong>must</strong>
1.163     chris     584: add the <em>-d $CVSROOT</em> options to cvs.
1.135     naddy     585: <pre>
                    586:        # <strong>cd /usr/src</strong>
                    587:        # <strong>cvs -d $CVSROOT -q up -Pd</strong>
                    588: </pre>
1.27      todd      589: </li>
                    590: </ul>
                    591:
1.37      todd      592: <p>
1.135     naddy     593: To <a name="ports">use</a> <a href="ports.html">ports</a>, it is similar to src:
1.37      todd      594: <ul><li>
1.157     heko      595: <p> (If you are following <i>current</i>):
1.37      todd      596: <pre>
1.135     naddy     597:        # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
                    598:        # <strong>cd /usr</strong>
1.163     chris     599:        # <strong>cvs -q get -P ports</strong>
1.38      deraadt   600: </pre>
1.37      todd      601: </li>
1.157     heko      602: <p> (If you are following the patch branch for 2.9):
                    603: <pre>
                    604:        # <strong>setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs</strong>
                    605:        # <strong>cd /usr</strong>
                    606:        # <strong>cvs -q get -rOPENBSD_2_9 -P ports</strong>
                    607: </pre>
1.37      todd      608: <li> Anytime afterwards, to `update' this tree:
1.157     heko      609: <p> (If you are following <i>current</i>):
1.37      todd      610: <pre>
1.135     naddy     611:        # <strong>cd /usr</strong>
1.163     chris     612:        # <strong>cvs -q up -Pd ports</strong>
1.157     heko      613: </pre>
                    614: <p> (If you are following the patch branch for 2.9):
                    615: <pre>
                    616:        # <strong>cd /usr</strong>
                    617:        # <strong>cvs -q up -rOPENBSD_2_9 ports</strong>
                    618: </pre>
1.37      todd      619: </li>
1.127     jufi      620: </ul>
1.37      todd      621:
1.104     ericj     622: In the above example, <i>-q</i> is optional, only intended to minimize
1.27      todd      623: cvs's output.  For those who like to see screenfulls of output, it
                    624: can be omitted.
1.1       deraadt   625:
                    626: <p>
1.104     ericj     627: or to make a diff of a locally patched module (here <i>cd.c</i>) to include with
1.12      grr       628: a bug report:
1.135     naddy     629: <pre>
                    630:        # <strong>cd /usr</strong>
                    631:        # <strong>cvs diff -u src/sys/scsi/cd.c &gt; /tmp/patch</strong>
                    632: </pre>
1.12      grr       633:
                    634: <p>
1.155     jsyn      635: The <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&amp;sektion=1&amp;format=html">
                    636: cvs(1) man page</a>
1.104     ericj     637: (included with the CVS sources) has much more
1.1       deraadt   638: information about how CVS can be used.
                    639:
1.135     naddy     640: <h4>X11 Source tree</h4>
                    641:
1.1       deraadt   642: <p>
1.163     chris     643: Anoncvs mirrors also carry the OpenBSD X11 (XFree86) source tree. You can adapt
1.172     miod      644: the recipe above to update your XFree86 source tree from the third CD.
1.163     chris     645: You can copy or download the XFree86 3 source tree with the X11 cvs module,
                    646: although the current module containing XFree86 4 is XF4.
                    647: There are two ways to get the XF4 sources to <i>/usr/XF4</i>:
1.105     ericj     648:
                    649: <ul>
1.173     miod      650: <li>copy the tree off the CD (assuming the 3rd CD is mounted on /mnt):
1.105     ericj     651: <pre>
1.163     chris     652:         # <strong>cd /mnt; cp -Rp XF4 /usr</strong>
1.105     ericj     653: </pre>
                    654: <li>use a union mount with the CD below a writable directory.
                    655: <pre>
1.163     chris     656:         # <strong>mount -t union -o -b /mnt/XF4 /usr/XF4</strong>
1.135     naddy     657: </pre>
                    658: </ul>
1.105     ericj     659:
1.163     chris     660: After this, <i>/usr/XF4</i> will be ready to be used by cvs. You can for
1.105     ericj     661: example update it to -current source (assuming you've already set
1.140     horacio   662: the <var>CVSROOT</var> environment variable):
1.105     ericj     663:
1.135     naddy     664: <pre>
1.163     chris     665:         # <strong>cd /usr/XF4</strong>
                    666:         # <strong>cvs -q update -Pd</strong>
1.135     naddy     667: </pre>
1.105     ericj     668:
                    669: <p>
1.12      grr       670: <strong>Warning:</strong>
                    671: When using cvs you should take care that your current directory is either
1.109     jason     672: the root of the tree you are referencing or in a separate place such as /tmp.
1.12      grr       673: Some commands such as "get" can create an arbitrary sub-tree in the current
                    674: directory, and a subsequent update will recursively flesh out this sub-tree.
                    675:
                    676: <p>
1.1       deraadt   677: The anoncvs service gives fledgling developers a chance to learn CVS
                    678: operation and get thoroughly involved in the development process
                    679: before getting "commit" access -- as a result of showing useful
                    680: skills and high quality results they will naturally later be given
                    681: developer access.  As well, people providing patches can create
                    682: their "diff"s relative to the CVS tree, which will ease integration.
                    683:
1.104     ericj     684:
1.135     naddy     685: <h3><a name="WHICH"><font color="#0000e0">Use rsh(1) or ssh(1)?</font></a></h3>
1.104     ericj     686:
1.1       deraadt   687: <p>
1.159     jcs       688: By default, the CVS client uses ssh ("secure shell":
                    689: <a href="http://www.openssh.com/">OpenSSH</a>) to talk to the CVS server.
                    690:
                    691: <p>
                    692: Many of the CVS sites no longer support rsh for security reasons.  Local
                    693: problems like firewalls or imperfect protocol emulators such as slirp may
                    694: also hinder rsh usage.  However, if rsh is desired, one must set the
                    695: <var>CVS_RSH</var> environment variable to point to rsh
                    696: (typically <strong>/usr/bin/rsh</strong>).
                    697:
                    698: <p>
                    699: If local policy prevents outgoing connections to ssh's default port of 22,
                    700: port 2022 may be used in its place.  Note, however, that not all anoncvs
                    701: servers accept ssh connections on this port.  Furthermore, most anoncvs servers
                    702: no longer accept the <strong>none</strong> cipher, as it is disabled in
1.169     miod      703: recent versions of ssh for security reasons.  Also, do not be tempted
1.159     jcs       704: to turn on compression: CVS already compresses.
                    705:
                    706: <p>
                    707: One could specify something like the following in the
                    708: <strong>$HOME/.ssh/config</strong> configuration file to avoid the pitfalls
                    709: and restrictions mentioned above:
1.1       deraadt   710: <pre>
1.59      beck      711:        Host anoncvs.ca.openbsd.org
1.159     jcs       712:            Compression no
1.1       deraadt   713:            Port 2022
                    714: </pre>
                    715:
                    716: <p>
                    717: CVS is a little noisy starting up; to quiet it a bit you may want to
                    718: do this:
1.105     ericj     719:
1.135     naddy     720: <pre>
                    721:        <strong>% setenv CVS_CLIENT_PORT -1</strong>
                    722: </pre>
1.1       deraadt   723:
                    724: <p>
1.155     jsyn      725: <h3><a name="SUP"><font color="#0000e0">Mirroring the CVS repository via
                    726: sup(1)</font></a></h3>
1.107     millert   727:
                    728: <p>
                    729: Users wishing to mirror the OpenBSD CVS tree itself may now do so
1.143     millert   730: from <em>anoncvs.usa.openbsd.org</em> or <em>anoncvs1.usa.openbsd.org</em>
                    731: (these are different machines).  Note that this is the cvs tree,
                    732: <b>not</b> a checked out source tree.  It is only useful if you
                    733: want to be able to do fast cvs operations (diff, annotate, etc) or
                    734: if you have multiple source trees and you only want to transfer new
                    735: data once (you can then checkout a tree from your local cvs mirror).
1.107     millert   736: <p>
                    737: A sample supfile would be:
                    738: <pre>
                    739:        cvs host=anoncvs.usa.openbsd.org hostbase=/ base=/home delete
                    740: </pre>
                    741: <p>
                    742: which would mirror the cvs tree into /home/cvs with the sup data
1.133     millert   743: files ending up in /home/sup.  The full OpenBSD cvs tree is currently
                    744: about 1.3 gigabytes in size.
1.65      matthieu  745:
1.155     jsyn      746: <h3><a name="MIRROR"><font color="#0000e0">Setting up an anoncvs mirror
                    747: </font></a></h3>
1.105     ericj     748:
1.107     millert   749: <p>
1.1       deraadt   750: If you wish to be a new anoncvs mirror site, please contact the anoncvs
1.135     naddy     751: <a href="mailto:sup@openbsd.org">maintainer</a>.
1.134     millert   752: Anoncvs mirrors require about 1.2GB of disk, and use up to 32MB of swap
1.1       deraadt   753: per anoncvs user (assuming the user does a large operation; while smaller
                    754: operations use fewer resources, anoncvs still makes much more of an
                    755: impact than ftp or sup).  Such anoncvs machines should have excellent
                    756: network connectivity for the area they are expected to serve.  A
1.135     naddy     757: <a href="anoncvs.shar">document</a>
1.1       deraadt   758: which describes the setup of anoncvs servers is available.
                    759:
1.135     naddy     760: <h3><font color="#0000e0">Final notes</font></h3>
1.60      millert   761: After upgrading your source tree, you should read the comments
1.154     jsyn      762: at the top of <KBD>/usr/src/Makefile</KBD> before attempting
1.60      millert   763: a build.  Also, you should build a new kernel <strong>before</strong>
1.101     ericj     764: doing a <KBD>make build</KBD> if possible.  In some cases it may be
1.60      millert   765: necessary to rebuild and install the <KBD>config</KBD> utility before
                    766: you can build the kernel.  If <KBD>config GENERIC</KBD> fails this
                    767: is probably the case.
                    768: <p>
                    769: It is important to note that upgrading from a release to the current tree
                    770: by rebuilding the sources can be rather difficult due to dependencies
                    771: that are often not obvious.  Therefore, it is suggested that you first
1.154     jsyn      772: install the latest snapshot before attempting a tree build from source.
1.1       deraadt   773:
                    774: <hr>
1.155     jsyn      775: <a href="index.html"><img height="24" width="24" src="back.gif" border="0"
                    776: alt="OpenBSD"></a>
1.135     naddy     777: <a href="mailto:www@openbsd.org">www@openbsd.org</a>
1.175   ! miod      778: <br><small>$OpenBSD: anoncvs.html,v 1.174 2002/07/23 00:50:48 miod Exp $
1.155     jsyn      779: </small>
1.1       deraadt   780:
                    781: </body>
                    782: </html>