version 1.515, 2021/04/30 16:14:12 |
version 1.516, 2021/10/14 02:08:46 |
|
|
<li>Read-only access for everyone |
<li>Read-only access for everyone |
</ul> |
</ul> |
|
|
<h3 id="starting">Pre-loading the source tree</h3> |
<h3 id="starting">Pre-Loading the Source Tree</h3> |
|
|
<p> |
<p> |
While you can download the entire source tree from an AnonCVS server, you can |
While you can download the entire source tree from an AnonCVS server, you can |
|
|
$ <b>tar xzf /tmp/xenocara.tar.gz</b> |
$ <b>tar xzf /tmp/xenocara.tar.gz</b> |
</pre> |
</pre> |
|
|
<h3 id="using">Using CVS to get and update your source trees</h3> |
<h3 id="using">Using CVS to Get and Update Your Source Trees</h3> |
|
|
<p> |
<p> |
<a href="https://man.openbsd.org/cvs">cvs(1)</a> was designed to be a simple way |
<a href="https://man.openbsd.org/cvs">cvs(1)</a> was designed to be a simple way |
|
|
in the current directory, and a subsequent update will recursively flesh out |
in the current directory, and a subsequent update will recursively flesh out |
this sub-tree. |
this sub-tree. |
|
|
<h4 id="getting">Getting an initial tree</h4> |
<h4 id="getting">Getting an Initial Tree</h4> |
|
|
<p> |
<p> |
The following commands assume that your user is member of the <code>wsrc</code> |
The following commands assume that your user is member of the <code>wsrc</code> |
|
|
</pre> |
</pre> |
|
|
<p> |
<p> |
If you are following the 6.9 -stable branch: |
If you are following the 7.0 -stable branch: |
|
|
<pre class="cmdbox"> |
<pre class="cmdbox"> |
$ <b>cd /usr</b> |
$ <b>cd /usr</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_6_9 -P src</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_7_0 -P src</b> |
</pre> |
</pre> |
<!-- DO NOT EDIT ANONCVS.HTML MANUALLY - IT IS GENERATED FROM TEMPLATES! --> |
<!-- DO NOT EDIT ANONCVS.HTML MANUALLY - IT IS GENERATED FROM TEMPLATES! --> |
|
|
<p> |
<p> |
Anonymous CVS uses passwordless SSH as a transport. |
Anonymous CVS uses passwordless SSH as a transport. |
If this is the first time you have connected to an anoncvs server, |
If this is the first time you have connected to a server, |
you will be asked to confirm the SSH fingerprint to ensure that you |
you will be asked to confirm the SSH fingerprint to ensure that you |
are connecting to the expected server: |
are connecting to the expected server: |
|
|
|
|
Warning: Permanently added 'anoncvs.spacehopper.org' (ED25519) to the list of known hosts. |
Warning: Permanently added 'anoncvs.spacehopper.org' (ED25519) to the list of known hosts. |
</pre> |
</pre> |
|
|
<h4 id="updating">Updating an existing tree</h4> |
<h4 id="updating">Updating an Existing Tree</h4> |
|
|
<p> |
<p> |
If you are following -current: |
If you are following -current: |
|
|
</pre> |
</pre> |
|
|
<p> |
<p> |
If you are following the 6.9 -stable branch: |
If you are following the 7.0 -stable branch: |
|
|
<pre class="cmdbox"> |
<pre class="cmdbox"> |
$ <b>cd /usr/src</b> |
$ <b>cd /usr/src</b> |
$ <b>cvs -q up -Pd -rOPENBSD_6_9</b> |
$ <b>cvs -q up -Pd -rOPENBSD_7_0</b> |
</pre> |
</pre> |
|
|
<p> |
<p> |
|
|
It does not destroy any of your local changes; rather it attempts to merge |
It does not destroy any of your local changes; rather it attempts to merge |
changes in. |
changes in. |
|
|
<h4>Changing the server</h4> |
<h4>Changing the Server</h4> |
|
|
<p> |
<p> |
If you are updating a source tree that you initially fetched |
If you are updating a source tree that you initially fetched |
|
|
$ <b>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs -q up -Pd</b> |
$ <b>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs -q up -Pd</b> |
</pre> |
</pre> |
|
|
<h4>Getting the ports and xenocara trees</h4> |
<h4>Getting the ports and xenocara Trees</h4> |
|
|
<p> |
<p> |
Make sure your user is member of the <code>wsrc</code> group and that |
Make sure your user is member of the <code>wsrc</code> group and that |
|
|
</pre> |
</pre> |
|
|
<p> |
<p> |
If you are following the 6.9 -stable branch: |
If you are following the 7.0 -stable branch: |
|
|
<pre class="cmdbox"> |
<pre class="cmdbox"> |
$ <b>cd /usr</b> |
$ <b>cd /usr</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_6_9 -P ports</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_7_0 -P ports</b> |
</pre> |
</pre> |
|
|
<li> Any time afterwards, to update this tree: |
<li> Any time afterwards, to update this tree: |
|
|
</pre> |
</pre> |
|
|
<p> |
<p> |
If you are following the 6.9 -stable branch: |
If you are following the 7.0 -stable branch: |
|
|
<pre class="cmdbox"> |
<pre class="cmdbox"> |
$ <b>cd /usr/ports</b> |
$ <b>cd /usr/ports</b> |
$ <b>cvs -q up -Pd -rOPENBSD_6_9</b> |
$ <b>cvs -q up -Pd -rOPENBSD_7_0</b> |
</pre> |
</pre> |
|
|
</ul> |
</ul> |
|
|
$ <b>cvs diff -u sys/scsi/cd.c > /tmp/patch</b> |
$ <b>cvs diff -u sys/scsi/cd.c > /tmp/patch</b> |
</pre> |
</pre> |
|
|
<h3 id="EXAMPLE">Example usage for cvs(1)</h3> |
<h3 id="EXAMPLE">Example Usage</h3> |
|
|
<p> |
|
A sample use of an anoncvs server would be: |
|
|
|
<pre class="cmdbox"> |
<pre class="cmdbox"> |
$ <b>cd /tmp</b> |
$ <b>cd /tmp</b> |
$ <b>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -P src/sys/arch/sparc</b> |
$ <b>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -P src/sys/arch/sparc</b> |
|
|
Please use the <code>reposync</code> wrapper script which checks for updates to |
Please use the <code>reposync</code> wrapper script which checks for updates to |
CVSROOT/ChangeLog and avoids a full directory scan in some cases where no update |
CVSROOT/ChangeLog and avoids a full directory scan in some cases where no update |
was detected. |
was detected. |
It also handles SSH port-forwarding for mirrors where this is available, |
It also handles SSH port forwarding for mirrors where this is available, |
allowing to connect to an "rsync --daemon" server over an |
allowing to connect to an "rsync --daemon" server over an |
authenticated and encrypted channel. |
authenticated and encrypted channel. |
|
|
|
|
of about <b>400</b>MB per annum. The src repository increases by about |
of about <b>400</b>MB per annum. The src repository increases by about |
<b>150</b>MB. |
<b>150</b>MB. |
|
|
<h3 id="CVSROOT">Available Anonymous CVS servers</h3> |
<h3 id="CVSROOT">Available Anonymous CVS Servers</h3> |
|
|
<ul> |
<ul> |
<li><strong>CVSROOT=anoncvs@anoncvs.au.openbsd.org:/cvs</strong><br> |
<li><strong>CVSROOT=anoncvs@anoncvs.au.openbsd.org:/cvs</strong><br> |
|
|
Port 2022 |
Port 2022 |
</pre> |
</pre> |
|
|
<h3 id="MIRROR">Setting up an anoncvs mirror</h3> |
<h3 id="MIRROR">Setting up an AnonCVS Mirror</h3> |
|
|
<p> |
<p> |
Anoncvs mirrors currently require about 6GB of disk (and it will grow!), and use |
AnonCVS mirrors currently require about 6GB of disk (and it will grow!), and use |
up to 64MB of swap per anoncvs user (assuming the user does a large operation; |
up to 64MB of swap per anoncvs user (assuming the user does a large operation; |
while smaller operations use fewer resources, anoncvs still makes much more of |
while smaller operations use fewer resources, AnonCVS still makes much more of |
an impact than ftp). |
an impact than ftp). |
Such anoncvs machines should have excellent network connectivity for the area |
Such AnonCVS machines should have excellent network connectivity for the area |
they are expected to serve. |
they are expected to serve. |
A <a href="anoncvs.shar">document</a> which describes the setup of anoncvs |
A <a href="anoncvs.shar">document</a> which describes the setup of AnonCVS |
servers is available. |
servers is available. |
|
|
<h3 id="NOTES">Final notes</h3> |
<h3 id="NOTES">Final Notes</h3> |
|
|
<p> |
<p> |
After upgrading your source tree, you should read the comments at the top of |
After upgrading your source tree, you should read the comments at the top of |
|
|
|
|
<p> |
<p> |
It is important to note that upgrading from a release to the current tree |
It is important to note that upgrading from a release to the current tree |
by rebuilding the sources can be rather difficult due to dependencies |
by rebuilding the sources is not supported. |
that are often not obvious. |
|
Therefore, it is suggested that you first install the latest snapshot before |
Therefore, it is suggested that you first install the latest snapshot before |
attempting a tree build from source. |
attempting a tree build from source. |