=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/anoncvs.html,v retrieving revision 1.369 retrieving revision 1.370 diff -u -r1.369 -r1.370 --- www/anoncvs.html 2012/06/06 15:53:33 1.369 +++ www/anoncvs.html 2012/09/08 21:07:47 1.370 @@ -27,13 +27,13 @@
+IMPORTANT NOTE: +There are a few issues relating to cryptographic software that everyone +should be aware of: +
+
CVS was designed to be a simple way to retrieve and update your sources. @@ -193,34 +217,133 @@ who have CDs 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. +
+
(If you are following current):
- # cd /usr; cvs checkout -P src + # cd /usr + # cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P src+
(If you are following the patch branch for 5.1): +
+ # cd /usr + # cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_5_1 -P src ++ + + +
(If you are following current): +
+ # cd /usr/src + # cvs -q up -Pd ++ +
(If you are following the patch branch for 5.1): +
+ # cd /usr/src + # cvs -q up -rOPENBSD_5_1 -Pd ++ +Every time 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 changes in. +
-The above will checkout the current source tree. Many of you will -only want the patch branch sources. To checkout a patch branch, you must -specify a tag along with your command. Example: +
+ # cd /usr/src + # cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs -q up -Pd ++
+To use ports, +it is similar to src: +
(If you are following current):
- # cd /usr; cvs checkout -P -rOPENBSD_5_1 src + # cd /usr + # cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P ports+
(If you are following the patch branch for 5.1): +
+ # cd /usr + # cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_5_1 -P ports ++
(If you are following current): +
+ # cd /usr/ports + # cvs -q up -Pd ++
(If you are following the patch branch for 5.1): +
+ # cd /usr/ports + # cvs -q up -rOPENBSD_5_1 -Pd ++
-Or OPENBSD_5_0 for 5.0, etc. +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 OPENBSD_5_1 tag contains the release sources and -errata already applied. +
+The +cvs(1) man page +(included with the CVS sources) has much more +information about how CVS can be used. +
+Warning: +When using cvs you should take care that your current directory is either +the root of the tree you are referencing or in a separate place such as /tmp. +Some commands such as "get" can create an arbitrary sub-tree in the current +directory, and a subsequent update will recursively flesh out this sub-tree. + +
+The anoncvs service gives fledgling developers a chance to learn CVS +operation and get thoroughly involved in the development process +before getting "commit" access -- as a result of showing useful +skills and high quality results they will naturally later be given +developer access. +As well, people providing patches can create their "diff"s relative +to the CVS tree, which will ease integration. + +
+A sample use of an anoncvs server would be: +
+$ cd /tmp +$ cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs get src/sys/arch/sparc + [copies the files from the repository to your machine] +$ cd src/sys/arch/sparc +$ cvs log locore.s + [shows the commit log for the chosen file] +$ cvs diff -bc -r1.1 -r1.5 locore.s + [shows the changes between revisions 1.1 and rev 1.5] ++
-Please see the note about ssh vs. rsh below! -
-IMPORTANT NOTE: -There are a few issues relating to cryptographic software that everyone -should be aware of: -
-
-NOTICE: If you want to update a branch (such as a patch branch)
-to current, you would add the -A
-flag to cvs, but this flag is of little use otherwise. Some older
-versions of the OpenBSD documentation recommended use of this flag
-in many examples. We no longer recommend this flag unless absolutely necessary.
-
-
-A sample use of an anoncvs server would be: -
-$ cd /tmp -$ cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs get src/sys/arch/sparc - [copies the files from the repository to your machine] -$ cd src/sys/arch/sparc -$ cvs log locore.s - [shows the commit log for the chosen file] -$ cvs diff -bc -r1.1 -r1.5 locore.s - [shows the changes between revisions 1.1 and rev 1.5] -- -
-$ cvs -d :pserver:anoncvs@anoncvs.ca.openbsd.org:/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 -d :pserver:anoncvs@anoncvs.ca.openbsd.org:/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 -source tree: -
(If you are following current): -
- # cd /usr - # cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P src -- -
(If you are following the patch branch for 5.1): -
- # cd /usr - # cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_5_1 -P src -- -
(If you are following current): -
- # cd /usr/src - # cvs -q up -Pd -- -
(If you are following the patch branch for 5.1): -
- # cd /usr/src - # cvs -q up -rOPENBSD_5_1 -Pd -- -Every time 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 -changes in. - -
-
- # cd /usr/src - # cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs -q up -Pd --
-To use ports, -it is similar to src: -
(If you are following current): -
- # cd /usr - # cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P ports --
(If you are following the patch branch for 5.1): -
- # cd /usr - # cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_5_1 -P ports --
(If you are following current): -
- # cd /usr/ports - # cvs -q up -Pd --
(If you are following the patch branch for 5.1): -
- # cd /usr/ports - # cvs -q up -rOPENBSD_5_1 -Pd --
-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. - -
-Warning: -When using cvs you should take care that your current directory is either -the root of the tree you are referencing or in a separate place such as /tmp. -Some commands such as "get" can create an arbitrary sub-tree in the current -directory, and a subsequent update will recursively flesh out this sub-tree. - -
-The anoncvs service gives fledgling developers a chance to learn CVS -operation and get thoroughly involved in the development process -before getting "commit" access -- as a result of showing useful -skills and high quality results they will naturally later be given -developer access. As well, people providing patches can create -their "diff"s relative to the CVS tree, which will ease integration. - - -
-NOTE: For users wishing to use rsh, you must first set the -CVS_RSH environment variable to point to the rsh(1) program: - -
- $ export CVS_RSH=/usr/bin/rsh --
- % setenv CVS_RSH /usr/bin/rsh --
-By default, OpenBSD's CVS client uses ssh ("secure shell": -OpenSSH) to talk to the CVS server. - -
-Many of the CVS sites no longer support rsh or pserver for security reasons. -Local -problems like firewalls or imperfect protocol emulators such as slirp may -also hinder rsh usage. However, if rsh is desired, one must set the -CVS_RSH environment variable to point to rsh -(typically /usr/bin/rsh). - -
If local policy prevents outgoing connections to ssh's default port of 22, -port 2022 may be used in its place. Note, however, that not all anoncvs -servers accept ssh connections on this port. Furthermore, most anoncvs servers -no longer accept the none cipher, as it is disabled in -recent versions of ssh for security reasons. Also, do not be tempted -to turn on compression: CVS already compresses. - -
-One could specify something like the following in the -$HOME/.ssh/config configuration file to avoid the pitfalls -and restrictions mentioned above: +some servers permit connections on an alternative port (typically 2022). +These are noted in the list above. +To use a different port, reconfigure your ssh client by adding a "Host" +entry to $HOME/.ssh/config, e.g.:
- Host anoncvs.ca.openbsd.org - Compression no - Port 2022 + Host anoncvs.ca.openbsd.org + Port 2022-
-CVS is a little noisy starting up; to quiet it a bit you may want to -do this: - -
- $ export CVS_CLIENT_PORT=-1 --