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

Annotation of www/cvsync.html, Revision 1.143

1.58      sthen       1: <!-- DO NOT EDIT MANUALLY! See comments in www/build/mirrors.dat for details -->
1.37      steven      2:
1.6       naddy       3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1.1       espie       4: <html>
                      5: <head>
1.125     tj          6: <title>OpenBSD: CVSync</title>
1.6       naddy       7: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
1.140     tj          8: <meta name="copyright" content="This document copyright 2003-2018 by OpenBSD.">
1.121     tb          9: <meta name="viewport" content="width=device-width, initial-scale=1">
                     10: <link rel="stylesheet" type="text/css" href="openbsd.css">
1.128     tb         11: <link rel="canonical" href="https://www.openbsd.org/cvsync.html">
1.1       espie      12: </head>
                     13:
1.143   ! tj         14: <h2 id=OpenBSD>
1.122     tb         15: <a href="index.html">
1.143   ! tj         16: <i>Open</i><b>BSD</b></a>
        !            17: Source Repository Access: CVSync and rsync
1.121     tb         18: </h2>
1.1       espie      19: <hr>
1.121     tb         20: <p>
1.1       espie      21:
1.138     sthen      22: OpenBSD uses the CVS version control system.
                     23: It is described in more detail <a href="anoncvs.html#CVS">here</a>.
                     24: The <a href="https://man.openbsd.org/cvs">cvs(1)</a> command is used
                     25: to checkout a working tree and perform standard operations (log, diff, etc).
                     26: It can either contact an CVS server (in most cases this will be an OpenBSD
                     27: <a href="anoncvs.html">anoncvs</a> server), or operate against a local
                     28: copy of the repository.
1.1       espie      29:
                     30: <p>
1.138     sthen      31: If you would like to operate a local anoncvs server, use cvs(1) commands
                     32: offline, or simply have faster access, you may use CVSync or rsync to
                     33: fetch a local copy of the repository.
1.1       espie      34:
1.138     sthen      35: <h3 id="CVSync">What Is CVSync?</h3>
1.1       espie      36:
1.138     sthen      37: <b>CVSync</b> is a software package specifically used for distributing
                     38: and updating <a href="https://man.openbsd.org/cvs">cvs(1)</a> repositories.
                     39: As it has knowledge of the file format it can operate more efficiently
                     40: than a general-purpose file synchronization program, however it is not
                     41: bug-free and can have problems updating at times.
1.1       espie      42:
1.138     sthen      43: <p>
                     44: The client <tt>cvsync</tt> runs on each user's machine (typically from
                     45: a <a href="https://man.openbsd.org/cron">cron(8)</a> job), and fetches
                     46: from a server running <tt>cvsyncd</tt>.
1.1       espie      47:
1.131     tb         48: <h3 id="starting">Getting Started Using CVSync</h3>
1.1       espie      49:
1.138     sthen      50: <p>
                     51: CVS is part of OpenBSD's base system.
                     52: CVSync is an entirely different program and can be installed from
                     53: packages:
                     54:
1.142     solene     55: <pre class="cmdbox">
                     56: # <b>pkg_add cvsync</b>
1.138     sthen      57: </pre>
1.1       espie      58:
1.138     sthen      59: Do not build your own copy from unmodified upstream source -
1.116     sthen      60: the port/package has been modified to support commitid which is now
                     61: used in the OpenBSD repository.
1.1       espie      62:
                     63: <p>
                     64: In order to mirror the OpenBSD repository with CVSync,
                     65: the following configuration file might be used:
                     66:
1.142     solene     67: <pre class="cmdbox">
                     68: config {
                     69:     hostname anoncvs.eu.openbsd.org
                     70:     # If your network link is a T1 or faster, comment out the following line.
                     71:     compress
                     72:     collection {
                     73:        name openbsd release rcs
                     74:        prefix /cvs
                     75:        umask 002
                     76:     }
                     77: }
1.1       espie      78: </pre>
                     79:
                     80: <p>
