用 Macports 安裝 subversion with http connection.
MacOSX10.5.4 (Leopard)
安裝 Subversion
sudo port install subversion +mod_dav_svn +bash_completion +tools
下述兩行,加到 httpd.conf
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
設定要放 repository 的目錄,比如
/Users/derjohng/SVN_repo
cd 到目錄, 然後設定要新增的專案
svnadmin create Projects
設定 apache 的部份
<Location /svn>
DAV svn
SVNParentPath /Users/derjohng/SVN_repo
AuthType Basic
AuthName "Personal SVN"
AuthUserFile /Users/derjohng/SVN_repo/htpasswd_file
AuthzSVNAccessFile /Users/derjohng/SVN_repo/access_file
Require valid-user
</Location>
新增使用者帳號,密碼
htpasswd -mc htpasswd_file derjohng
編輯 access 檔,設定專案的權限
[groups]
project_team = derjohng
[Projects:/]
@project_team = rw
Orignal From: Installing Subversion with dav on OSX