version 1.141, 2018/04/06 23:41:34 |
version 1.142, 2019/04/18 08:51:19 |
|
|
CVSync is an entirely different program and can be installed from |
CVSync is an entirely different program and can be installed from |
packages: |
packages: |
|
|
<pre> |
<pre class="cmdbox"> |
<b>pkg_add cvsync</b> |
# <b>pkg_add cvsync</b> |
</pre> |
</pre> |
|
|
Do not build your own copy from unmodified upstream source - |
Do not build your own copy from unmodified upstream source - |
|
|
In order to mirror the OpenBSD repository with CVSync, |
In order to mirror the OpenBSD repository with CVSync, |
the following configuration file might be used: |
the following configuration file might be used: |
|
|
<pre> |
<pre class="cmdbox"> |
config { |
config { |
hostname anoncvs.eu.openbsd.org |
hostname anoncvs.eu.openbsd.org |
# If your network link is a T1 or faster, comment out the following line. |
# If your network link is a T1 or faster, comment out the following line. |
compress |
compress |
collection { |
collection { |
name openbsd release rcs |
name openbsd release rcs |
prefix /cvs |
prefix /cvs |
umask 002 |
umask 002 |
} |
} |
} |
} |
</pre> |
</pre> |
|
|
<p> |
<p> |
|
|
Assuming this file is saved as <tt>cvs-syncfile</tt>, the |
Assuming this file is saved as <tt>cvs-syncfile</tt>, the |
following command would be used to invoke cvsync |
following command would be used to invoke cvsync |
|
|
<pre> |
<pre class="cmdbox"> |
<b>cvsync -c cvs-syncfile</b> |
$ <b>cvsync -c cvs-syncfile</b> |
</pre> |
</pre> |
|
|
<h3 id="rsync">Getting Started Using Rsync</h3> |
<h3 id="rsync">Getting Started Using Rsync</h3> |
|
|
Again this should be installed from packages. |
Again this should be installed from packages. |
Two flavours are available: |
Two flavours are available: |
|
|
<pre> |
<pre class="cmdbox"> |
<b># pkg_add rsync</b> |
# <b>pkg_add rsync</b> |
Ambiguous: choose package for rsync |
Ambiguous: choose package for rsync |
a 0: <None> |
a 0: <None> |
1: rsync-3.1.2p0 |
1: rsync-3.1.2p0 |
2: rsync-3.1.2p0-iconv |
2: rsync-3.1.2p0-iconv |
Your choice: |
Your choice: |
</pre> |
</pre> |
|
|
Unless you have other requirements, simply install the standard version |
Unless you have other requirements, simply install the standard version |
|
|
You can select the flavour on the command-line to avoid |
You can select the flavour on the command-line to avoid |
<a href="//man.openbsd.org/pkg_add">pkg_add(1)</a> prompting for the |
<a href="//man.openbsd.org/pkg_add">pkg_add(1)</a> prompting for the |
version like so: |
version like so: |
<pre> |
<pre class="cmdbox"> |
<b>pkg_add rsync--</b> |
# <b>pkg_add rsync--</b> |
</pre> |
</pre> |
|
|
In order to mirror the OpenBSD repository with rsync, |
In order to mirror the OpenBSD repository with rsync, |
the following command line might be used: |
the following command line might be used: |
|
|
<pre> |
<pre class="cmdbox"> |
<b>rsync -avz --delete rsync://obsdacvs.cs.toronto.edu/obsdcvs/ /cvs/</b> |
$ <b>rsync -avz --delete rsync://obsdacvs.cs.toronto.edu/obsdcvs/ /cvs/</b> |
</pre> |
</pre> |
|
|
<h3 id="using">Using CVS to Work With Your Repository</h3> |
<h3 id="using">Using CVS to Work With Your Repository</h3> |
|
|
to check out, update, or do any of the other CVS operations you would |
to check out, update, or do any of the other CVS operations you would |
normally do against a remote repository, locally. |
normally do against a remote repository, locally. |
For example: |
For example: |
<pre> |
<pre class="cmdbox"> |
<b>cvs -d/cvs checkout -P src</b> |
$ <b>cvs -d/cvs checkout -P src</b> |
<b>cvs -d/cvs up -Pd</b> |
$ <b>cvs -d/cvs up -Pd</b> |
<b>cvs -d/cvs diff -u file.c</b> |
$ <b>cvs -d/cvs diff -u file.c</b> |
</pre> |
</pre> |
More details on CVS operation can be found in |
More details on CVS operation can be found in |
<a href="faq/faq5.html#BldGetSrc">FAQ5, Fetching appropriate source |
<a href="faq/faq5.html#BldGetSrc">FAQ5, Fetching appropriate source |
|
|
Maintained by <a href="mailto:sthen@openbsd.org">Stuart Henderson</a>.<br> |
Maintained by <a href="mailto:sthen@openbsd.org">Stuart Henderson</a>.<br> |
Updated hourly from anoncvs.ca.openbsd.org.<br> |
Updated hourly from anoncvs.ca.openbsd.org.<br> |
<p> |
<p> |
<li><strong>anoncvs3.usa.openbsd.org</strong><br> |
|
Location: National Center for Atmospheric Research, Boulder, CO, USA.<br> |
|
Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br> |
|
Updated hourly.<br> |
|
<p> |
|
<li><strong>anoncvs4.usa.openbsd.org</strong><br> |
<li><strong>anoncvs4.usa.openbsd.org</strong><br> |
Location: New York Internet, New York, NY, USA.<br> |
Location: New York Internet, New York, NY, USA.<br> |
Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br> |
Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br> |
Updated hourly.<br> |
Updated hourly.<br> |
<p> |
<p> |
<li><strong>anoncvs2.usa.openbsd.org</strong><br> |
<li><strong>anoncvs2.usa.openbsd.org</strong><br> |
Host also known as <strong>openbsd.se.rit.edu</strong>.<br> |
Host also known as <strong>anoncvs3.usa.openbsd.org, ftp3.usa.openbsd.org, ftp5.usa.openbsd.org, openbsd.se.rit.edu</strong>.<br> |
Location: Rochester Institute of Technology, Rochester, NY, USA.<br> |
Location: Rochester Institute of Technology, Rochester, NY, USA.<br> |
Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br> |
Maintained by <a href="mailto:millert@openbsd.org">Todd C. Miller</a>.<br> |
Updated hourly.<br> |
Updated hourly.<br> |