1.138     sthen      81: This directs cvsync to fetch or refresh all OpenBSD distributions from
1.124     tb         82: <b>anoncvs.eu.openbsd.org</b> with a
1.137     tb         83: <a href="https://man.openbsd.org/umask">umask(2)</a> that permits group write
1.1       espie      84: permission to the local repository.
1.138     sthen      85: The local copy of the files are stored in <tt>/cvs</tt>.
1.1       espie      86:
                     87: <p>
                     88: Assuming this file is saved as <tt>cvs-syncfile</tt>, the
                     89: following command would be used to invoke cvsync
1.124     tb         90:
1.142     solene     91: <pre class="cmdbox">
                     92: $ <b>cvsync -c cvs-syncfile</b>
1.1       espie      93: </pre>
                     94:
1.138     sthen      95: <h3 id="rsync">Getting Started Using Rsync</h3>
                     96:
                     97: Some repository mirrors offer access via rsync, a general-purpose
                     98: file synchronization program.
                     99: Again this should be installed from packages.
                    100: Two flavours are available:
                    101:
1.142     solene    102: <pre class="cmdbox">
                    103: # <b>pkg_add rsync</b>
                    104: Ambiguous: choose package for rsync
                    105: a      0: <None>
                    106:        1: rsync-3.1.2p0
                    107:        2: rsync-3.1.2p0-iconv
                    108: Your choice:
1.138     sthen     109: </pre>
                    110:
                    111: Unless you have other requirements, simply install the standard version
                    112: (option 1 on the list above).
                    113: You can select the flavour on the command-line to avoid
                    114: <a href="//man.openbsd.org/pkg_add">pkg_add(1)</a> prompting for the
                    115: version like so:
1.142     solene    116: <pre class="cmdbox">
                    117: # <b>pkg_add rsync--</b>
1.138     sthen     118: </pre>
                    119:
                    120: In order to mirror the OpenBSD repository with rsync,
                    121: the following command line might be used:
                    122:
1.142     solene    123: <pre class="cmdbox">
                    124: $ <b>rsync -avz --delete rsync://obsdacvs.cs.toronto.edu/obsdcvs/ /cvs/</b>
1.138     sthen     125: </pre>
                    126:
1.131     tb        127: <h3 id="using">Using CVS to Work With Your Repository</h3>
1.1       espie     128:
1.48      nick      129: Now that you have a local copy of the CVS repository, it is now simple
                    130: to check out, update, or do any of the other CVS operations you would
                    131: normally do against a remote repository, locally.
1.50      nick      132: For example:
1.142     solene    133: <pre class="cmdbox">
                    134: $ <b>cvs -d/cvs checkout -P src</b>
                    135: $ <b>cvs -d/cvs up -Pd</b>
                    136: $ <b>cvs -d/cvs diff -u file.c</b>
1.1       espie     137: </pre>
1.48      nick      138: More details on CVS operation can be found in
                    139: <a href="faq/faq5.html#BldGetSrc">FAQ5, Fetching appropriate source
                    140: code</a> and in the
1.137     tb        141: <a href="https://man.openbsd.org/cvs">cvs(1)</a>
1.48      nick      142: man page.
1.1       espie     143:
1.138     sthen     144: <h3 id="CVSROOT">Available Repository Servers</h3>
1.1       espie     145:
1.138     sthen     146: The following CVSync and rsync repository servers are available:
1.1       espie     147:
1.6       naddy     148: <ul>
1.107     brad      149: <li><strong>anoncvs.comstyle.com</strong><br>
                    150: Location: Toronto, Canada.<br>
                    151: Maintained by <a href="mailto:brad@comstyle.com">Brad Smith</a>.<br>
                    152: Updated hourly.<br>
                    153: <p>
1.136     krw       154: <li><strong>obsdacvs.cs.toronto.edu</strong><br>
1.138     sthen     155: <strong>rsync://obsdacvs.cs.toronto.edu/obsdcvs/</strong><br>
1.110     nick      156: Location: University of Toronto, Toronto, ON, Canada.<br>
                    157: Maintained by <a href="mailto:nick@holland-consulting.net">Nick Holland</a>.<br>
                    158: Updated every 2 hours.<br>
                    159: <p>
