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).
- Install XCode. This breaks an eventually preexisting cvs installation. cvs is now located in /Developer/usr/bin.
- Checked to have the following in /etc/services:
cvspserver 2401/udp # cvspserver
cvspserver 2401/tcp # cvspserver
- Create a /etc/xinetd.d/cvspserver with something like
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
- 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).
- killall -1 xinetd
- Test with (replace mnott by your username):