본문 바로가기

softwares/quick reference

subversion on FreeBSD

cd /usr/ports/www/apache22;
make install clean;
/usr/local/sbin/apachectl start

cd /usr/ports/devel/subversion;
make install WITH_MOD_DAV_SVN=yes WITHOUT_BDB=yes

svnadmin create --fs-type fsfs /home2/svn/repository

vi /usr/local/etc/apache22/httpd.conf

<Location /svn/repository>
 DAV svn
 SVNPath /home2/svn/repository
 SVNPathAuthz on
 AuthType Basic
 AuthName "Subversion Repository"
 AuthUserFile /etc/svn_passwd
 AuthzSVNAccessFile /etc/svn_accessfile
 Require valid-user
</Location>
:wq!

htpasswd -c /etc/svn_passwd userid
htpasswd /etc/svn_passwd userid2

vi /etc/svn_accessfile
[groups]
admin = cookis
developers = userid
@graphics = userid2

[repository:/]
@developers = r
@graphics =
@admin = rw
:wq!

/usr/local/sbin/apachectl restart

http://www.pyrasis.com/main/Subversion-HOWTO