Trac

ネットワーク上のiBookG4を使う

tracのインストール

$ sudo port install trac

"hogehoge"プロジェクトtracの設定

$ mkdir ~/trac
$ cd ~/trac
$ trac-admin hogehoge initenv

リポジトリパスを/Users/oppara/svn-repos/hogehoge/に設定

~/trac/hogehoge/conf/trac.iniで設定修正


tracd起動

$ tracd --port 8000 /Users/oppara/trac/hogehoge

http://ibook-g4:8000/hogehoge

認証機能追加(adminユーザーを設定)

$ htpasswd -c ~/trac/trac.htpasswd oppara


設定されてるパーミッションを表示

$ trac-admin /Users/oppara/trac/hogehoge permission list


アドミン権限設定

$ trac-admin /Users/oppara/trac/hogehoge permission add oppara TRAC_ADMIN


tracd起動

$ tracd --port 8000 --basic-auth *,/Users/oppara/trac/trac.htpasswd,ibook-g4 /Users/oppara/trac/hogehoge

プラグインのインストール

プラグインのインストールに必要となるツールsetuptoolsをインストール

$ curl -O http://peak.telecommunity.com/dist/ez_setup.py
$ sudo python ez_setup.py
WebadminPlugin
$ cd ~/tmp
$ svn co http://svn.edgewall.com/repos/trac/sandbox/webadmin/ 
$ cd webadmin
$ python setup.py bdist_egg
$ cp dist/TracWebAdmin-0.1.2dev_r4429-py2.4.egg ~/trac/hogehoge/plugins/

trac.iniに設定

$ vi ~/trac/hogehoge/conf/trac.ini

[components]
webadmin.* = enabled

TimingAndEstimationPlugin
$ cd ~/tmp
$ svn co http://trac-hacks.org/svn/timingandestimationplugin/trunk timingandestimationplugin
$ cd timingandestimationplugin
$ python setup.py bdist_egg
$ cp dist/timingandestimationplugin-0.3.7-py2.4.egg ~/trac/hogehoge/plugins/
$ trac-admin /Users/oppara/trac/hogehoge upgrade
ScrumBurndownPlugin
$ cd ~/tmp
$ svn co http://trac-hacks.org/svn/scrumburndownplugin scrumburndownplugin
$ cd scrumburndownplugin
$ python setup.py bdist_egg
$ cp dist/TracBurndown-01.05.10-py2.4.egg ~/trac/hogehoge/plugins/
$ trac-admin /Users/oppara/trac/hogehoge upgrade

とりあえず、upgradeを忘れない。


日本語版に差換え

trac-ja

$ mkdir ~/bin
$ sudo port uninstall trac
$ curl -O http://www.i-act.co.jp/project/products/downloads/trac-0.10.3-ja-1.zip
$ unzip trac-0.10.3-ja-1.zip 
$ cd trac-0.10.3-ja-1
$ sudo python ./setup.py install --prefix=/path/to/somewhere|tee log

prefixの指定をすれば、portで入れたtracのアンインストールはしなくても可、というか指定しないと
/opt/local/Library/Frameworks/Python.framework/Versions/2.4
なんてとこにインストールされる、、、

  • "hogehoge"プロジェクトtracの設定を最初からやりなおすこと。ToT