Tracインストール
Debian etchなサーバにTracをインストールしたメモ。
Debian関連の情報はDebian GNU/Linux スレッドテンプレが便利。
apt設定
aptのsources.listを設定する。apt-spyでよきに計らってくれるようなので使ってみる。
$ sudo aptitude install apt-spy
$ sudo apt-spy -d etch -s JP -p proxy.example.co.jp:8080 SERVER: ftp.jp.debian.org Benchmarking FTP... Error: Operation timed out after 15 seconds with 0 bytes received Benchmarking HTTP... Downloaded 4626402 bytes in 2.77 seconds Download speed: 1629.84 kB/sec ... Writing new sources.list file: /etc/apt/sources.list
できたのはこんなの。
# sources.list generated by apt-spy v3.1 deb http://debian.shimpinomori.net/debian/ etch main deb-src http://debian.shimpinomori.net/debian/ etch main #deb http://security.debian.org/ stable/updates main
あんまりapt-spyの意味ない気もする…。追記して最終的にはこんなの。
deb http://debian.shimpinomori.net/debian/ etch main contrib non-free #deb-src http://debian.shimpinomori.net/debian/ etch main contrib non-free deb http://security.debian.org/ etch/updates main contrib non-free
sourceはたぶん使わないと思うのでコメントアウト。distribution名にstableと書くのは新バージョンのリリース時に勝手にアップグレードがかかるからたぶんあんまりよくないのでetchと書いておく(でも後でstableとかtestingって書かなきゃいけないところがあるけど)。
$ sudo aptitude update ... $ sudo aptitude upgrade ...
OK。
Tracインストール
Tracのパッケージは
とあるが、ゆくゆくは全体をlennyにすることを考えて今回はlennyのパッケージを入れることにする。
sources.listにlennyのapt-lineを追記。
deb http://debian.shimpinomori.net/debian/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free
/etc/apt/preferencesを設定。
Package: * Pin: release a=testing Pin-Priority: 90
aptのキャッシュサイズが足りないので/etc/apt/apt.conf.d/99CacheLimitを設定*1。
APT::Cache-Limit "100000000";
aptitudeでインストール。
$ sudo aptitude update
$ sudo aptitude install trac/testing ... 以下のパッケージを削除します: synaptic update-manager update-notifier 以下のパッケージをインストールします: gcc-4.3-base [4.3.2-1.1 (testing)] libcwidget3 [0.5.12-3 (testing)] libdb4.6 [4.6.21-11 (testing)] libept0 [0.5.22 (testing)] libgpm2 [1.20.4-3.1 (testing)] libtimedate-perl [1.1600-5 (stable)] libxapian15 [1.0.7-4 (testing)] lzma [4.43-5 (stable)] python-genshi [0.5.1-1 (testing)] 以下のパッケージを更新します: apt [0.6.46.4-0.1 (stable, now) -> 0.7.19+b1 (testing)] apt-utils [0.6.46.4-0.1 (stable, now) -> 0.7.19+b1 (testing)] aptitude [0.4.4-4 (stable, now) -> 0.4.11.11-1~lenny1 (testing)] dpkg [1.13.26 (stable, now) -> 1.14.24 (testing)] dpkg-dev [1.13.26 (stable, now) -> 1.14.24 (testing)] libc6 [2.3.6.ds1-13etch8 (stable, now) -> 2.7-16 (testing)] libc6-i686 [2.3.6.ds1-13etch8 (stable, now) -> 2.7-16 (testing)] libncursesw5 [5.5-5 (stable, now) -> 5.7+20081213-1 (testing)] libstdc++6 [4.1.1-21 (stable, now) -> 4.3.2-1.1 (testing)] locales [2.3.6.ds1-13etch8 (stable, now) -> 2.7-16 (testing)] python-apt [0.6.19 (stable, now) -> 0.7.7.1+nmu1 (testing)] python-central [0.5.12 (stable, now) -> 0.6.8 (testing)] python-support [0.5.6 (stable, now) -> 0.8.4 (testing)] tzdata [2008e-1etch3 (stable, now) -> 2008h-2 (testing)] 以下の依存関係を未解決のままにします: dpkg-dev が build-essential を推奨 スコアは -2606 です
libcはまあしょうがないとしてなぜかaptとか更新されました。スコアはとても低いです。
(いまここ)
DebianでのTrac日本語
と、普通にインストールできるのだけど、実は最初日本語パッケージを入れようとしてちょっと困った。
Debianにはtrac-ja-resourceという日本語リソースを提供するパッケージがあるのだが、etchのバージョンは0.8.4-2-1と古すぎ。lennyやbackportにはなくてsidにあるのが0.10.4-jp-1-2とこれも古い。しかもこれはピンポイントで0.10.4にしか対応してなくて、そんなバージョンのtracパッケージねーよってバグレポート出されてる(#493391 - trac-ja-resource does not support trac 0.11 - Debian Bug report logs)。
いろいろググってみるとメンテナの人の開発リポジトリを発見(http://tach.arege.net/trac/browser/debian/trac-ja-resource)。ここでは0.11.1.ja1まであるようだ。試してないのでうまくいくかは不明。
今のところ、日本語Tracを使いたい場合は、ソフト/Bug Tracking/trac/Debian4.0 - discypusでやっているように、インタアクトのTrac日本語版から自分でパッケージを作るのがいちばんいい気がする。例では0.10.4なので0.11.2でうまくいくかはわからないけど。
1/10追記
ええええ、そうだったの〜!
- Debian -- パッケージ検索結果 -- trac-ja-resource パッケージ
http://packages.debian.org/search?keywords=trac-ja-resource&searchon=names&suite=all§ion=all以下引用:
* etch (stable) (web): trac 用の日本語リソース 0.8.4-2-1: all * etch-m68k (web): trac 用の日本語リソース 0.8.4-2-1: all * lenny (testing) (web): trac 用の日本語リソース 0.10.4-ja-1-1: all * sid (unstable) (web): trac 用の日本語リソース 0.10.4-ja-1-1: all"パッケージをダウンロード(インストールしない)して、中身を確認してみた。
ソフト/Bug Tracking/trac/Debian4.0 - discypus
templateやwiki-defaultだけではなく、Trac自身も入っているようだ。
*1:/etc/apt/apt.confに書いてもよい