gentooにsubversionのインストール
#emerge subversion
* Man pages are not installed for most modules now. * Please use perldoc instead. * Subversion Server Notes * ----------------------- * * If you intend to run a server, a repository needs to be created using * svnadmin (see man svnadmin) or the following command to create it in * /var/svn: * * emerge --config =dev-util/subversion-1.3.2-r3 * * If you upgraded from an older version of berkely db and experience * problems with your repository then run the following commands as root: * db4_recover -h /var/svn/repos * chown -Rf apache:apache /var/svn/repos * * Subversion has multiple server types, take your pick: * * - svnserve daemon: * 1. edit /etc/conf.d/svnserve * 2. start daemon: /etc/init.d/svnserve start * 3. make persistent: rc-update add svnserve default * * - svnserve via xinetd: * 1. edit /etc/xinetd.d/svnserve (remove disable line) * 2. restart xinetd.d: /etc/init.d/xinetd restart * * - svn over ssh: * 1. Fix the repository permissions: * groupadd svnusers * chown -R root:svnusers /var/svn/repos/ * chmod -R g-w /var/svn/repos * chmod -R g+rw /var/svn/repos/db * chmod -R g+rw /var/svn/repos/locks * 2. create an svnserve wrapper in /usr/local/bin to set the umask you * want, for example: * #!/bin/bash * umask 002 * exec /usr/bin/svnserve "$@" * * If you intend to use svn-hot-backup, you can specify the number of * backups to keep per repository by specifying an environment variable. * If you want to keep e.g. 2 backups, do the following: * echo '# hot-backup: Keep that many repository backups around' > /etc/env.d/80subversion * echo 'SVN_HOTBACKUP_NUM_BACKUPS=2' >> /etc/env.d/80subversion *
emerge apache
* * Generating self-signed test certificate in /etc/apache2/ssl... * * Installing default webroot to //var/www/localhost * * Please add the 'apache2' flag to your USE variable and (re)install * any additional DSO modules you may wish to use with Apache-2.x. * Addon modules are configured in /etc/apache2/modules.d/ *
emerge --config =dev-util/subversion-1.3.2-r3
Configuring pkg... * >>> Initializing the database in /var/svn... * >>> Populating repository directory ... * >>> Setting repository permissions ...
よさげ・・・
リポジトリを作る
svnadmin create /var/svn/reps
とりあえず起動してみる
/etc/init.d/svnserve start
自動起動の設定
rc-update add svnserve default
emacs /var/svn/repos/conf/svnserver.conf
以下のように修正
### This file controls the configuration of the svnserve daemon, if you ### use it to allow access to this repository. (If you only allow ### access through http: and/or file: URLs, then this file is ### irrelevant.) ### Visit http://subversion.tigris.org/ for more information. [general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults. anon-access = none auth-access = write ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the conf directory. ### Uncomment the line below to use the default password file. password-db = passwd ### The authz-db option controls the location of the authorization ### rules for path-based access control. Unless you specify a path ### starting with a /, the file's location is relative to the conf ### directory. If you don't specify an authz-db, no path-based access ### control is done. ### Uncomment the line below to use the default authorization file. # authz-db = authz ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm, they should ### have the same password database, and vice versa. The default realm ### is repository's uuid. # realm = My First Repository
passwdを必要時応じて編集
emacs /etc/conf.d/svnserve
は以下。なにもしてない
# The commented variables in this file are the defaults that are used # in the init-script. You don't need to uncomment them except to # customize them to different values. # Options for svnserve #SVNSERVE_OPTS="--root=/var/svn" # User and group as which to run svnserve #SVNSERVE_USER="apache" #SVNSERVE_GROUP="apache"