work, study, life ..........

Tuesday, March 3, 2009

SVN 的有关配置

OS:RedHat Enterprise 4.0 U2

Date: Dec 5th, 2006

1. Berkeley DB(db-4.2.52)
# cd db-4.2.52
# patch -p0 < patch.4.2.52.1
# patch -p0 < patch.4.2.52.2
# patch -p0 < patch.4.2.52.3
# patch -p0 < patch.4.2.52.4
# patch -p0 < patch.4.2.52.5

2. Apache (httpd-2.0.61)
# ./configure –prefix=/opt/httpd-2.0.61 –enable-modules=all –enable-mods-shared=most –enable-so –with-berkeley-db=/opt/db –with-dbm=db42

–with-berkeley-db=
–with-dbm=db4 如果没有这两个参数,在后面的Subversion编译会提示:

APR-UTIL was installed independently, it won’t be possible to use the specified Berkeley DB

3. Neon(neon-0.25.5)
略!

4. Subversion-1.4.3
LDFLAGS=-L”/opt/db/lib” ./configure –prefix=/opt/subversion –with-apxs=/opt/httpd-2.0.61/bin/apxs –with-apr=/opt/httpd-2.0.61/bin/apr-config –with-apr-util=/opt/httpd-2.0.61/bin/apu-config –enable-dso –with-berkeley-db=/opt/db –with-neon=/opt/neon-0.25.5
5. Chown -R nobody:root /path/repository_svn
在 httpd.conf 中写入:


DAV svn
SVNParentPath /path/repository_svn
AuthType Basic
AuthName “Subversion repository”
AuthUserFile /path/svn-auth-file
Require valid-user
AuthzSVNAccessFile /path/svn-access-file


svn-auth-file可以用htpasswd 产生,也可以通过Mod_auth_mysql 把密码整合到数据库里。

svn-access-file文件格式:
[repository_name:/]
user = rw (read/write)

如果要对repository下级目录授权,即xxx:
[repository_name:/xxx]
user = rw

No comments: