Debianにcheckinstallを使ってgit-daemonを入れる

Debian squeezeのgit-coreにgit-daemonが入ってなかったのでソースから入れる.


まず,checkinstallを入れる.

$ sudo apt-get install checkinstall


次に、git-1.7.1のソースを取ってきて,コンパイル

$ wget http://kernel.org/pub/software/scm/git/git-1.7.1.tar.bz2
$ tar xjfv git-1.7.1.tar.bz2
$ cd git-1.7.1

GUIは使わないのでオフに.
$ ./configure --with-tcltk=no

$ make


git-daemonを別のディレクトリに移す.

$ cd ..
$ mkdir git-daemon
$ cp git-1.7.1/git-daemon git-daemon/
$ cd git-daemon


Makefileを作る.

$ vi Makefile
install:
        cp git-daemon /usr/local/bin


checkinstallでインストール.

$ sudo checkinstall


そのままリターン.

The package documentation directory ./doc-pak does not exist. 
Should I create a default set of package docs?  [y]:


「git-daemon」とでも入力しておく.入力が終わったら2回リターン.

このパッケージの説明を書いてください
説明の末尾は空行かEOFにしてください。
>> git-daemon
>> 


2を選んでパッケージ名をgit-daemonと変更しておく.バージョンも1.7.1に変更しておく.

このパッケージは以下の内容で構成されます: 

0 -  Maintainer: [ yourname ]
1 -  Summary: [ git-daemon ]
2 -  Name:    [ git-daemon ]
3 -  Version: [ 1.7.1 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ git-daemon ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ git ]
12 - Conflicts: [  ]
13 - Replaces: [  ]


あとは勝ってにインストールされる.インストール後は,.debパッケージが作成されるので必要なら保存しておく.

$ ls git-daemon_1.7.1-1_i386.deb


アンインストール.

$ dpkg -r git-daemon