Configuration
Install
# cd /usr/ports/devel/subversion # make install clean # rehash
Simple setup
Create svn user and group, add all the users who should have access via svn+ssh protocol to the group.
# pw groupadd svn # pw useradd svn -d /home/svn -g svn -m -s /bin/sh # mkdir /home/svn/repos # chmod 770 /home/svn/repos # chown svn:svn /home/svn/repos # pw groupmod svn -m ross
user ross should relogin to gain access
Add to /home/svn/.profile:
umask 007
Add to /etc/rc.conf:
svnserve_enable="YES" svnserve_data="/home/svn/repos"
# service svnserve start
Now we have both svn (for users from project's passwd file) and svn+ssh (for users from svn group with ssh access to the server) protocols available.