MeidokonWiki:

Making a new SVN repo on shimako

Procedure

  1. open httpd.conf, go to end of file
  2. import the template fragment in vim with :r svnpath_template

  3. Do the substitution
  4. restart apache
  5. update the svnauth DB with users/groups
  6. as root, svnadmin create /vaw/www/svn/REPONAME

  7. chown -R apache.apache /var/www/svn/REPONAME
  8. you should now see rev0 at https://sachiko.meidokon.net/REPONAME/

  9. if syncing from another repo, you need to make a pre-revprop-change hook on sachiko
    1. create pre-revprop-change in the hooks dir, make it executable, then neuter it.
    2. chown it to apache:apache
    3. from the src, run svnsync initialize https://sachiko.meidokon.net/REPONAME/ file:///path/to/src/repo

    4. sync the repo with svnsync synchronize https://sachiko.meidokon.net/REPONAME/

    5. remove the pre-revprop-change hook script
  10. 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>

MeidokonWiki: furinkan/Making_new_svn_repo_on_shimako (last edited 2011-11-29 04:50:23 by furinkan)