Send a link

SVN


Introduction

This article is under construction and will explain how to install and maintain SVN (Subversion) on FreeBSD with Apache2 and DAV

Installation

Install from ports /usr/ports/devel/subversion
Show default and/or recommended options

Setup Apache

Add modules to httpd.conf
Show example lines

Setup Virtual Host

Add SVN specific options
Add DAV specific options
Use Digest as auth
Use Authz as ACL
Show full example

Using Digest as auth

Explain htdigest usage here
Give examples
htdigest -c .svn-digest-pw Repo username

The -c option is to create the file. Only use this option with the first user added :-)

Using Authz as ACL

Explain file format here
Give examples

Importing code for the first time

Give example (remember to point out the importance of "trunk")
svnadmin create confighell
mkdir -p import/trunk
cp -R ~/home/devel/* import/trunk/
cd import
svn import http://svn.confighell.com/svn/confighell/

This will make sure that you have an initial "trunk" folder as suggested by the SVN docs. The reason to have it, is when you start multiple branches you will (should) make a directory on the same level called "branches".