Skip to content. | Skip to navigation

Navigation

Personal tools

Development Applications

Perl, CVS, Databases, that sort of stuff

CVS

Enabling a CVS server

Sun supply a copy of CVS in /opt/sfw, what we want to do is enable a pserver from it.

Pre-SMF Configuration

Services

Add cvspserver as a named service.

cat <<EOF >>/etc/services
cvspserver      2401/tcp
EOF

Create the inetd.conf entry. Actually, here we're not modifying /etc/inetd.conf as this is a one-off exercise.

You should modify the allowed roots as applicable to your environment:

cat <<EOF >/tmp/inetd.conf
cvspserver      stream  tcp6    nowait  root    /opt/sfw/bin/cvs   cvs -f --allow-root=/path/to/your/cvs/root pserver
EOF

SMF

We can now bodge our old inetd.conf-style entry into the SMF age with inetconv:

Note

inetconv stamps over any existing entry!

inetconv -i /tmp/inetd.conf

Our new SMF service will appear in /var/svc/manifest/network/cvspserver-tcp6.xml where the final pathname component has been derived from the servicename (cvspserver) and protocol (tcp6) given in the inetd.conf file.

Evidence of your success will appear via inetadm:

inetadm
inetadm -l /network/cvspserver/tcp6

You can modify the details of your configuration via inetadm. In this instance we might want to add more cvs roots:

inetadm -m /network/cvspserver/tcp6 exec="/opt/sfw/bin/cvs -f --allow-root=/path/to/your/cvs/root --allow-root=/path/to/your/other/cvs/root pserver"

Document Actions