您的位置:軟件測(cè)試 > 開(kāi)源軟件測(cè)試 > 開(kāi)源配置管理工具 > cvs
為開(kāi)發(fā)準(zhǔn)備一臺(tái)CVS服務(wù)器
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時(shí)間:[ 2013/1/5 13:46:53 ] 推薦標(biāo)簽:

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****************/
建兩個(gè)用戶,cvsroot(password:cvsroot)使用root權(quán)限,cvsread(password:cvsread)
使用只讀權(quán)限.


#/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


********************************************************
***如果同時(shí)安裝python-1.x和python-2x(比如RedHat7.2)
***以下千萬(wàn)注意(我們使用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 #使用系統(tǒng)驗(yàn)證


OK,enjoy CVS!


5:微調(diào)


#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 #使用系統(tǒng)驗(yàn)證
LockDir=/var/lock/cvs #for security
LogHistory=all
:wq

$cvs commit
#service xinetd restart


Great!終于好了!


呵呵,下面開(kāi)始你的代碼之旅吧!

上一頁(yè)12下一頁(yè)
軟件測(cè)試工具 | 聯(lián)系我們 | 投訴建議 | 誠(chéng)聘英才 | 申請(qǐng)使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd