LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2006, 01:47 AM   #1
diven
LQ Newbie
 
Registered: May 2005
Distribution: FC2/FC3
Posts: 9

Rep: Reputation: 0
Recommended Location(s) for Subversion Repos


Hi I'm investigating subversion at home, and my company is planning on migrating from cvs to subversion. I was wondering if there are any standard or recommended locations to put the subversion repository. Obviously you can put it anywhere, and I'm sure there are people who put it in different places for different reasons. But I'm sure there are a few standard spots that have reason for why they are there in the filesystem hierarchy.

The cvs manual seems to suggest /usr/local/cvsroot. I guess I could make a /usr/src/svnrepos. The subversion manual doesn't seem to get into setting up the repository location or give suggested locations.

In my home install I decided /var/svnrepos. (I'm using FC5 btw) I guess because a repository seems like variable data. Though after creating the repo, I can't add a project as user. I'm guessing I need to modify owner or group of the subversion repository directory and its subdirectories. For now I would like it so a group of admins could add projects and programmers could of course checkout, checkin and add new sources within an existing project.

Eventually I would like to setup remote access, and restricting certain projects to certain developers but I can do more research into those, and there appears to be more documentation on setting up remote access.

Cheers
 
Old 09-26-2006, 02:27 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
i personally use /var/svn or /var/lib/svn and create repositories in there

the reason for this is that the purpose of /var is for 'variable' data
whereas /usr if for 'user' data (hence /usr/local/bin for 'user appliactions')

if you check where other databases (subversion server uses berkleydb) have their root (mysql pgsql apt or yum) then you can follow that structure.

if you get into kernel compiling, you will also read that /urs/src is where you have software sources to compile (also kernel sources are installed here if you install using a package) - i don't think it would be the place for a databse.

Last edited by Nathanael; 09-26-2006 at 02:31 AM.
 
Old 09-26-2006, 02:55 PM   #3
diven
LQ Newbie
 
Registered: May 2005
Distribution: FC2/FC3
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks Nathanael,
I agree that the var partition makes more sense. It seems most other databases exist in /var/lib even though I wouldn't really clasify db's as state information. There is a /var/db folder but doesn't seem to be used by much and it isn't even part of the FSH standard.

Any advice on the repository file permission stuff. I think I'll just try creating a group svnadmin and changing the directory group, as well as giving write permission to the group.

Last edited by diven; 09-26-2006 at 02:57 PM.
 
Old 09-26-2006, 03:01 PM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
premissions depend on how you want to serve your repositories - if you want to use web_dev your webserver (most likley apache2) will require read and write premissions to your repositories.
if you want to use svnserve you can setup a new user and group, but make sure svnserv runs as that user!
 
Old 09-29-2006, 06:22 PM   #5
petersk
Member
 
Registered: Aug 2005
Distribution: Suse
Posts: 54

Rep: Reputation: 15
I've been researching this pretty recently myself and got mine up just last week for "home files". I would say about 40% of web sites show the subversion directory in /home, such as:
/home/svn or /home/subversion.

The funny thing is I only have one problem I cannot figure out, and that's how to have the web browser show all the available repositories in that directory. I can see the individual respositories, but not the list of all of them with the security I'm using.

Here's my subversion file in my "debian" /etc/apache2/sites-available directory. I set up both digest authentication, ssl, and an authorization file. I can't tell what the "Satisfy Any" does.

<VirtualHost 127.0.0.1:443 192.168.1.87:443>
ServerAdmin myemail
ServerName odin
# SSL activation
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

DocumentRoot /home/subversion
<Directory /home/subversion>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

#<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
#</LimitExcept>
</Directory>

# Note Alias goes to our DocumentRoot.
#Alias /webdav /home/subversion

# Log level and error log file location
# ErrorLog /var/log/Apache2/error.log
# LogLevel warn
#CustomLog /var/log/Apache2/access.log combined

<Location /svn>

# Uncomment this to enable the repository,
DAV svn

# Set this to the path to your repository
# SVNPath /var/lib/svn
SVNParentPath /home/subversion
SVNListParentPath on

AuthType Digest
AuthName "peters"
AuthDigestFile /etc/apache2/svn-admin/digest-password
SSLRequireSSL
# Uncomment the following line to enable Authz Authentication
AuthzSVNAccessFile /etc/apache2/auth-files/public-svn-authzfile
# SVNAutoVersioning On
# The following three lines allow anonymous read, but make
# committers authenticate themselves.
Satisfy Any
#<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
#</LimitExcept>

</Location>

</VirtualHost>


I hope this helps,
Kurt
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Core 5 repos james.farrow Fedora 3 02-24-2006 07:07 AM
how go is it to mix repos? greythorne Arch 3 06-27-2005 08:30 AM
Repos? jojojo Linux - Newbie 1 05-24-2005 03:09 PM
Contrib Repos ghight cAos 0 11-18-2004 12:38 PM
How to install Subversion(Version Control with Subversion) under RedHat Linux. netkiller Linux - Networking 1 07-01-2004 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration