Table of Contents

SVN HowTo

http://gentoo-wiki.com/HOWTO_Apache2_with_subversion_SVN_and_DAV

Installing SVN

Useflags: apache2 -nowebdav

emerge -va subversion
* Subversion Server Notes
 * -----------------------
 * 
 * If you intend to run a server, a repository needs to be created using
 * svnadmin (see man svnadmin) or the following command to create it in
 * /var/svn:
 * 
 *     emerge --config =dev-util/subversion-1.4.6
 * 
 * Subversion has multiple server types, take your pick:
 * 
 *  - svn over ssh:
 *    1. Fix the repository permissions:
 *         groupadd svnusers
 *         chown -R root:svnusers /var/svn/repos/
 *         chmod -R g-w /var/svn/repos
 *         chmod -R g+rw /var/svn/repos/db
 *         chmod -R g+rw /var/svn/repos/locks
 *    2. create an svnserve wrapper in /usr/local/bin to set the umask you
 *       want, for example:
 *          #!/bin/bash
 *          . /etc/conf.d/svnserve
 *          umask 002
 *          exec /usr/bin/svnserve ${SVNSERVE_OPTS} "$@"
 * 
 *  - http-based server:
 *    1. edit /etc/conf.d/apache2 to include both "-D DAV" and "-D SVN"
 *    2. create an htpasswd file:
 *       htpasswd2 -m -c /var/svn/conf/svnusers USERNAME
 * 
 * If you intend to use svn-hot-backup, you can specify the number of
 * backups to keep per repository by specifying an environment variable.
 * If you want to keep e.g. 2 backups, do the following:
 * echo '# hot-backup: Keep that many repository backups around' > /etc/env.d/80subversion
 * echo 'SVN_HOTBACKUP_NUM_BACKUPS=2' >> /etc/env.d/80subversion

Using it

http://gentoo-wiki.com/HOWTO_Subversion