version 1.223, 2004/10/29 18:01:56 |
version 1.224, 2004/11/24 05:41:15 |
|
|
<h3><a name="starting"><font color="#0000e0">Getting Started Using Anonymous |
<h3><a name="starting"><font color="#0000e0">Getting Started Using Anonymous |
CVS</font></a></h3> |
CVS</font></a></h3> |
|
|
<p> |
While you can download the entire source tree from an AnonCVS server, |
The latest version of CVS is available at |
you can often save a lot of time and bandwidth by "preloading" your |
<a href="http://www.cvshome.org/">Cyclic</a>. |
source tree with the source files from either the OpenBSD CD or from an |
Versions earlier than 1.6 are not recommended, and may not work. |
FTP server. |
If you already have OpenBSD installed, CVS is included. |
This is particularly true if you are running |
</p> |
<a href="stable.html"><i>-stable</i></a>, as relatively few files change |
|
between the <i>-release</i> and <i>-stable</i>. |
|
|
<p> |
<p> |
People who own an OpenBSD CD may have seen the <i>CVS/</i> dirs on it. |
To extract the source tree from the CD to <i>/usr/src</i> (assuming the CD is |
Actually there is a reason, the CD has a checkout of the OpenBSD <b>src</b> |
|
module usable to continue updating from. Using this tree will result in a much |
|
faster initial CVS update than a fresh checkout of the full OpenBSD |
|
source tree. There are two ways of using the CD: |
|
</p> |
|
|
|
<ul> |
|
<li>To copy the CVS tree from the CD to <i>/usr/src</i> (assuming the CD is |
|
mounted on /mnt): |
mounted on /mnt): |
<pre> |
<pre> |
# <b>cd /mnt; pax -rw CVS Makefile [a-z]* /usr/src</b> |
# <b>cd /usr/src; tar xzf /mnt/src.tar.gz</b> |
</pre> |
</pre> |
<li>Use a union mount (see <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=mount_union&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html">mount_union(8)</a>) |
|
with the CD below a writable directory. (This can be used when only compiling from the tree.) |
The source files for download from the FTP servers are separated into two |
|
files to minimize the time required to download for those wishing to work |
|
with only one part of the tree. The two files are <tt>sys.tar.gz</tt>, |
|
which contains the files used to create the kernel, and <tt>src.tar.gz</tt> |
|
which contains all the other "userland" utilties. |
|
In general, however, you will usually want both of them installed. |
|
Assuming the downloaded files, <tt>src.tar.gz</tt> and |
|
<tt>sys.tar.gz</tt> are in <tt>/usr</tt>: |
|
|
<pre> |
<pre> |
# <b>mount -t union -o -b /mnt /usr/src</b> |
# <b>cd /usr/src</b> |
|
# <b>tar xzf ../sys.tar.gz</b> |
|
# <b>tar xzf ../src.sys.gz</b> |
</pre> |
</pre> |
</ul> |
|
|
|
<p> |
<p> |
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&sektion=1&format=html"> |
You can also just use cvs(1) to "<b>checkout</b>" the source repository |
cvs(1)</a> to "<b>checkout</b>" the source repository for you. This is |
for you. This is discussed in the <a href="#using">next section</a>. |
discussed in the <a href="#using">next section</a>. |
|
</p> |
|
|
|
<p> |
<p> |
After this, <i>/usr/src</i> will be a nice checkout area where all |
After this, <i>/usr/src</i> will be a nice checkout area where all |
<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1&format=html"> |
<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1&format=html"> |
cvs(1)</a> commands will work OK. |
cvs(1)</a> commands will work properly. |
</p> |
|
|
|
<h3><a name="using"><font color="#0000e0">Using CVS to get and update your |
<h3><a name="using"><font color="#0000e0">Using CVS to get and update your |
source tree</font></a></h3> |
source tree</font></a></h3> |