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