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

Annotation of www/anoncvs.html, Revision 1.185

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