Subversion server

Configuration

by ross at 04:42:27 on November 16, 2012

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.

Comments