Create CVS Repository.
--- a/cvs.rst Fri Sep 23 18:04:25 2011 +0300
+++ b/cvs.rst Sat Sep 24 15:12:11 2011 +0300
@@ -1,6 +1,39 @@
--*- mode: outline; coding: utf-8 -*-
+-*- coding: utf-8 -*-
-* CVS via proxy server.
+======
+ CVS.
+======
+
+CVS via proxy server.
+=====================
+::
$ cvs -d:pserver;proxy=$proxyhost;proxyport=$proxyport:$cvsuser@$cvsdomain:/$repo
+Create CVS Repository.
+======================
+::
+
+ $ export CVSROOT=/srv/cvsroot
+ $ cvs init
+
+ $ groupadd cvs
+ $ useradd -m -g cvs -s /bin/sh -c "CVS Repository" cvs
+
+ $ chown -R cvs $CVSROOT
+ $ chgrp -R cvs $CVSROOT
+ $ chmod -R g+s $CVSROOT
+
+ $ grep cvs /etc/services && echo OK
+ cvspserver 2401/tcp # CVS client/server operations
+ cvspserver 2401/udp # CVS client/server operations
+ $ echo '# CVS server
+ cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/usr/local/src/cvsroot pserver' \
+ >/etc/inetd.conf
+ $ killall -HUP inetd # signal inetd daemon to re-read the config file
+
+ $ ls $CVSROOT/CVSROOT
+ readers # list of pseudo usernames that can read via cvspserver
+ writers # list of pseudo usernames can write via cvspserver
+ passwd # encrypted passwd string with (htpasswd from apache)
+