version 1.332, 2010/10/22 15:16:08 |
version 1.333, 2010/11/02 11:54:08 |
|
|
<meta name="description" content="How to get OpenBSD updates via Internet using Anonymous CVS"> |
<meta name="description" content="How to get OpenBSD updates via Internet using Anonymous CVS"> |
<meta name="keywords" content="openbsd,anoncvs,updates"> |
<meta name="keywords" content="openbsd,anoncvs,updates"> |
<meta name="distribution" content="global"> |
<meta name="distribution" content="global"> |
<meta name="copyright" content="This document copyright 1996-2009 by OpenBSD."> |
<meta name="copyright" content="This document copyright 1996-2010 by OpenBSD."> |
</head> |
</head> |
|
|
<body bgcolor="#ffffff" text="#000000"> |
<body bgcolor="#ffffff" text="#000000"> |
|
|
<li><a href="#CRYPTO">Getting crypto sources through cvs(1)</a> |
<li><a href="#CRYPTO">Getting crypto sources through cvs(1)</a> |
<li><a href="#EXAMPLE">Example usages for cvs(1)</a> |
<li><a href="#EXAMPLE">Example usages for cvs(1)</a> |
<li><a href="#WHICH">Use rsh(1) or ssh(1)?</a> |
<li><a href="#WHICH">Use rsh(1) or ssh(1)?</a> |
|
<li><a href="#SUP">Mirroring the CVS repository via sup(1)</a> |
<li><a href="#MIRROR">Setting up an anoncvs mirror</a> |
<li><a href="#MIRROR">Setting up an anoncvs mirror</a> |
</ul> |
</ul> |
|
|
|
|
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P src</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P src</strong> |
</pre> |
</pre> |
|
|
<p> (If you are following the patch branch for 4.7): |
<p> (If you are following the patch branch for 4.8): |
<pre> |
<pre> |
# <strong>cd /usr</strong> |
# <strong>cd /usr</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_4_7 -P src</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_4_8 -P src</strong> |
</pre> |
</pre> |
|
|
<li> Anytime afterwards, to `update' this tree: |
<li> Anytime afterwards, to `update' this tree: |
|
|
# <strong>cvs -q up -Pd</strong> |
# <strong>cvs -q up -Pd</strong> |
</pre> |
</pre> |
|
|
<p> (If you are following the patch branch for 4.7): |
<p> (If you are following the patch branch for 4.8): |
<pre> |
<pre> |
# <strong>cd /usr/src</strong> |
# <strong>cd /usr/src</strong> |
# <strong>cvs -q up -rOPENBSD_4_7 -Pd</strong> |
# <strong>cvs -q up -rOPENBSD_4_8 -Pd</strong> |
</pre> |
</pre> |
|
|
Every time you ran this it would synchronize your /usr/src tree. It would |
Every time you ran this it would synchronize your /usr/src tree. It would |
|
|
# <strong>cd /usr</strong> |
# <strong>cd /usr</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P ports</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P ports</strong> |
</pre> |
</pre> |
<p> (If you are following the patch branch for 4.7): |
<p> (If you are following the patch branch for 4.8): |
<pre> |
<pre> |
# <strong>cd /usr</strong> |
# <strong>cd /usr</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_4_7 -P ports</strong> |
# <strong>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_4_8 -P ports</strong> |
</pre> |
</pre> |
<li> Anytime afterwards, to `update' this tree: |
<li> Anytime afterwards, to `update' this tree: |
<p> (If you are following <i>current</i>): |
<p> (If you are following <i>current</i>): |
|
|
# <strong>cd /usr/ports</strong> |
# <strong>cd /usr/ports</strong> |
# <strong>cvs -q up -Pd</strong> |
# <strong>cvs -q up -Pd</strong> |
</pre> |
</pre> |
<p> (If you are following the patch branch for 4.7): |
<p> (If you are following the patch branch for 4.8): |
<pre> |
<pre> |
# <strong>cd /usr/ports</strong> |
# <strong>cd /usr/ports</strong> |
# <strong>cvs -q up -rOPENBSD_4_7 -Pd</strong> |
# <strong>cvs -q up -rOPENBSD_4_8 -Pd</strong> |
</pre> |
</pre> |
</ul> |
</ul> |
|
|
|
|
</pre> |
</pre> |
|
|
<p> |
<p> |
|
<h3><a name="SUP"><font color="#0000e0">Mirroring the CVS repository via |
|
sup(1)</font></a></h3> |
|
|
|
<p> |
|
Users wishing to mirror the OpenBSD CVS tree itself may now do so |
|
from <em>anoncvs.usa.openbsd.org</em> or <em>anoncvs3.usa.openbsd.org</em> |
|
(these are different machines). Note that this is the cvs tree, |
|
<b>not</b> a checked out source tree. It is only useful if you |
|
want to be able to do fast cvs operations (diff, annotate, etc) or |
|
if you have multiple source trees and you only want to transfer new |
|
data once (you can then checkout a tree from your local cvs mirror). |
|
<p> |
|
A sample supfile would be: |
|
<pre> |
|
cvs host=anoncvs.usa.openbsd.org hostbase=/ base=/home delete |
|
</pre> |
|
<p> |
|
which would mirror the cvs tree into /home/cvs with the sup data |
|
files ending up in /home/sup. The full OpenBSD cvs tree is currently |
|
about 3.5GB in size, and will, of course continue to grow. |
|
|
<h3><a name="MIRROR"><font color="#0000e0">Setting up an anoncvs mirror |
<h3><a name="MIRROR"><font color="#0000e0">Setting up an anoncvs mirror |
</font></a></h3> |
</font></a></h3> |
|
|
|
|
and use up to 32MB of swap |
and use up to 32MB of swap |
per anoncvs user (assuming the user does a large operation; while smaller |
per anoncvs user (assuming the user does a large operation; while smaller |
operations use fewer resources, anoncvs still makes much more of an |
operations use fewer resources, anoncvs still makes much more of an |
impact than ftp). Such anoncvs machines should have excellent |
impact than ftp or sup). Such anoncvs machines should have excellent |
network connectivity for the area they are expected to serve. A |
network connectivity for the area they are expected to serve. A |
<a href="anoncvs.shar">document</a> |
<a href="anoncvs.shar">document</a> |
which describes the setup of anoncvs servers is available. |
which describes the setup of anoncvs servers is available. |