您的位置:软件测试 > 开源软件测试 > 开源配置管理工具 > cvs
为开发准备一台CVS服务器
作者:网络转载 发布时间:[ 2013/1/5 13:46:53 ] 推荐标签:

e:
GNU-diff to replace broken diff implementations(http://www.gnu.org/software/diffutils/diffutils.html)
Rh7.2自带.
f:MySQL to create and query a commit database(sql.com/">http://www.mysql.com/)
Rh7.2自带.
g:(sql-python)(and">http://sourceforge.net/projects/mysql-python)(and Python 1.5.2 or later)
去拉
h:Enscript to colorize code displayed from the CVS repository(http://people.ssh.com/mtr/genscript/)
去拉
i:CvsGraph for a graphical representation of the CVS revisions(http://www.akhphd.au.dk/~bertho/cvsgraph/)
去拉


#tar zxvf cvsgraph-1.1.3.tar.gz
#cd cvsgraph-1.1.3
#./configure
#make
#cp cvsgraph /usr/bin
#mkdir /etc/cvsgraph
#cp cvsgraph.conf /etc/cvsgraph

#rpm -ivh egenix-mx-base-2.0.3-py2.1_1.i386.rpm
#rpm -ivh MySQL-python-0.9.1-1py2.i386.rpm

 

#tar zxvf viewcvs-0.9.2.tar.gz
#cd viewcvs-0.9.2
#./viewcvs-install
#cp /usr/local/viewcvs-0.9.2/cgi/viewcvs.cgi /var/www/cgi-bin

#cp /usr/local/cvsview-0.9.2/PyFontify* /usr/lib/python2.1/
#cp /usr/local/cvsview-0.9.2/py2html* /usr/lib/python2.1/
OK!

/**********MySQL****************/
建两个用户,cvsroot(password:cvsroot)使用root权限,cvsread(password:cvsread)
使用只读权限.


#/usr/local/cvsview-0.9.2/make-datebase
OK!


#vi /usr/local/viewcvs-0.9.2/viewcvs.conf
cvs_roots =
Development : /home2/cvsroot


rcs_path = /usr/bin/

address = hleil@vmail.com


[cvsdb]


host = localhost
database_name = ViewCVS
user = cvsroot
passwd = cvsroot
readonly_user = cvsread
readonly_passwd = cvsread
row_limit = 1000


py2html_path = /usr/lib/python2.1


enscript_path = /usr/bin/

allow_tar = 1

use_cvsgraph = 1


********************************************************
***如果同时安装python-1.x和python-2x(比如RedHat7.2)
***以下千万注意(我们使用python-2.x)
********************************************************
cd /usr/local/viewcvs-0.9.2
loginfo-handler,standalone.py,cvsdbadmin
以及
cd /usr/local/viewcvs-0.9.2/cgi下的所有文件,

首行改为:#!/usr/bin/python2

#cp /usr/local/viewcvs-0.9.2/cgi/viewcvs.cgi /var/www/cgi-bin


http://127.0.0.1/cgi-bin/viewcvs.cgi/


OK了!


4:Add user


#usermod -G cvs username #使用系统验证


OK,enjoy CVS!


5:微调


#mkdir /var/lock/cvs
#mkdir /var/lock/cvs/CVSROOT
#chmod -R 775 /var/lock/cvs
#chown -R cvsroot.cvs /var/lock/cvs
#su - hleil
$export CVSROOT=:pserver:cvsroot@vmail.com:/home2/cvsroot
$cvs login
$cvs checkout CVSROOT
$cd CVSROOT
$vi loginfo
ALL (echo %{sVv}; cat) | /usr/local/viewcvs-0.9.2/loginfo-handler #SQL checkin
:wq


$vi config
SystemAuth=yes #使用系统验证
LockDir=/var/lock/cvs #for security
LogHistory=all
:wq

$cvs commit
#service xinetd restart


Great!终于好了!


呵呵,下面开始你的代码之旅吧!

上一页12下一页
软件测试工具 | 联系我们 | 投诉建议 | 诚聘英才 | 申请使用列表 | 网站地图
沪ICP备07036474 2003-2017 版权所有 上海泽众软件科技有限公司 Shanghai ZeZhong Software Co.,Ltd