Home | 簡體中文 | 繁體中文 | 雜文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品與服務 | Email

第 27 章 Teamwork

目錄

27.1. Subversion
27.1.1. classic Unix-like xinetd daemon
27.1.2. WebDav
27.1.3. 項目目錄結構
27.2. Trac
27.2.1. trac.ini
27.2.2. standalone
27.2.3. Using Authentication
27.2.4. trac-admin
27.2.4.1. Permissions
27.2.4.2. Resync
27.3. Browser interface for CVS and SVN version control repositories

27.1. Subversion

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

27.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
			
			

27.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
			
			

27.1.3. 項目目錄結構

–trunk #存放主綫

–branches #存放分支,可修改

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

comments powered by Disqus