subversionの設定などなど

開発用のサーバをつくることになったもろもろもろ。

subversionインストールはrpmもろもろを一気に突っ込むことで解決。

rpm -ivh もろもろ

ってかんじ。

んで、設定。

適当なディレクトリで自分プロジェクト作ります。

mkdir /tmp/projectlifeloveregret

cd /tmp/projectlifeloveregret

mkdir {branches,tags,trunk}

cp -r なんかプロジェクトのファイルだとか ./trunk

リポジトリ作ります。

cd /home/lifeloveregret

mkdir repos

cd repos

svnadmin create projectlifeloveregret

コンフィグいじります。

vim ./projectlifeloveregret/conf/svnserve.conf
[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

よくわからないので上記のように簡単に編集

vim ./projectlifeloveregret/conf/passwd
パスワードの設定は省略

xinetdに登録

vim /etc/xinetd.d/svnserve
service svn
{
        disable                 = no
        port                    = 3690
        socket_type             = stream
        protocol                = tcp
        wait                    = no
        user                    = ユーザ名
        server                  = /usr/bin/svnserve
        server_args             = -i -r /home/lifeloveregret/repos
}


servicesに登録

vim /etc/services
svnserve        3690/tcp                        #Subversion
svnserve        3690/udp                        #Subversion

xinetdをリスタート

/etc/init.d/xinetd restart

イニシャルインポート

svn import /tmp/projectlifeloveregret svn://ipアドレス/projectlifeloveregret -m "initial import"

こんな感じで。