Using Subversion for Collaborative Development OpenBSD

General Information

This is a guide on how to setup an OpenBSD 3.9 based Subversion 1.40 and Apache 2.2.X Source Code Respository server that uses the fsfs db format with no authentication/security. Should you need Authentication you can read the FreeBSD Subversion guide on this site until I create the 4.0 based guide. This is not a definitive guide but a how to. Considering this, the methods used here may not be the best ones or the most correct and assume you have some knowledge of unix. If you have any updates and such, please e-mail them to me.


  • OpenBSD 3.9
  • Apache 2.2.X
  • neon-0.25.5
  • subversion-1.4.0
  • libltdl-1.5.22p1
  • libtool-1.5.22
  • libxml-2.6.16p8
  • python-2.3.5p3
  • swig-1.3.24p1
  • gmake-3.80p1
  • wget-1.10.2p0(makes web download so much easier)


Install OpenBSD on a PC with at least 1 network interface card and assign it an IP address and make sure it has internet access ( Then login to the console and add/install the packages above via pkg_add


Download and install Neon 25.5

tar xfz neon-0.25.5.tar.gz
cd neon-0.25.5
./configure --with-ssl && make && make install && cd ..

Download and install Apache 2.2.X

tar xfz
cd httpd-2.2.X
./configure --enable-dav --enable-dav-fs --enable-vhost-alias --enable-headers --enable-so \
--enable-maintainer-mode --enable-ssl --enable-deflate && make && make install && cd..

Download and install Subversion 1.40

tar xfz subversion-1.4.0.tar.gz
cd subversion-1.4.0
./configure --with-apr=/usr/local/apache2/bin/apr-1-config --with-apr-util=/usr/local/apache2/bin/apu-1-config \
--with-zlib --with-apxs=/usr/local/apache2/bin/apxs --with-swig=/usr/local/bin/swig \
--enable-swig-bindings=perl,python --enable-maintainer-mode --with-httpd=/root/httpd-2.2.3
gmake && gmake install && cd ..


Configure Subversion user/group and repository.

useradd -u3690 -g=uid -c"Subversion" -d/var/empty -s/sbin/nologin _svn
mkdir /var/svn && mkdir /var/svn/svnrepos
svnadmin create /var/svn/svnrepos/svnrepo0
svnadmin create /var/svn/svnrepos/svnrepo1
svnadmin create /var/svn/svnrepos/svnrepo2
chown -R _svn:_svn /var/svn/svnrepos

Edit the Apache2 httpd.conf to read subversion repositories


Apache Module Config:

# LoadModule foo_module modules/
LoadModule dav_svn_module     modules/
LoadModule authz_svn_module   modules/

Apache User & Group Config

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User _svn
Group _svn

Apache SVN Directive Config

    DAV svn
    SVNListParentPath on
    SVNParentPath /var/svn/svnrepos
#    AuthzSVNAccessFile /home/YOUR_USERNAME/svn/obj-sh/subversion/tests/cmdline/svn-test-work/authz
#    AuthType Basic
#    AuthName "SVN repos"
#    AuthUserFile /home/YOUR_USERNAME/svn/dav_svn.passwd
#    Require valid-user

Start Apache2 to start svn repo

/usr/local/apache2/apachectl start

Add Apache2 to startup and shutdown scripts


if [ -x /usr/local/apache2/bin/httpd ]; then
        echo -n ' Apache2 & Subversion';        /usr/local/apache2/apachectl start


if [ -x /usr/local/apache2/bin/httpd ]; then
        echo -n ' Apache2 & Subversion';        /usr/local/apache2/apachectl stop

Reboot the system to test and enjoy!

Speak Your Mind