CVS pserver on Mountain Lion

Right. I do know CVS is old and all, but I like it. Actually I’ve a ton of stuff in my CVS server. And have written all kinds of scripts that digest that stuff and do stuff with it. So no, I’ll not switch any time soon for the existing projects (for new ones, I use Git).

Having said that, and having installed Mountain Lion lately, I found out, cvs was no longer working. So here’s what I did (and I assume you already have a CVS root and just want to get it working locally on your MacOS).

  1. Install XCode. This breaks an eventually preexisting cvs installation. cvs is now located in /Developer/usr/bin.
  2. Checked to have the following in /etc/services:
cvspserver 2401/udp # cvspserver
cvspserver 2401/tcp # cvspserver
  1. Create a /etc/xinetd.d/cvspserver with something like
service cvspserver
{
 port = 2401
 socket_type = stream
 protocol = tcp
 user = root
 wait = no
 type = UNLISTED
 server = /Developer/usr/bin/cvs
 server_args = -f --allow-root /pgm/cvs pserver
 disable = no
}
  1. Make sure to see the server line pointing to the cvs executable, and the server_args pointing to your CVS root (/pgm/cvs in my case).
  2. killall -1 xinetd
  3. Test with (replace mnott by your username):
export CVSROOT=:pserver:[email protected]:/pgm/cvs
cvs login
Share