<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenBSD and FreeBSD resources &#187; CVS</title>
	<atom:link href="http://purebsd.com/tag/cvs/feed" rel="self" type="application/rss+xml" />
	<link>http://purebsd.com</link>
	<description></description>
	<lastBuildDate>Tue, 01 Jun 2010 06:01:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Setting up a CVS server</title>
		<link>http://purebsd.com/setting-up-a-cvs-server.html</link>
		<comments>http://purebsd.com/setting-up-a-cvs-server.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:27:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Daemons]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[CVS]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Setting up]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=46</guid>
		<description><![CDATA[Here I&#8217;ll describe how to setup a CVS server that is accessed by CVS clients via the &#171;pserver protocol&#187;. The end result is a service that CVS clients connect to in order to use the CVS repositories on your system. Edit /etc/inetd.conf to add the &#171;cvs&#187; service: cvspserver stream tcp nowait cvs /usr/libexec/tcpd /usr/bin/cvs -f --allow-root=/home/cvs [...]]]></description>
			<content:encoded><![CDATA[<p>Here I&#8217;ll describe how to setup a CVS server that is accessed by CVS clients via the &laquo;pserver protocol&raquo;. The end result is a service that CVS clients connect to in order to use the CVS repositories on your system.</p>
<ol type="1">
<li>Edit <code>/etc/inetd.conf</code> to add the &laquo;cvs&raquo; service:<br />
<code>cvspserver stream tcp nowait cvs /usr/libexec/tcpd /usr/bin/cvs -f --allow-root=/home/cvs pserver</code></li>
<li>Edit <code>/etc/services</code> to add the cvspserver protocol:<br />
<code>cvspserver 2401/tcp</code></li>
<li>Edit <code>/etc/hosts.allow</code> to allow connections from certain hosts to the &laquo;cvs&raquo; service:<br />
<code>cvs: 192.168.0. botte-coders.example.org .aars.it</code></li>
<li>Add the &laquo;cvs&raquo; user mentioned in <code>/etc/inetd.conf</code> to /etc/master.passwd:<br />
<code>cvs:*:80:80::0:0:CVS:/home/cvs:/usr/local/bin/bash</code><br />
Run <code>pwd_mkdb -p /etc/master.passwd</code> to regenerate <code>/etc/passwd</code>.</p>
<p>Create the group &laquo;cvs&raquo;:<br />
<code>/etc/group:<br />
cvs:*:80:<br />
</code><br />
Create the home directory for user &laquo;cvs&raquo;:<br />
<code>mkdir /home/cvs<br />
chmod 700 /home/cvs<br />
</code></li>
<li>Init the CVSROOT directory in /home/cvs:<br />
<code>su -l cvs<br />
cvs -d /home/cvs init<br />
</code></li>
<li>Create and/or edit the file <code>/home/cvs/CVSROOT/passwd</code>. This file will list the users able to connect to the &laquo;cvs&raquo; service:<br />
<code>su -l cvs<br />
cd /home/cvs/CVSROOT<br />
touch passwd<br />
chmod 600 passwd<br />
vi passwd<br />
</code><br />
The file will look something like this:<br />
<code>harry:ZrLzRsjAPL7iQ:cvs<br />
klaas:Rf0DZbqhHM.Z.:cvs<br />
sjaak:kLruwLTHOsOXT2:cvs<br />
cvsusers:ORA7SfF0sRkD.:cvs<br />
</code><br />
&laquo;harry&raquo;, &laquo;klaas&raquo; and &laquo;sjaak&raquo; are the cvs users. &laquo;cvsusers&raquo; is the common user account for the developers working on a certain website project. It is mainly meant for doing cvs checkouts in the production environment.</li>
<li>Finally, create the common user account &laquo;cvsusers&raquo; to keep your developers happy. You know how to do that, don&#8217;t you? (-:</li>
<li>Now all developers should set their CVSROOT environment and execute a <code>cvs login</code>:<br />
<code>export CVSROOT=":pserver:&lt;username&gt;@yourserver.com:/home/cvs"<br />
cvs login<br />
cd ~public_html/<br />
cvs -q checkout PROJECTNAME</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/setting-up-a-cvs-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