1.88      sthen     160: <li><strong>anoncvs.fr.openbsd.org</strong><br>
1.138     sthen     161: <strong>rsync://anoncvs.fr.openbsd.org/openbsd-cvs/</strong><br>
1.88      sthen     162: Location: Paris, France.<br>
1.117     sthen     163: Maintained by <a href="mailto:openbsd-mirror@bsdfrog.org">Landry Breuil, Antoine Jacoutot</a>.<br>
1.88      sthen     164: Updated every 2 hours from anoncvs1.ca.openbsd.org.<br>
                    165: <p>
1.138     sthen     166: <li><a href="https://mirror.osn.de/"><strong>mirror.osn.de</strong></a><br>
                    167: <strong>rsync://mirror.osn.de/openbsd-all/</strong><br>
1.37      steven    168: Location: N&uuml;rnberg, Germany.<br>
                    169: Maintained by <a href="mailto:aw@osn.de">Armin Wolfermann</a>.<br>
1.62      sthen     170: Updated every 3 hours.<br>
1.1       espie     171: <p>
1.112     florian   172: <li><strong>ftp.hostserver.de</strong><br>
1.138     sthen     173: <strong>rsync://ftp.hostserver.de/cvsync/</strong><br>
1.112     florian   174: Location: Frankfurt, Germany.<br>
1.130     tb        175: Maintained by <a href="mailto:mirror@hostserver.de">Sebastian Benoit, Peter Hessler</a>.<br>
1.112     florian   176: Updated hourly from anoncvs1.ca.openbsd.org.<br>
                    177: <p>
1.90      sthen     178: <li><a href="http://www.allbsd.org/"><strong>cvsync.allbsd.org</strong></a><br>
1.37      steven    179: Location: Tokyo, Japan.<br>
                    180: Maintained by <a href="mailto:hrs@allbsd.org">Hiroki Sato</a>.<br>
1.69      sthen     181: <p>
1.77      sthen     182: <li><strong>anoncvs.eu.openbsd.org</strong><br>
1.138     sthen     183: <strong>rsync://anoncvs.eu.openbsd.org/OpenBSD-cvs/</strong><br>
1.77      sthen     184: Location: Stockholm University, Stockholm, Sweden.<br>
1.138     sthen     185: Maintained by <a href="mailto:jj@deadzoft.org">Janne Johansson</a>.<br>
1.77      sthen     186: Updated every 2 hours.<br>
                    187: <p>
1.141     sthen     188: <li><strong>anoncvs.spacehopper.org (rsync only, no cvsync)</strong><br>
1.138     sthen     189: <strong>rsync://anoncvs.spacehopper.org/OpenBSD-CVS/</strong><br>
1.141     sthen     190: Location: Plymouth, United Kingdom.<br>
1.77      sthen     191: Maintained by <a href="mailto:sthen@openbsd.org">Stuart Henderson</a>.<br>
                    192: Updated hourly from anoncvs.ca.openbsd.org.<br>
                    193: <p>
1.127     millert   194: <li><strong>anoncvs4.usa.openbsd.org</strong><br>
                    195: Location: New York Internet, New York, NY, USA.<br>
                    196: Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br>
                    197: Updated hourly.<br>
                    198: <p>
1.118     sthen     199: <li><strong>anoncvs2.usa.openbsd.org</strong><br>
1.142     solene    200: Host also known as <strong>anoncvs3.usa.openbsd.org, ftp3.usa.openbsd.org, ftp5.usa.openbsd.org, openbsd.se.rit.edu</strong>.<br>
1.118     sthen     201: Location: Rochester Institute of Technology, Rochester, NY, USA.<br>
                    202: Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br>
                    203: Updated hourly.<br>
                    204: <p>
1.77      sthen     205: <li><strong>anoncvs1.usa.openbsd.org</strong><br>
1.138     sthen     206: Host also known as <strong>anoncvs.usa.openbsd.org</strong>.<br>
1.118     sthen     207: Location: Network Media, LLC, Bend, OR, USA.<br>
1.77      sthen     208: Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br>
1.118     sthen     209: Updated hourly.<br>
1.77      sthen     210: <p>
1.29      grunk     211:
1.12      sturm     212: </ul>
                    213:
