Subversion

From gr0x0rd
Revision as of 15:26, 13 March 2011 by Gr0x0rd (talk | contribs) (Created page with "== 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 …")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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