=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/anoncvs.html,v retrieving revision 1.134 retrieving revision 1.135 diff -c -r1.134 -r1.135 *** www/anoncvs.html 2001/02/21 15:30:46 1.134 --- www/anoncvs.html 2001/02/22 15:53:14 1.135 *************** *** 1,8 **** !
!
!
Anonymous CVS is a method of keeping your local copy of the OpenBSD source tree up to date with respect to changes made to current OpenBSD sources. --- 10,42 ---- !
!!
Anonymous CVS is a method of keeping your local copy of the OpenBSD source tree up to date with respect to changes made to current OpenBSD sources. *************** *** 53,65 ****
! The OpenBSD Project currently has three main source repositories:
--- 54,70 ----
! The OpenBSD Project currently has five main source repositories:
*************** *** 71,81 **** continuing.
! !! CVS is the source code control system used to manage the OpenBSD source tree. It implements a central repository for all officially released source code and changes, while permitting developers to maintain local copies of the --- 76,85 ---- continuing.
!! CVS is the source code control system used to manage the OpenBSD source tree. It implements a central repository for all officially released source code and changes, while permitting developers to maintain local copies of the *************** *** 101,112 **** to update any other source modules you requested.
! !The latest version of CVS is available at ! Cyclic. Versions earlier than 1.6 are not recommended, and may not work. If you already have OpenBSD installed, CVS is included.
--- 105,115 ---- to update any other source modules you requested. !The latest version of CVS is available at ! Cyclic. Versions earlier than 1.6 are not recommended, and may not work. If you already have OpenBSD installed, CVS is included.
*************** *** 124,145 ****# cd /mnt; pax -rw CVS Makefile [a-z]* /usr/src!
# mount -t union -o -b /mnt /usr/src
! For people who don't have a CD on hand, you can use cvs(1) to "checkout" the source repository for you. This is discussed in the next section.
! After this, /usr/src will be a nice checkout area where all cvs(1) commands will work OK.
! !CVS was designed to be a simple way to retrieve and update your sources, --- 127,147 ----
# cd /mnt; pax -rw CVS Makefile [a-z]* /usr/src!
# mount -t union -o -b /mnt /usr/src
! For people who don't have a CD on hand, you can use cvs(1) to "checkout" the source repository for you. This is discussed in the next section.
! After this, /usr/src will be a nice checkout area where all cvs(1) commands will work OK.
!CVS was designed to be a simple way to retrieve and update your sources, *************** *** 151,177 ****
Once you have decided which tree to follow, you much choose which Anonymous CVS server you are going to use. A list of these servers is ! below. Do, however, notice that there are 3 ways to access these servers.
!! NOTE: - For users wishing to use ssh, you must first set the CVS_RSH variable to ssh.
! $ export CVS_RSH="/usr/bin/ssh"!
! $ setenv CVS_RSH /usr/bin/ssh
Once you have decided which tree to follow, you much choose which Anonymous CVS server you are going to use. A list of these servers is ! below. Do, however, notice that there are three ways to access these servers.
!! NOTE: For users wishing to use ssh, you must first set the CVS_RSH variable to ssh.
! $ export CVS_RSH=/usr/bin/ssh!
! % setenv CVS_RSH /usr/bin/ssh
!
! # cd /usr; cvs checkout -P src !!
The above will checkout the current source tree. Many of you will --- 181,189 ---- Once you have chosen which Anonymous CVS Server you will use, and which method you will use, you can start using cvs. For those of you who have CD's you can start with the CVS checkout that is on the CD by using the method above to get the sources onto your system. If you don't have a CD handy, use the method below to checkout the sources. This method puts the OpenBSD source tree into /usr/src.
!! # cd /usr; cvs checkout -P src !
The above will checkout the current source tree. Many of you will *************** *** 191,208 **** specify a tag along with your command. Example:
-
- # cd /usr; cvs checkout -P -rOPENBSD_2_8 src -Or OPENBSD_2_7 for 2.7, etc. -
Currently only the OPENBSD_2_8 tag contains the release sources and errata already applied. ! !
There are two levels of source tree access: --- 191,206 ---- specify a tag along with your command. Example:
++ # cd /usr; cvs checkout -P -rOPENBSD_2_8 src +
Or OPENBSD_2_7 for 2.7, etc.
Currently only the OPENBSD_2_8 tag contains the release sources and errata already applied. !
There are two levels of source tree access: *************** *** 220,263 ****
! Please see the note about using ssh vs. rsh below!
--- 218,260 ----
! Please see the note about using ssh vs. rsh below!
*************** *** 271,311 ****
--- 268,308 ----
*************** *** 318,331 ****
--- 315,328 ----
***************
*** 341,360 ****
located in Moscow, Russia
maintained by John Chertihin
protocols: rsh, ssh
! updated every 24 hours (at 1 AM Moscow time)
! Note:, If your server is listed on here with inaccurate or unknown information, please contact ! beck@openbsd.org
You may want to use ! traceroute(8) to find out which server is nearest you. Problems with a server should be reported to the maintainer of the server in question. !
! !IMPORTANT NOTE: --- 410,429 ----
! Note: If your server is listed on here with inaccurate or unknown information, please contact ! beck@openbsd.org
You may want to use ! traceroute(8) to find out which server is nearest you. Problems with a server should be reported to the maintainer of the server in question. ! !
IMPORTANT NOTE: *************** *** 436,445 ****
--- 432,441 ----
*************** *** 462,500 **** on to find out how you can help.
! A sample use of an anoncvs CVS server would be: !
% setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs % cd /tmp % cvs get src/sys/arch/sparc [copies the files from the repository to your machine] % cvs log src/sys/arch/sparc/sparc/locore.s ! [shows the commit log for the chosen file ] % cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s [shows the changes between revisions 1.1 and rev 1.5] !
! [ *NOTE* You must be using cvs version 1.8 or higher to do this ] % setenv CVSROOT :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs % cvs login (Logging in to anoncvs@anoncvs1.ca.openbsd.org) CVS password: anoncvs ! [this writes a line to ~/.cvspass (filename over-ridden by CVS_PASSFILE).] [An example line from my ~/.cvspass after typing 'blah' for the above ] [password is: ] [:pserver:anoncvs@anoncvs5.usa.openbsd.org:/cvs Au'yc ] ! [...after logging in ONCE every other use of the above CVSROOT will work ] % cvs get ksrc-i386 ksrc-common ! [allows you to retrieve ONLY that necessary to rebuild an i386 kernel ] !
Here is how someone using anoncvs regularly would update his --- 458,494 ---- on to find out how you can help.
! A sample use of an anoncvs server would be: !
% setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs % cd /tmp % cvs get src/sys/arch/sparc [copies the files from the repository to your machine] % cvs log src/sys/arch/sparc/sparc/locore.s ! [shows the commit log for the chosen file] % cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s [shows the changes between revisions 1.1 and rev 1.5] !
% setenv CVSROOT :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs % cvs login (Logging in to anoncvs@anoncvs1.ca.openbsd.org) CVS password: anoncvs ! [This writes a line to ~/.cvspass (filename over-ridden by CVS_PASSFILE).] [An example line from my ~/.cvspass after typing 'blah' for the above ] [password is: ] [:pserver:anoncvs@anoncvs5.usa.openbsd.org:/cvs Au'yc ] ! [After logging in ONCE every other use of the above CVSROOT will work. ] % cvs get ksrc-i386 ksrc-common ! [Allows you to retrieve ONLY that necessary to rebuild an i386 kernel. ] !
Here is how someone using anoncvs regularly would update his *************** *** 502,533 ****
(If you are following current): !
! # setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs ! # cd /usr ! # cvs -q get -PA src !
(If you are following the patch branch for 2.8): !
! # setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs ! # cd /usr ! # cvs -q get -rOPENBSD_2_8 -P src !
(If you are following current): !
! # cd /usr/src ! # cvs -q up -PAd !
(If you are following the patch branch for 2.8): !
! # cd /usr/src ! # cvs -q up -rOPENBSD_2_8 -Pd !Everytime you ran this it would synchronize your /usr/src tree. It would not destroy any of your local changes, rather it would attempt to merge --- 496,527 ----
(If you are following current): !
! # setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs ! # cd /usr ! # cvs -q get -PA src !
(If you are following the patch branch for 2.8): !
! # setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs ! # cd /usr ! # cvs -q get -rOPENBSD_2_8 -P src !
(If you are following current): !
! # cd /usr/src ! # cvs -q up -PAd !
(If you are following the patch branch for 2.8): !
! # cd /usr/src ! # cvs -q up -rOPENBSD_2_8 -Pd !Everytime you ran this it would synchronize your /usr/src tree. It would not destroy any of your local changes, rather it would attempt to merge *************** *** 545,581 **** flag to cvs, or you may find yourself tracking current instead.
(If you are following current): !
! # cd /usr/src ! # cvs -d $CVSROOT -q up -PAd !
(If you are following a patch branch): !
! # cd /usr/src ! # cvs -d $CVSROOT -q up -Pd !
! To use ports, it is similar to src:
! # setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs ! # cd /usr ! # cvs -q get -PA ports
! # cd /usr ! # cvs -q up -PAd ports
(If you are following current): !
! # cd /usr/src ! # cvs -d $CVSROOT -q up -PAd !
(If you are following a patch branch): !
! # cd /usr/src ! # cvs -d $CVSROOT -q up -Pd !
! To use ports, it is similar to src:
! # setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs ! # cd /usr ! # cvs -q get -PA ports
! # cd /usr ! # cvs -q up -PAd ports
or to make a diff of a locally patched module (here cd.c) to include with a bug report: !
! # cd /usr ! # cvs diff -u src/sys/scsi/cd.c > /tmp/patch !!
! The CVS(1) man page (included with the CVS sources) has much more information about how CVS can be used.
- X11 Source tree
-
Anoncvs mirrors also carry the OpenBSD X11 source tree. You can adapt
the recipe above to update your X11 source tree from the second CD.
Either copy or use a union mount to get the X11 sources in /usr/X11:
--- 577,595 ----
or to make a diff of a locally patched module (here cd.c) to include with a bug report: !
! # cd /usr ! # cvs diff -u src/sys/scsi/cd.c > /tmp/patch !
! The cvs(1) man page (included with the CVS sources) has much more information about how CVS can be used. +
Anoncvs mirrors also carry the OpenBSD X11 source tree. You can adapt the recipe above to update your X11 source tree from the second CD. Either copy or use a union mount to get the X11 sources in /usr/X11: *************** *** 610,625 ****
# mount -t union -o -b /mnt/X11 /usr/X11 !After this, /usr/X11 will be ready to be used by cvs. You can for example update it to -current source (assuming you've already set the CVSROOT environment variable): !
# cd /usr/X11 # cvs -q update -PAd !
Warning: --- 602,618 ----
# mount -t union -o -b /mnt/X11 /usr/X11 !! After this, /usr/X11 will be ready to be used by cvs. You can for example update it to -current source (assuming you've already set the CVSROOT environment variable): !
# cd /usr/X11 # cvs -q update -PAd !
Warning: *************** *** 637,644 **** their "diff"s relative to the CVS tree, which will ease integration. ! !
Anoncvs: rsh vs. ssh --- 630,636 ---- their "diff"s relative to the CVS tree, which will ease integration. !
Anoncvs: rsh vs. ssh *************** *** 647,663 **** of the CVS sites no longer support rsh for security reasons or a local problem like a firewall or imperfect protocol emulator such as slirp may prevent you from using rsh. ! The alternative is a to use a "secure shell" connection using either ! OpenSSH (*FREE*) or ! ssh (non-commercial and commercial).
- The OpenBSD anoncvs repositries support the SSH1 protocol, not the SSH2 - protocol due to the use of a "strict non-commercial use licensing policy". - -
Once ssh is installed, one sets the environment variable ! CVS_RSH to point to ssh (typically /usr/bin/ssh). If your local site prevents you from connecting out to port 22 (which ssh defaults to using) use port 2022. --- 639,650 ---- of the CVS sites no longer support rsh for security reasons or a local problem like a firewall or imperfect protocol emulator such as slirp may prevent you from using rsh. ! The alternative is a to use a "secure shell" connection using ! OpenSSH.
Once ssh is installed, one sets the environment variable ! CVS_RSH to point to ssh (typically /usr/bin/ssh). If your local site prevents you from connecting out to port 22 (which ssh defaults to using) use port 2022. *************** *** 678,701 **** CVS is a little noisy starting up; to quiet it a bit you may want to do this: !
! setenv CVS_CLIENT_PORT -1 !
If you wish to change from one CVS server to another (say your normal one is down, or for any other reason), the environment variable which will let you do this is !
! setenv CVS_IGNORE_REMOTE_ROOT !Note that you will also need to use the -d flag as mentioned above. ! !
Users wishing to mirror the OpenBSD CVS tree itself may now do so --- 665,688 ---- CVS is a little noisy starting up; to quiet it a bit you may want to do this: !
! % setenv CVS_CLIENT_PORT -1 !
If you wish to change from one CVS server to another (say your normal one is down, or for any other reason), the environment variable which will let you do this is !
! % setenv CVS_IGNORE_REMOTE_ROOT !+
Note that you will also need to use the -d flag as mentioned above. !
Users wishing to mirror the OpenBSD CVS tree itself may now do so *************** *** 715,735 **** files ending up in /home/sup. The full OpenBSD cvs tree is currently about 1.3 gigabytes in size. ! !
If you wish to be a new anoncvs mirror site, please contact the anoncvs ! maintainer. Anoncvs mirrors require about 1.2GB of disk, and use up to 32MB of swap per anoncvs user (assuming the user does a large operation; while smaller operations use fewer resources, anoncvs still makes much more of an impact than ftp or sup). Such anoncvs machines should have excellent network connectivity for the area they are expected to serve. A ! document which describes the setup of anoncvs servers is available. !
If you wish to be a new anoncvs mirror site, please contact the anoncvs ! maintainer. Anoncvs mirrors require about 1.2GB of disk, and use up to 32MB of swap per anoncvs user (assuming the user does a large operation; while smaller operations use fewer resources, anoncvs still makes much more of an impact than ftp or sup). Such anoncvs machines should have excellent network connectivity for the area they are expected to serve. A ! document which describes the setup of anoncvs servers is available. !