Subversion
Jump to navigation
Jump to search
Configuring Software - Subversion
If you do any type of development work, you'll probably want to use some type of version control, especially if you have multiple people working on the project or if you just want to take advantage of the easy way to deploy code.
$ sudo emerge -av subversion
Check that that apache2 USE flag is enabled before performing the emerge. After the emerge has completed, you can create a group for users who will have access to the repositories, including yourself. However, making yourself or any other users members of the apache group should be sufficient if you are wanting to use apache to leverage svn.
$ sudo gpasswd -a <username> apache
Create a repository. Substitute your repository's name in the place of reponame.
$ sudo svnadmin create --fs-type fsfs /var/svn/reponame/
Set permissions on the repository and subfolders.
$ sudo chown -R root:apache /var/svn/reponame/ $ sudo chmod -R g-w /var/svn/reponame/ $ sudo chmod -R g+rw /var/svn/reponame/db $ sudo chmod -R g+rw /var/svn/reponame/locks