4.3. SVN

4.3.1. Overview

SVN is also managed via plugin – the scmsvn plugin is included and activated by default in GForge. As with scmcvs, you have to move the scmcvs/etc/plugins/* files to /etc/gforge/plugins/* and may have to make minor modifications for your specific setup.

There are two ways to manage SVN – one is to have SVN over DAV and the other is to have SVN over SSH just as you do with CVS. If you choose to use DAV, you will need the mod_auth_gforge library compiled and installed in your apache and the appropriate virtual host settings in your httpd.conf. mod_auth_gforge is available from gforge.org. The cronjobs to manage SVN are in cronjobs/dav-svn/ and so are sample httpd.conf virtual host settings. Each of these cronjobs has configuration parameters which you may have to edit manually for your specific system.

Configuring svnserv for svn-over-ssh:

4.3.2. Installation

Note

Instructions here are far from complete.

#Create default location for SVN repositories
mkdir /svnroot

# Optional - Set up some basic files for SVN-over-DAV only
mkdir /var/www/svn
cp /var/www/gforge/cronjobs/dav-svn/www/* /var/www/svn/

#copy the scmsvn config files to /etc/gforge/
cp -R gforge/plugins/scmsvn/etc/plugins/scmsvn/ /etc/gforge/plugins/