Making a new SVN repo on shimako
Procedure
- open httpd.conf, go to end of file
import the template fragment in vim with :r svnpath_template
- Do the substitution
- restart apache
- update the svnauth DB with users/groups
as root, svnadmin create /vaw/www/svn/REPONAME
- chown -R apache.apache /var/www/svn/REPONAME
you should now see rev0 at https://sachiko.meidokon.net/REPONAME/
- if syncing from another repo, you need to make a pre-revprop-change hook on sachiko
- create pre-revprop-change in the hooks dir, make it executable, then neuter it.
- chown it to apache:apache
from the src, run svnsync initialize https://sachiko.meidokon.net/REPONAME/ file:///path/to/src/repo
sync the repo with svnsync synchronize https://sachiko.meidokon.net/REPONAME/
- remove the pre-revprop-change hook script
- I guess you're set now
Template fragment
# :.,+17s/REPONAME/THE_REPO_NAME/ <Location /REPONAME> DAV svn SVNPath /var/www/svn/REPONAME AuthType Basic AuthName "Meidokon hosted subversion repositories - REPONAME" Auth_PG_database svnauth Auth_PG_user apache Auth_PG_pwd_table users Auth_PG_uid_field username Auth_PG_pwd_field password Auth_PG_grp_table groups Auth_PG_grp_user_field username Auth_PG_grp_group_field groupname Auth_PG_hash_type MD5 Require group REPONAME </Location>