Cvs

CVS - INSTALLATION AND CONFIGURATION IN Gentoo

Before you install cvs, we have to use server flag.

# echo “dev-util/cvs server” >> /etc/portage/package.use # emerge cvs

Now let's create the directory of cvs repository and set some parameters:

# cvs -d /var/lib/cvsd/root init # cvsd-buildroot /var/lib/cvsd/ # cd /var/lib/cvsd # mkdir -p var/lock # cp /lib/ld-* /var/lib/cvsd/lib/ # cp /lib/libdl.so.2 /var/lib/cvsd/lib/

In the configuration file of the cvs "/etc/cvsd/cvsd.conf", change the lines:

RootJail	       /var/lib/cvsd Uid		       cvsd Gid		       cvsd Nice               1 Umask		027 PidFile		/var/run/cvsd.pid MaxConnections	10 Log		       /var/log/cvsd.log	info Repos		/root

Creating a password to access, in our case we use the user test;

# cvsd-passwd /var/lib/cvsd/root test # cd /var/lib/cvsd/root/CVSROOT # touch readers writers # chown cvsd: readers writers # echo “Usuário que vai adicionar arquivos” > writers

Uncomment the line in /var/lib/cvsd/root/CVSROOT/config

SystemAuth=no LockDir=/var/lock/cvs

In /var/lib/cvsd/root/CVSROOT/cvswrappers, add to list: *.jpeg -k 'b'   *.midi -k 'b'    *.jpg -k 'b'    *.bpgr -k 'b'    *.zip -k 'b'    *.exe -k 'b'    *.o -k 'b'    *.jnp -k 'b'    *.ram -k 'b'    *.aiff -k 'b'    *.xpi -k 'b'    *.asf -k 'b'    *.obj -k 'b'    *.snp -k 'b'    *.png -k 'b'    *.mid -k 'b'    *.eargrp -k 'b'    *.class -k 'b'    *.rar -k 'b'    *.sar -k 'b'    *.au -k 'b'    *.rpt -k 'b'    *.jds -k 'b'    *.wav -k 'b'    *.jpe -k 'b'    *.gif -k 'b'    *.cab -k 'b'    *.dcu -k 'b'    *.war -k 'b'    *.ejbgrp -k 'b'    *.ejbgrpx -k 'b'    *.library -k 'b'    *.jar -k 'b'    *.jpgr -k 'b'    *.rmf -k 'b'    *.asx -k 'b'    *.ear -k 'b'    *.bin -k 'b'

Now to finish, we will change the permissions:

# cd /var/lib # chown –R cvsd: cvsd/ # chmod –R 755 cvsd/var # /etc/init.d/cvsd start