Annotation of www/cvsync.html, Revision 1.22
1.6 naddy 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1.1 espie 2: <html>
3: <head>
4: <title>OpenBSD CVSync</title>
5: <link rev="made" href="mailto:www@openbsd.org">
6: <meta name="resource-type" content="document">
1.6 naddy 7: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
1.1 espie 8: <meta name="description" content="How to get OpenBSD updates via Internet using CVSync">
9: <meta name="keywords" content="openbsd,cvsync,updates">
10: <meta name="distribution" content="global">
1.11 jose 11: <meta name="copyright" content="This document copyright 2003-2004 by OpenBSD.">
1.1 espie 12: </head>
13:
14: <body bgcolor="#FFFFFF" text="#000000" link="#23238E">
15:
16: <a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a>
17:
18: <h2><font color="#e00000">CVSync</font></h2>
19: <hr>
20:
21: <h3>Table of Contents</h3>
22: <ul>
23: <li><a href="#CVSync">What Is CVSync?</a></li>
1.10 naddy 24: <li><a href="#CVS">What Is CVS?</a></li>
1.1 espie 25: <li><a href="#starting">Getting Started Using CVSync</a></li>
26: <li><a href="#using">Using CVS to Update Your Source Tree</a></li>
27: <li><a href="#CVSROOT">Available CVSync Servers</a></li>
28: </ul>
29:
30: <hr>
31:
32:
33: <h3><a name="CVSync"><font color="#0000e0">What Is CVSync?</font></a></h3>
34:
35: <p>
36: <b>CVSync</b> is a software package for distributing and updating source
37: trees from a master <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1">cvs(1)</a> repository on a remote server host. The OpenBSD
38: sources are maintained in a CVS repository on a central development machine
39: in Canada. With CVSync, OpenBSD users can easily keep their own source trees
1.10 naddy 40: up to date.
1.1 espie 41: </p>
42:
43: <p>
44: <b>CVSync</b> uses the so-called pull model of updating. Under the pull
45: model, each client asks the server for updates, if and when they are
46: wanted. The server waits passively for update requests from its clients.
47: Thus all updates are instigated by the client. The server never sends
48: unsolicited updates. Users must either run the <b>CVSync</b> client
49: manually to get an update, or they must set up a <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cron&sektion=8">cron(8)</a> job to run it
1.10 naddy 50: automatically on a regular basis.
1.1 espie 51: </p>
52:
53: <p>
54: The term <b>CVSync</b>, capitalized just so, refers to the entire software
55: package. Its main components are the client <tt>cvsync</tt> which runs on
56: each user's machine, and the server <tt>cvsyncd</tt> which runs at each of
1.10 naddy 57: the OpenBSD CVSync mirror sites.
1.1 espie 58: </p>
59:
60: <p>
61: <b>CVSync</b> is intended to be both faster and flexible than
1.7 naddy 62: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sup&sektion=1&format=html">sup(1)</a> and CVSup.
1.10 naddy 63: </p>
1.1 espie 64:
65: <p>
66: The OpenBSD Project currently has five main source repositories:
67: </p>
68:
69: <ul>
70: <li><b>src</b> - Houses all source code for the OpenBSD Operating System.</li>
71: <li><b>ports</b> - Houses the <a href="./ports.html">OpenBSD Ports</a>.</li>
1.10 naddy 72: <li><b>www</b> - Houses all OpenBSD web pages (including this one).</li>
1.1 espie 73: <li><b>x11</b> - Houses OpenBSD's adaptation of the
74: <a href="http://www.XFree86.org/">XFree86-3</a> software project.</li>
75: <li><b>xf4</b> - Houses OpenBSD's adaptation of the
76: <a href="http://www.XFree86.org/">XFree86-4</a> software project.</li>
77: </ul>
78:
79: <h3><a name="CVS"><font color="#0000e0">What Is CVS?</font></a></h3>
80:
81: <p>
82: CVS is the source code control system used to manage the OpenBSD source
83: tree. It is described in more detail <a href="anoncvs.html#CVS">here</a>.
84: Note that CVS and CVSync are entirely different programs. Although
85: CVS can be used for remote file access, it is not optimized for
86: wholesale source tree distribution over the net, and CVSync can be
87: easily an order of magnitude more efficient for this task.
88: </p>
89:
90: <h3>
91: <a name="starting"><font color="#0000e0">Getting Started Using CVSync</font></a>
92: </h3>
93:
94: <p>
95: If you only care about running CVSync, it is recommended that you
96: download the cvsync package from the <a href="ftp.html">ftp mirror
97: sites</a> instead of building your own from the <tt>net/cvsync</tt>
1.10 naddy 98: port.
1.1 espie 99: </p>
100:
101: <p>
102: For further information about CVSync, see the
103: <a href="http://www.cvsync.org/">project homepage</a>.
104: </p>
105:
106: <p>
107: In order to mirror the OpenBSD repository with CVSync,
108: the following configuration file might be used:
109: </p>
110:
111: <pre>
112: config {
113: hostname anoncvs.de.openbsd.org
1.5 naddy 114: # If your network link is a T1 or faster, comment out the following line.
1.1 espie 115: compress
1.4 espie 116: collection {
1.5 naddy 117: name openbsd release rcs
1.4 espie 118: prefix /cvs
1.5 naddy 119: umask 002
1.4 espie 120: }
1.1 espie 121: }
122: </pre>
123:
124: <p>
125: This directs cvsync to refresh all OpenBSD distributions from
126: <b>anoncvs.de.openbsd.org</b> with a <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=umask&sektion=2">umask(2)</a> that permits group write
127: permission to the local repository.
128: </p>
129:
130: <p>
131: Assuming this file is saved as <tt>cvs-syncfile</tt>, the
132: following command would be used to invoke cvsync
133: </p>
134: <pre>
135: cvsync -c cvs-syncfile
136: </pre>
137:
138: <h3><a name="using">
139: <font color="#0000e0">Using CVS to Update Your Source Tree</font>
140: </a></h3>
141:
142: <p>
143: It is now simple to check out any one of the CVSync'ed repositories.
144: For Korn/Bourne shells:
145: </p>
146: <pre>
147: # cd /usr
148: # CVSROOT=/cvs cvs checkout src
149: </pre>
150: <p>
151: For csh and its derivatives:
152: </p>
153: <pre>
154: # cd /usr
155: # setenv CVSROOT /cvs
156: # cvs checkout src
157: </pre>
158:
159: <p>
160: The above will check out the most current sources. Many of you will only
161: want the release sources, especially if you are patching your system. To
162: checkout release sources you must specify a tag along with your command.
163: For example:
164: </p>
165: <pre>
166: # cd /usr
1.17 david 167: # cvs checkout -rOPENBSD_3_5 src
1.1 espie 168: </pre>
169: <p>
1.17 david 170: Or <tt>OPENBSD_3_4</tt> for 3.4, etc.
1.1 espie 171: </p>
172:
173: <h3>
174: <a name="CVSROOT"><font color="#0000e0">Available CVSync Servers</font></a>
175: </h3>
176:
177: <p>The following CVSync servers are available:</p>
178:
1.3 naddy 179: <p>
1.6 naddy 180: <ul>
1.14 millert 181: <li><strong>anoncvs1.usa.openbsd.org</strong><br>
1.15 millert 182: located in Redwood City, California, western USA;<br>
1.14 millert 183: maintained by <a href="mailto:millert@openbsd.org">Todd Miller</a>.<br>
184: Updated every 2 hours.<br>
185:
186: <p>
1.15 millert 187: <li><strong>anoncvs3.usa.openbsd.org</strong><br>
188: located at the University of Colorado, Boulder, western USA;<br>
1.3 naddy 189: maintained by <a href="mailto:millert@openbsd.org">Todd Miller</a>.<br>
1.14 millert 190: Updated every 2 hours.<br>
1.3 naddy 191:
1.2 naddy 192: <p>
1.6 naddy 193: <li><a href="http://anoncvs.de.openbsd.org/"><strong>anoncvs.de.openbsd.org</strong></a><br>
194: Host also known as <strong>grappa.unix-ag.uni-kl.de</strong>,<br>
1.2 naddy 195: located at the University of Kaiserslautern, Germany;<br>
1.1 espie 196: maintained by <a href="mailto:naddy@openbsd.org">Christian Weisgerber</a>.<br>
1.19 naddy 197: Updated every 6 hours.<br>
1.3 naddy 198:
1.2 naddy 199: <p>
1.6 naddy 200: <li><a href="http://www.allbsd.org/"><strong>cvsync.allbsd.org</strong></a><br>
1.2 naddy 201: located in Tokyo, Japan;<br>
1.6 naddy 202: maintained by <a href="mailto:hrs@allbsd.org">Hiroki Sato</a>.<br>
1.3 naddy 203:
1.1 espie 204: <p>
1.6 naddy 205: <li><a href="http://csociety.org/cvsup.html"><strong>cvsync.csociety.org</strong></a><br>
1.2 naddy 206: located at Purdue University, Indiana, USA;<br>
1.6 naddy 207: maintained by <a href="mailto:will@csociety.purdue.edu">Will Andrews</a>.<br>
1.3 naddy 208:
209: <p>
1.9 naddy 210: <li><strong>cvsync.linux.org.tr</strong><br>
211: located at ULAKBIM, Ankara, Bilkent, Turkey;<br>
212: maintained by <a href="mailto:bdd@mindcast.org">Berk D. Demir</a>.<br>
213: Updated every 2 hours from anoncvs.usa.openbsd.org.<br>
214:
215: <p>
1.6 naddy 216: <li><a href="http://mirror.osn.de/"><strong>mirror.osn.de</strong></a><br>
1.3 naddy 217: located in Nürnberg, Germany;<br>
218: maintained by <a href="mailto:aw@osn.de">Armin Wolfermann</a>.<br>
1.20 naddy 219: Updated every 4 hours from anoncvs1.usa.openbsd.org.<br>
1.1 espie 220:
221: <p>
1.12 sturm 222: <li><a href="http://anoncvs.erisiandiscord.de/"><strong>anoncvs.erisiandiscord.de</strong></a><br>
223: located in Darmstadt, Germany;<br>
224: maintained by <a href="mailto:sturm@openbsd.org">Nikolay Sturm</a>.<br>
225: Updated every 3 hours from cvsup.uk.openbsd.org.<br>
1.18 naddy 226:
227: <p>
228: <li><a href="http://anoncvs2.de.openbsd.org/"><strong>anoncvs2.de.openbsd.org</strong></a><br>
229: located in Erlangen, Germany;<br>
230: maintained by <a href="mailto:grunk@pestilenz.org">Alexander von Gernler</a>.<br>
231: Updated every 2 hours.<br>
1.21 naddy 232:
233: <p>
234: <li><strong>openbsd.cc.ntu.edu.tw</strong><br>
235: located at National Taiwan University, Taiwan;<br>
236: maintained by <a href="mailto:lkchu@ntuee.net">Liang-Kai Chu</a>.<br>
237: Updated every 2 hours.<br>
1.12 sturm 238: </ul>
239:
240: <p>
1.2 naddy 241: <em>Note:</em> If your server is listed on here with inaccurate or
1.1 espie 242: unknown information, please contact <a
243: href="mailto:beck@openbsd.org"><tt>beck@openbsd.org</tt></a>
244: or <a href="mailto:naddy@openbsd.org"><tt>naddy@openbsd.org</tt></a>
245: </p>
246: <p>
247: You may want to use <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=traceroute&sektion=8">traceroute(8)</a>
248: to find out which server is nearest you.
249: Problems with a server should be reported to the <b>maintainer</b> of the
250: server in question.
251: </p>
252: <p>
1.22 ! nick 253: Currently (as of December 8, 2004), the CVS repository sizes are
1.1 espie 254: </p>
255: <table>
256: <tr><td width="20"></td>
257: <td><strong>openbsd-ports</strong></td>
1.22 ! nick 258: <td>- <b>168</b>MB</td></tr>
1.1 espie 259: <tr><td></td>
260: <td><strong>openbsd-src</strong></td>
1.22 ! nick 261: <td>- <b>1310</b>MB</td></tr>
1.1 espie 262: <tr><td></td>
263: <td><strong>openbsd-www</strong></td>
1.22 ! nick 264: <td>- <b>161</b>MB</td></tr>
1.1 espie 265: <tr><td></td>
266: <td><strong>openbsd-x11</strong></td>
267: <td>- <b>200</b>MB</td></tr>
268: <tr><td></td>
269: <td><strong>openbsd-xf4</strong></td>
1.22 ! nick 270: <td>- <b>525</b>MB</td></tr>
1.1 espie 271: <tr><td></td>
272: <td><strong>openbsd-cvsroot</strong></td>
1.22 ! nick 273: <td>- <b>271</b>MB</td></tr>
1.1 espie 274: </table>
275: <p>
276: The overall repository size currently increases at a rate
1.22 ! nick 277: of about <b>400</b>MB per annum.
1.1 espie 278: </p>
279: <p>
280: <strong>IMPORTANT NOTE:</strong>
281: There are a few issues relating to cryptographic software that everyone
282: should be aware of:
283: </p>
284: <ul>
285: <li>
286: <p>
287: The OpenBSD sources are from Canada. As
288: <a href="http://www.efc.ca/pages/doc/crypto-export.html">
289: researched by a Canadian individual</a> and as
290: <a href="http://axion.physics.ubc.ca/ECL.html">
291: described in the Export Control list of Canada</a>,
292: it is legal to export crypto software from Canada to the world.
293: </p>
294: </li>
295: <li>
296: <p>
297: However, if you are outside the USA or Canada, you should not
1.8 naddy 298: fetch the cryptographic sections of the OpenBSD sources from a
299: CVSync server located in the USA. The files in question are...
1.1 espie 300: </p>
301: <ul>
302: <li><tt>src/kerberosIV/*</tt></li>
303: <li><tt>src/kerberosV/*</tt></li>
304: <li><tt>src/lib/libdes/*</tt></li>
305: <li><tt>src/lib/libc/crypt/crypt.c</tt></li>
306: <li><tt>src/lib/libc/crypt/morecrypt.c</tt></li>
307: <li><tt>src/sys/crypto</tt></li>
308: <li><tt>src/sys/netinet</tt></li>
309: <li><tt>src/usr.sbin/afs/src/rxkad/*</tt></li>
310: <li><tt>XF4/xc-mit/lib/Xdmcp/Wraphelp.c</tt></li>
311: <li><tt>XF4/xc-old/lib/Xdmcp/Wraphelp.c</tt></li>
312: <li><tt>XF4/xc/lib/Xdmcp/Wraphelp.c</tt></li>
313: </ul>
314: <p>
315: Because of the USA ITAR munitions list,
316: crypto software may only be exported to Canada from the USA.
317: </p>
318: </li>
319: </ul>
320:
321: <p>
322: The OpenBSD project is looking for more CVSync servers -- if you are
323: interested, please contact <a href="mailto:naddy@openbsd.org">Christian Weisgerber</a>
324: for configuration details.
325: </p>
326:
327: <hr>
328: <a href="index.html"><img height="24" width="24" src="back.gif" border="0" alt="OpenBSD"></a>
329: <a href="mailto:www@openbsd.org">www@openbsd.org</a>
1.22 ! nick 330: <br><small>$OpenBSD: cvsync.html,v 1.21 2004/10/15 22:19:15 naddy Exp $</small>
1.1 espie 331:
332: </body>
333: </html>