If you are going to offer anonymous CVS access via pserver, add a line in\r
/etc/inetd.conf like\r
</p>\r
-<div class="literalblock">\r
+<div class="listingblock">\r
<div class="content">\r
-<pre><tt>cvspserver stream tcp nowait nobody git-cvsserver pserver</tt></pre>\r
+<pre><tt> cvspserver stream tcp nowait nobody git-cvsserver pserver\r
+</tt></pre>\r
</div></div>\r
-<div class="literalblock">\r
+<p>Note: In some cases, you need to pass the <em>pserver</em> argument twice for\r
+git-cvsserver to see it. So the line would look like</p>\r
+<div class="listingblock">\r
<div class="content">\r
-<pre><tt>Note: In some cases, you need to pass the 'pserver' argument twice for\r
-git-cvsserver to see it. So the line would look like</tt></pre>\r
+<pre><tt> cvspserver stream tcp nowait nobody git-cvsserver pserver pserver\r
+</tt></pre>\r
</div></div>\r
-<div class="literalblock">\r
-<div class="content">\r
-<pre><tt>cvspserver stream tcp nowait nobody git-cvsserver pserver pserver</tt></pre>\r
-</div></div>\r
-<div class="literalblock">\r
-<div class="content">\r
-<pre><tt>No special setup is needed for SSH access, other than having GIT tools\r
+<p>No special setup is needed for SSH access, other than having GIT tools\r
in the PATH. If you have clients that do not accept the CVS_SERVER\r
-env variable, you can rename git-cvsserver to cvs.</tt></pre>\r
-</div></div>\r
+env variable, you can rename git-cvsserver to cvs.</p>\r
</li>\r
<li>\r
<p>\r
For each repo that you want accessible from CVS you need to edit config in\r
the repo and add the following section.\r
</p>\r
-<div class="literalblock">\r
+<div class="listingblock">\r
<div class="content">\r
-<pre><tt>[gitcvs]\r
- enabled=1\r
- # optional for debugging\r
- logfile=/path/to/logfile</tt></pre>\r
+<pre><tt> [gitcvs]\r
+ enabled=1\r
+ # optional for debugging\r
+ logfile=/path/to/logfile\r
+</tt></pre>\r
</div></div>\r
-<div class="literalblock">\r
-<div class="content">\r
-<pre><tt>Note: you need to ensure each user that is going to invoke git-cvsserver has\r
+<p>Note: you need to ensure each user that is going to invoke git-cvsserver has\r
write access to the log file and to the git repository. When offering anon\r
access via pserver, this means that the nobody user should have write access\r
-to at least the sqlite database at the root of the repository.</tt></pre>\r
-</div></div>\r
+to at least the sqlite database at the root of the repository.</p>\r
</li>\r
<li>\r
<p>\r
CVSROOT should be set as per normal, but the directory should point at the\r
appropriate git repo. For example:\r
</p>\r
-<div class="literalblock">\r
-<div class="content">\r
-<pre><tt>For SSH access, CVS_SERVER should be set to git-cvsserver</tt></pre>\r
-</div></div>\r
-<div class="literalblock">\r
-<div class="content">\r
-<pre><tt>Example:</tt></pre>\r
-</div></div>\r
-<div class="literalblock">\r
+<p>For SSH access, CVS_SERVER should be set to git-cvsserver</p>\r
+<p>Example:</p>\r
+<div class="listingblock">\r
<div class="content">\r
-<pre><tt>export CVSROOT=:ext:user@server:/var/git/project.git\r
-export CVS_SERVER=git-cvsserver</tt></pre>\r
+<pre><tt> export CVSROOT=:ext:user@server:/var/git/project.git\r
+ export CVS_SERVER=git-cvsserver</tt></pre>\r
</div></div>\r
</li>\r
<li>\r
Clients should now be able to check out the project. Use the CVS <em>module</em>\r
name to indicate what GIT <em>head</em> you want to check out. Example:\r
</p>\r
-<div class="literalblock">\r
+<div class="listingblock">\r
<div class="content">\r
-<pre><tt>cvs co -d project-master master</tt></pre>\r
+<pre><tt> cvs co -d project-master master</tt></pre>\r
</div></div>\r
</li>\r
</ol>\r
</p>\r
</li>\r
</ol>\r
-<p>Protocol notes: If you are using anonymous acces via pserver, just select that.\r
+<p>Protocol notes: If you are using anonymous access via pserver, just select that.\r
Those using SSH access should choose the <em>ext</em> protocol, and configure <em>ext</em>\r
access on the Preferences->Team->CVS->ExtConnection pane. Set CVS_SERVER to\r
<em>git-cvsserver</em>. Not that password support is not good when using <em>ext</em>,\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 05-Mar-2006 10:51:09 UTC\r
+Last updated 08-Jun-2006 00:48:14 UTC\r
</div>\r
</div>\r
</body>\r