まだ書きかけ
メモリンク
http://dalab.gifu-nct.ac.jp/xoops/modules/pukiwiki/index.php?Subversion%2BTrac%A4%CE%B9%BD%C3%DB
http://demdem.cocolog-nifty.com/blog/2006/08/subversiontrac_2b5f.html
http://journal.mycom.co.jp/special/2006/trac/
# ./configure --with-mpm=prefork --enable-rewrite --enable-ssl --enable-dav # make # make install
Pythonとかぶるので再コンパイルします
# ./configure --with-pgsql \ --with-apxs2=/usr/local/apache2/bin/apxs \ --enable-zend-multibyte \ --enable-mbstring \ --with-gd \ --with-zlib-dir=/usr \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-freetype-dir=/usr \ --with-ttf \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --enable-simplexml \ --with-curl \ --enable-sockets \ --without-pdo-sqlite \ --without-sqlite # make # make install
http://httpd.apache.org/modules/python-download.cgi
Apache1.xにはMod_python2系、Apache2.xにはmod_python3系
# tar xvzf mod_python-3.3.1.tgz # cd mod_python-3.3.1 # ./configure --with-apxs=/usr/local/apache2/bin/apxs # make # make install
httpd.confに以下を追加
LoadModule python_module modules/mod_python.so
# tar xvzf subversion-1.4.3.tar.gz # tar xvzf subversion-deps-1.4.3.tar.gz # cd subversion-1.4.3 # ./configure --with-apr=/usr/local/apache2 \ --with-apr-util=/usr/local/apache2 \ --without-berkeley-db \ --with-swig # make # make install # make swig-py # make install-swig-py # cd /usr/lib/python2.3/site-packages # ln -s /usr/local/lib/svn-python/* .
リポジトリ配置ディレクトリを作成
# mkdir /usr/local/apache2/htdocs/svn
# svnadmin create --fs-type fsfs /usr/local/apache2/htdocs/svn/test_dev # chown -R nobody.nobody /usr/local/apache2/htdocs/svn
# /usr/local/apache2/bin/htpasswd -c /usr/local/apache2/htdocs/.htpasswd_trac user
# vi /usr/local/apache2/conf/httpd.conf
以下2行があることを確認
LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so
以下を追加
<Location /svn_rep> DAV svn SVNParentPath /usr/local/apache2/htdocs/svn AuthType Basic AuthName "Project repository" AuthUserFile /usr/local/apache2/htdocs/.htpasswd_trac Require valid-user </Location>
# wget http://www.clearsilver.net/downloads/clearsilver-0.10.4.tar.gz # tar xvzf clearsilver-0.10.4.tar.gz # cd clearsilver-0.10.4 # make # make install
http://pyxml.sourceforge.net/topics/
# tar xvzf PyXML-0.8.4.tar.gz # cd PyXML-0.8.4 # python setup.py install
# tar xvzf trac-0.10.3.1.tar.gz # cd trac-0.10.3.1 # python setup.py install # mkdir /usr/local/apache2/htdocs/trac
http://www.i-act.co.jp/project/products/products.html
# rm -fr /usr/lib/python2.3/site-packages/trac # wget http://www.i-act.co.jp/project/products/downloads/trac-0.10.3.1-ja-1.zip # unzip trac-0.10.3.1-ja-1.zip # cd trac-0.10.3.1-ja-1 # python setup.py install
# trac-admin /usr/local/apache2/htdocs/trac/test_dev initenv Project Name: プロジェクト名 Database connection string: 何も入力しない Repository type: 何も入力しない Path to repository: /usr/local/apache2/htdocs/svn/test_dev Templates directory: 何も入力しない
# chown -R nobody.nobody /usr/local/apache2/htdocs/trac
文字コードを変更する
# vi /usr/local/apache2/htdocs/trac/test_dev/conf/trac.ini [trac] default_charset = utf-8
Alias /trac "/usr/share/trac/htdocs/" <Location "/projects"> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracUriRoot /projects PythonOption TracEnvParentDir /usr/local/apache2/htdocs/trac </Location> <LocationMatch "/projects/[^/]+/login"> AuthType Basic AuthName "Trac" AuthUserFile /usr/local/apache2/htdocs/.htpasswd_trac Require valid-user </LocationMatch>
dav_svn
http://localhost/svn/test_dev/
プロジェクト一覧
http://localhost/projects/
プロジェクト詳細
http://localhost/projects/test_dev/