1.2       naddy     214: <em>Note:</em> If your server is listed on here with inaccurate or
1.1       espie     215: unknown information, please contact <a
1.138     sthen     216: href="mailto:mirrors-discuss@openbsd.org"><tt>mirrors-discuss@openbsd.org</tt></a>
1.124     tb        217:
1.1       espie     218: <p>
1.137     tb        219: You may want to use <a href="https://man.openbsd.org/traceroute">traceroute(8)</a>
1.1       espie     220: to find out which server is nearest you.
                    221: Problems with a server should be reported to the <b>maintainer</b> of the
                    222: server in question.
1.124     tb        223:
1.1       espie     224: <p>
1.139     nayden    225: As of December 2017, the CVS repository sizes are:
1.124     tb        226:
                    227: <p>
1.1       espie     228: <table>
                    229: <tr><td width="20"></td>
                    230:     <td><strong>openbsd-ports</strong></td>
1.139     nayden    231:     <td>- <b>1220</b>MB</td></tr>
1.1       espie     232: <tr><td></td>
                    233:     <td><strong>openbsd-src</strong></td>
1.139     nayden    234:     <td>- <b>2865</b>MB</td></tr>
1.1       espie     235: <tr><td></td>
                    236:     <td><strong>openbsd-www</strong></td>
1.139     nayden    237:     <td>- <b>704</b>MB</td></tr>
1.48      nick      238: <tr><td></td>
                    239:     <td><strong>openbsd-xenocara</strong></td>
1.139     nayden    240:     <td>- <b>1658</b>MB</td></tr>
1.1       espie     241: <tr><td></td>
                    242:     <td><strong>openbsd-cvsroot</strong></td>
1.139     nayden    243:     <td>- <b>158</b>MB</td></tr>
1.1       espie     244: </table>
1.124     tb        245:
1.1       espie     246: <p>
                    247: The overall repository size currently increases at a rate
1.95      tedu      248: of about <b>400</b>MB per annum. The src repository increases by about
                    249: <b>150</b>MB.
1.124     tb        250:
1.1       espie     251: <p>
                    252: <strong>IMPORTANT NOTE:</strong>
                    253: There are a few issues relating to cryptographic software that everyone
                    254: should be aware of:
1.124     tb        255:
1.1       espie     256: <ul>
                    257:   <li>
                    258:     <p>
                    259:     The OpenBSD sources are from Canada. As
                    260:     <a href="http://www.efc.ca/pages/doc/crypto-export.html">
                    261:     researched by a Canadian individual</a> and as
                    262:     <a href="http://axion.physics.ubc.ca/ECL.html">
                    263:     described in the Export Control list of Canada</a>,
                    264:     it is legal to export crypto software from Canada to the world.
                    265:   </li>
                    266:   <li>
                    267:     <p>
                    268:     However, if you are outside the USA or Canada, you should not
1.8       naddy     269:     fetch the cryptographic sections of the OpenBSD sources from a
                    270:     CVSync server located in the USA. The files in question are...
1.1       espie     271:     <ul>
                    272:       <li><tt>src/kerberosIV/*</tt></li>
                    273:       <li><tt>src/kerberosV/*</tt></li>
                    274:       <li><tt>src/lib/libdes/*</tt></li>
                    275:       <li><tt>src/lib/libc/crypt/crypt.c</tt></li>
                    276:       <li><tt>src/lib/libc/crypt/morecrypt.c</tt></li>
                    277:       <li><tt>src/sys/crypto</tt></li>
                    278:       <li><tt>src/sys/netinet</tt></li>
                    279:       <li><tt>src/usr.sbin/afs/src/rxkad/*</tt></li>
                    280:     </ul>
                    281:     <p>
                    282:     Because of the USA ITAR munitions list,
                    283:     crypto software may only be exported to Canada from the USA.
                    284:   </li>
                    285: </ul>
                    286:
                    287: </body>
                    288: </html>