揮発性のメモ2

http://d.hatena.ne.jp/iww/

cvsサーバをインストール

マシンを新調したのでレポジトリを移植する。しかし今更cvsとは!

apt-get

とりあえずプログラムを入れる

apt-get install inetutils-inetd
apt-get install cvs

なんかdebhelperが古いだかなんだか言って設定をしてくれないので自分で設定をいじる

Ignoring install-info called from maintainer script
The package cvs should be rebuilt with new debhelper to get trigger support

/etc/inetd.conf

inetd経由でcvsサーバが動くようにする

cvspserver      stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/cvs-pserver

/etc/cvs-pserver

cvsサーバの設定を変更

#CVS_PSERV_REPOS="/srv/cvs"
CVS_PSERV_REPOS="/var/lib/cvs"

あと/etc/cvs-cron.confもついでに編集する

レポジトリのコピー

cp -a cvs /var/lib

inetd起動

/etc/init.d/inetutils-inetd restart

動作確認

cvs login
cvs diff とかなんか適当

トラブル対応

cvs login出来ない

inetdが入ってないから

cvs loginは出来るけどそれ以外がうまく動かない

cvsdを中途半端にインストールしようとしたりするとこうなる
/var/lib/cvs/CVSROOT/passwdを編集なり削除なりする