Home | Mirror | Search

第 27 章 Teamwork

目錄

1. Subversion
1.1. classic Unix-like xinetd daemon
1.2. WebDav
1.3. 項目目錄結構
2. Trac
2.1. trac.ini
2.2. standalone
2.3. Using Authentication
2.4. trac-admin
2.4.1. Permissions
2.4.2. Resync
3. Browser interface for CVS and SVN version control repositories

1. Subversion

		
[root@development ~]# yum -y install subversion
		
		

1.1. classic Unix-like xinetd daemon

			
[root@development ~]# vim /etc/xinetd.d/subversion
service subversion
{
    disable = no
    port = 3690
    socket_type = stream
    protocol = tcp
    wait = no
    user = svnroot
    server = /usr/bin/svnserve
    server_args = -i -r /home/svnroot
}
			
			

firewall

			
iptables -A INPUT -p tcp -m tcp --sport 3690 -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp --dport 3690 -j ACCEPT
			
			

1.2. WebDav

install webdav module

			
[root@development ~]# yum install mod_dav_svn
			
			

create directory

			
mkdir /var/www/repository
svnadmin create /var/www/repository
			
			

subversion.conf

			
[root@development ~]# vim /etc/httpd/conf.d/subversion.conf
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
			
			

vhost.conf

			
<Location />
DAV svn
SVNPath /var/www/repository
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/svn-auth-file
Require valid-user
</Location>
			
			

auth file

			
[root@development ~]# htpasswd -c /etc/subversion/svn-auth-file my_user_name
			
			

1.3. 項目目錄結構

–trunk #存放主綫

–branches #存放分支,可修改

–tags #存放標記,不可修改

comments powered by Disqus