您的位置:首页 > 其它

[SCM] CVS开发环境搭建

2004-08-30 11:15 453 查看
use root (super user):
# bzip2 -d cvs-1.12.9.tar.bz2
# tar xvf cvs-1.12.9.tar
# cd cvs-1.12.9
# ./configure
# make
# make install
# cd /etc/xinetd.d/
# vi cvspserver
file: /etc/xinetd.d/cvspserver
==================================
# default: on
service cvspserver
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/bin/cvs
server_args = -f --allow-root=/home/cvs pserver
log_on_failure += USERID
only_from = 172.18.10.0/24
}
==================================
# unset HOME
# /etc/init.d/xinetd restart
# groupadd -g 600 cvsuser
# useradd -g 600 -u 600 -d /home/cvs -s /bin/false cvs
# sudo -u cvs cvs -d /home/cvs init

use myhan (normal user):
$ cvs -d :pserver:cvs@172.18.10.37:/home/cvs login
$ cvs -d :pserver:cvs@172.18.10.37:/home/cvs co CVSROOT
$ cd CVSROOT/
$ vi config
file: ~/CVSROOT/config
==================================
# Set this to "no" if pserver shouldn't check system users/passwords
SystemAuth=no (去掉前面的#)
......
......
......
==================================
$ cvs -d :pserver:cvs@172.18.10.37:/home/cvs ci config

use root (super user):
# sudo -u cvs touch /home/cvs/CVSROOT/passwd
# sudo -u cvs touch /home/cvs/CVSROOT/readers

then:
build cvspwd to manager cvs users :)
http://www.pajamian.dhs.org/
install cvs2cl.pl to gen ChangeLog
http://www.red-bean.com/cvs2cl/
install cvsutils to help using cvs effectively :)
http://www.red-bean.com/cvsutils/
install cvsweb
http://www.freebsd.org/projects/cvsweb.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: