Annotation of www/cvsync.html, Revision 1.125
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.121 tb 8: <meta name="copyright" content="This document copyright 2003-2016 by OpenBSD.">
9: <meta name="viewport" content="width=device-width, initial-scale=1">
10: <link rel="stylesheet" type="text/css" href="openbsd.css">
1.114 sthen 11: <link rel="canonical" href="http://www.openbsd.org/cvsync.html">
1.1 espie 12: </head>
13:
14: <body bgcolor="#FFFFFF" text="#000000" link="#23238E">
15:
1.121 tb 16: <h2>
1.122 tb 17: <a href="index.html">
1.121 tb 18: <font color="#0000ff"><i>Open</i></font><font color="#000084">BSD</font></a>
19: <font color="#e00000">CVSync</font>
20: </h2>
1.1 espie 21: <hr>
1.121 tb 22: <p>
1.1 espie 23:
1.124 tb 24: <h3 id="CVSync"><font color="#0000e0">What Is CVSync?</font></h3>
1.1 espie 25:
26: <b>CVSync</b> is a software package for distributing and updating source
1.124 tb 27: trees from a master <a href="http://man.openbsd.org/cvs">cvs(1)</a>
28: repository on a remote server host.
29: The OpenBSD sources are maintained in a CVS repository on a central
30: development machine in Canada.
31: With CVSync, OpenBSD users can easily keep their own source trees up to date.
1.1 espie 32:
33: <p>
34: <b>CVSync</b> uses the so-called pull model of updating. Under the pull
35: model, each client asks the server for updates, if and when they are
36: wanted. The server waits passively for update requests from its clients.
37: Thus all updates are instigated by the client. The server never sends
38: unsolicited updates. Users must either run the <b>CVSync</b> client
1.124 tb 39: manually to get an update, or they must set up a
40: <a href="http://man.openbsd.org/cron">cron(8)</a> job to run it
1.10 naddy 41: automatically on a regular basis.
1.1 espie 42:
43: <p>
44: The term <b>CVSync</b>, capitalized just so, refers to the entire software
45: package. Its main components are the client <tt>cvsync</tt> which runs on
46: each user's machine, and the server <tt>cvsyncd</tt> which runs at each of
1.10 naddy 47: the OpenBSD CVSync mirror sites.
1.1 espie 48:
49: <p>
1.23 nick 50: <b>CVSync</b> is intended to be both faster and more flexible than
1.97 tedu 51: sup and CVSup.
1.1 espie 52:
53: <p>
1.42 nick 54: The OpenBSD Project currently has six main source repositories:
1.1 espie 55:
56: <ul>
57: <li><b>src</b> - Houses all source code for the OpenBSD Operating System.</li>
1.78 steven 58: <li><b>ports</b> - Houses the <a href="faq/ports/index.html">OpenBSD Ports</a>.</li>
1.10 naddy 59: <li><b>www</b> - Houses all OpenBSD web pages (including this one).</li>
1.26 matthieu 60: <li><b>X11</b> - Houses OpenBSD's adaptation of the
61: <a href="http://www.XFree86.org/">XFree86-3</a> software project.
1.51 deraadt 62: <li><b>XF4</b> - Houses OpenBSD's adaptation of the XFree86-4 source tree.
63: <li><b>xenocara</b> - Houses OpenBSD's active X.org v7 source tree.
1.1 espie 64: </ul>
65:
1.84 jasper 66: The <b>X11</b> and <b>XF4</b> repositories are here just for historical
1.97 tedu 67: purposes, most users will have no reason to use those trees, they are no longer
1.84 jasper 68: being used.
69:
1.124 tb 70: <h3 id="CVS"><font color="#0000e0">What Is CVS?</font></h3>
1.1 espie 71:
72: <p>
73: CVS is the source code control system used to manage the OpenBSD source
74: tree. It is described in more detail <a href="anoncvs.html#CVS">here</a>.
75: Note that CVS and CVSync are entirely different programs. Although
76: CVS can be used for remote file access, it is not optimized for
77: wholesale source tree distribution over the net, and CVSync can be
78: easily an order of magnitude more efficient for this task.
79:
1.124 tb 80: <h3 id="starting"><font color="#0000e0">Getting Started Using CVSync</font></h3>
1.1 espie 81:
82: If you only care about running CVSync, it is recommended that you
83: download the cvsync package from the <a href="ftp.html">ftp mirror
84: sites</a> instead of building your own from the <tt>net/cvsync</tt>
1.10 naddy 85: port.
1.1 espie 86:
87: <p>
88: For further information about CVSync, see the
89: <a href="http://www.cvsync.org/">project homepage</a>.
1.116 sthen 90: However, don't build your own copy from unmodified upstream source -
91: the port/package has been modified to support commitid which is now
92: used in the OpenBSD repository.
1.1 espie 93:
94: <p>
95: In order to mirror the OpenBSD repository with CVSync,
96: the following configuration file might be used:
97:
98: <pre>
99: config {
1.103 mpi 100: hostname anoncvs.eu.openbsd.org
1.5 naddy 101: # If your network link is a T1 or faster, comment out the following line.
1.1 espie 102: compress
1.4 espie 103: collection {
1.5 naddy 104: name openbsd release rcs
1.4 espie 105: prefix /cvs
1.5 naddy 106: umask 002
1.4 espie 107: }
1.1 espie 108: }
109: </pre>
110:
111: <p>
112: This directs cvsync to refresh all OpenBSD distributions from
1.124 tb 113: <b>anoncvs.eu.openbsd.org</b> with a
114: <a href="http://man.openbsd.org/umask">umask(2)</a> that permits group write
1.1 espie 115: permission to the local repository.
116:
117: <p>
118: Assuming this file is saved as <tt>cvs-syncfile</tt>, the
119: following command would be used to invoke cvsync
1.124 tb 120:
1.1 espie 121: <pre>
1.91 nick 122: <b>cvsync -c cvs-syncfile</b>
1.1 espie 123: </pre>
124:
1.124 tb 125: <h3 id="using"><font color="#0000e0">Using CVS to Work With Your Repository
126: </font></h3>
1.1 espie 127:
1.48 nick 128: Now that you have a local copy of the CVS repository, it is now simple
129: to check out, update, or do any of the other CVS operations you would
130: normally do against a remote repository, locally.
1.50 nick 131: For example:
1.1 espie 132: <pre>
1.91 nick 133: <b>cvs -d/cvs checkout -P src</b>
134: <b>cvs -d/cvs up -Pd</b>
135: <b>cvs -d/cvs diff -u file.c</b>
1.1 espie 136: </pre>
1.48 nick 137: More details on CVS operation can be found in
138: <a href="faq/faq5.html#BldGetSrc">FAQ5, Fetching appropriate source
139: code</a> and in the
1.124 tb 140: <a href="http://man.openbsd.org/cvs">cvs(1)</a>
1.48 nick 141: man page.
1.1 espie 142:
1.124 tb 143: <h3 id="CVSROOT"><font color="#0000e0">Available CVSync Servers</font></h3>
1.1 espie 144:
1.124 tb 145: The following CVSync servers are available:
1.1 espie 146:
1.6 naddy 147: <ul>
1.72 sthen 148: <li><strong>ftp5.eu.openbsd.org</strong><br>
149: Host also known as <strong>anga.funkfeuer.at</strong>.<br>
1.44 martin 150: Location: Vienna, Austria.<br>
1.104 naddy 151: Maintained by <a href="mailto:martin@catai.org">Martin Reindl</a>.<br>
152: Updated hourly.<br>
1.44 martin 153: <p>
1.107 brad 154: <li><strong>anoncvs.comstyle.com</strong><br>
155: Location: Toronto, Canada.<br>
156: Maintained by <a href="mailto:brad@comstyle.com">Brad Smith</a>.<br>
157: Updated hourly.<br>
158: <p>
1.110 nick 159: <li><strong>openbsd.cs.toronto.edu</strong><br>
160: Location: University of Toronto, Toronto, ON, Canada.<br>
161: Maintained by <a href="mailto:nick@holland-consulting.net">Nick Holland</a>.<br>
162: Updated every 2 hours.<br>
163: <p>
1.88 sthen 164: <li><strong>anoncvs.fr.openbsd.org</strong><br>
165: Location: Paris, France.<br>
1.117 sthen 166: Maintained by <a href="mailto:openbsd-mirror@bsdfrog.org">Landry Breuil, Antoine Jacoutot</a>.<br>
1.88 sthen 167: Updated every 2 hours from anoncvs1.ca.openbsd.org.<br>
168: <p>
1.90 sthen 169: <li><a href="http://mirror.osn.de/"><strong>mirror.osn.de</strong></a><br>
1.37 steven 170: Location: Nürnberg, Germany.<br>
171: Maintained by <a href="mailto:aw@osn.de">Armin Wolfermann</a>.<br>
1.62 sthen 172: Updated every 3 hours.<br>
1.1 espie 173: <p>
1.112 florian 174: <li><strong>ftp.hostserver.de</strong><br>
175: Location: Frankfurt, Germany.<br>
176: Maintained by <a href="mailto:mirror@hostserver.de">Sebastian Benoit, Florian Obser</a>.<br>
177: Updated hourly from anoncvs1.ca.openbsd.org.<br>
178: <p>
1.90 sthen 179: <li><a href="http://www.allbsd.org/"><strong>cvsync.allbsd.org</strong></a><br>
1.37 steven 180: Location: Tokyo, Japan.<br>
181: Maintained by <a href="mailto:hrs@allbsd.org">Hiroki Sato</a>.<br>
1.69 sthen 182: <p>
1.77 sthen 183: <li><strong>anoncvs.eu.openbsd.org</strong><br>
184: Location: Stockholm University, Stockholm, Sweden.<br>
1.93 sthen 185: Maintained by <a href="mailto:jj@openbsd.org, ftp@it.su.se">Janne Johansson</a>.<br>
1.77 sthen 186: Updated every 2 hours.<br>
187: <p>
188: <li><strong>anoncvs.spacehopper.org</strong><br>
189: Location: London, United Kingdom.<br>
190: Maintained by <a href="mailto:sthen@openbsd.org">Stuart Henderson</a>.<br>
191: Updated hourly from anoncvs.ca.openbsd.org.<br>
192: <p>
1.118 sthen 193: <li><strong>anoncvs3.usa.openbsd.org</strong><br>
194: Location: National Center for Atmospheric Research, Boulder, CO, USA.<br>
195: Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br>
196: Updated hourly.<br>
197: <p>
198: <li><strong>anoncvs2.usa.openbsd.org</strong><br>
199: Host also known as <strong>anoncvs2.usa.openbsd.org</strong>.<br>
200: Location: Rochester Institute of Technology, Rochester, NY, USA.<br>
201: Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br>
202: Updated hourly.<br>
203: <p>
1.77 sthen 204: <li><strong>anoncvs1.usa.openbsd.org</strong><br>
205: Host also known as <strong>anoncvs.usa.openbsd.org, anoncvs4.usa.openbsd.org</strong>.<br>
1.118 sthen 206: Location: Network Media, LLC, Bend, OR, USA.<br>
1.77 sthen 207: Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br>
1.118 sthen 208: Updated hourly.<br>
1.77 sthen 209: <p>
1.29 grunk 210:
1.12 sturm 211: </ul>
212:
1.2 naddy 213: <em>Note:</em> If your server is listed on here with inaccurate or
1.1 espie 214: unknown information, please contact <a
215: href="mailto:beck@openbsd.org"><tt>beck@openbsd.org</tt></a>
1.124 tb 216:
1.1 espie 217: <p>
1.124 tb 218: You may want to use <a href="http://man.openbsd.org/traceroute">traceroute(8)</a>
1.1 espie 219: to find out which server is nearest you.
220: Problems with a server should be reported to the <b>maintainer</b> of the
221: server in question.
1.124 tb 222:
1.1 espie 223: <p>
1.123 sthen 224: As of March 2016, the CVS repository sizes are
1.124 tb 225:
226: <p>
1.1 espie 227: <table>
228: <tr><td width="20"></td>
229: <td><strong>openbsd-ports</strong></td>
1.123 sthen 230: <td>- <b>857</b>MB</td></tr>
1.1 espie 231: <tr><td></td>
232: <td><strong>openbsd-src</strong></td>
1.123 sthen 233: <td>- <b>2201</b>MB</td></tr>
1.1 espie 234: <tr><td></td>
235: <td><strong>openbsd-www</strong></td>
1.123 sthen 236: <td>- <b>598</b>MB</td></tr>
1.48 nick 237: <tr><td></td>
238: <td><strong>openbsd-xenocara</strong></td>
1.123 sthen 239: <td>- <b>1426</b>MB</td></tr>
1.1 espie 240: <tr><td></td>
241: <td><strong>openbsd-x11</strong></td>
242: <td>- <b>200</b>MB</td></tr>
243: <tr><td></td>
244: <td><strong>openbsd-xf4</strong></td>
1.48 nick 245: <td>- <b>564</b>MB</td></tr>
1.1 espie 246: <tr><td></td>
247: <td><strong>openbsd-cvsroot</strong></td>
1.123 sthen 248: <td>- <b>1248</b>MB</td></tr>
1.1 espie 249: </table>
1.124 tb 250:
1.1 espie 251: <p>
252: The overall repository size currently increases at a rate
1.95 tedu 253: of about <b>400</b>MB per annum. The src repository increases by about
254: <b>150</b>MB.
1.124 tb 255:
1.1 espie 256: <p>
257: <strong>IMPORTANT NOTE:</strong>
258: There are a few issues relating to cryptographic software that everyone
259: should be aware of:
1.124 tb 260:
1.1 espie 261: <ul>
262: <li>
263: <p>
264: The OpenBSD sources are from Canada. As
265: <a href="http://www.efc.ca/pages/doc/crypto-export.html">
266: researched by a Canadian individual</a> and as
267: <a href="http://axion.physics.ubc.ca/ECL.html">
268: described in the Export Control list of Canada</a>,
269: it is legal to export crypto software from Canada to the world.
270: </li>
271: <li>
272: <p>
273: However, if you are outside the USA or Canada, you should not
1.8 naddy 274: fetch the cryptographic sections of the OpenBSD sources from a
275: CVSync server located in the USA. The files in question are...
1.1 espie 276: <ul>
277: <li><tt>src/kerberosIV/*</tt></li>
278: <li><tt>src/kerberosV/*</tt></li>
279: <li><tt>src/lib/libdes/*</tt></li>
280: <li><tt>src/lib/libc/crypt/crypt.c</tt></li>
281: <li><tt>src/lib/libc/crypt/morecrypt.c</tt></li>
282: <li><tt>src/sys/crypto</tt></li>
283: <li><tt>src/sys/netinet</tt></li>
284: <li><tt>src/usr.sbin/afs/src/rxkad/*</tt></li>
285: <li><tt>XF4/xc-mit/lib/Xdmcp/Wraphelp.c</tt></li>
286: <li><tt>XF4/xc-old/lib/Xdmcp/Wraphelp.c</tt></li>
287: <li><tt>XF4/xc/lib/Xdmcp/Wraphelp.c</tt></li>
288: </ul>
289: <p>
290: Because of the USA ITAR munitions list,
291: crypto software may only be exported to Canada from the USA.
292: </li>
293: </ul>
294:
295: </body>
296: </html>