freebsd 7 cvsd (cvs daemon) setup 选项
采用CVSD模式安装CVS。
1,set bash for root shell
#pkg_add bash*.tbz
#chfn
modify /bin/sh to /usr/local/bin/bash
2, export env variable
#vi /etc/profile
alias ls='ls -G'
LC_ALL=zh_CN.GB18030
LANG=zh_CN.GB18030
LC_CTYPE=zh_CN.GB18030
export LC_ALL LANG LC_CTYPE
3, disable sendmail
#vi /etc/rc.conf
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
4, setup cvsd
#cd /usr/ports/devel/cvsd/
#make install clean
#pw useradd cvsd
#mkdir -p /usr/cvsd/cvsroot
#cd /usr/local/etc/cvsd
#cp cvsd.conf.sample cvsd.conf
#vi cvsd.conf
RootJail /usr/cvsd
Uid cvsd
Gid cvsd
Nice 1
Umask 027 ## if setup cvsweb, 022
MaxConnections 0 ## 0 is unlimited
Repos /cvsroot ##del Test coolsoftware
5,initialization
#cvsd-buildroot /usr/cvsd 09
#cvs -d /usr/cvsd/cvsroot init
#chown -R cvsd:cvsd /usr/cvsd
#cvsd-passwd /usr/cvsd/cvsroot user1
#echo cvsd_enable="YES" >> /etc/rc.conf
6,reboot
八哥
20080922