#contents *trac [#r4406db4] portinstall japanese/trac ******************************************************************************* ===> Registering installation for ja-trac-0.11.3 ===> Cleaning for py-subversion-1.6.0_2 ===> Cleaning for subversion-1.6.0_2 ===> Cleaning for ja-trac-0.11.3 一度、ApacheをDBコンパイルオプション付きで再コンパイルするようにアラートがでて止まる。Apacheを再コンパイルしてOKがでた。 **使用準備 [#v6bb5f41] k222# mkdir -p /usr/local/www/apache22/data/trac/sandbox k222# trac-admin /usr/local/www/apache22/data/trac/sandbox initenv Creating a new Trac environment at /usr/local/www/apache22/data/trac/sandbox Project Name [My Project]> sandbox ( Enter ) Database connection string [sqlite:db/trac.db]> ( Enter ) Repository type [svn]> ( Enter ) Path to repository [/path/to/repos]> /usr/local/www/apache22/data/trac/sandbox ( Enter ) : : : Congratulations! k222# chown -R www:www /usr/local/www/apache22/data/trac/sandbox **mod_python Install [#s49ae2fc] k222# portinstall www/mod_python3 ================================================================================ Also remember to add to your Apache configuration in the appropriate context: PythonPath "['/path/to/foo', '/path/to/bar']" AddHandler python-program .py PythonHandler foobar PythonDebug On For more information, see http://www.modpython.org/. ================================================================================ **Apache Setting [#rf41f95f] # vi /usr/local/etc/apache22/httpd.conf 追加。 LoadModule python_module libexec/apache22/mod_python.so 後は見えるように設定。 # vi /usr/local/etc/apache22/Includes/trac.conf <Location /trac> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /usr/local/www/apache22/data/trac PythonOption TracUriRoot /trac </Location> **subversion [#e79ada0a] http://www.caldron.jp/~nabetaro/svn/svnbook-1.5-final/svn-book.html k222# portinstall devel/subversion がエラーするので?? 、 cd /usr/ports/devel/subversion make make install ===> Installing rc.d startup script(s) ===> Compressing manual pages for subversion-1.6.0_2 ===> Registering installation for subversion-1.6.0_2 http://cocelo.s201.xrea.com/wiki/index.php?BSD%2FFreeBSD%2FSubversion httpd.conf に dav_module が二つあると思うので一つを削除 or コメントアウト。 # cat /usr/local/etc/apache22/httpd.conf | grep dav_module LoadModule dav_module libexec/apache22/mod_dav.so LoadModule dav_module libexec/apache22/mod_dav.so # vi /usr/local/etc/apache22/httpd.conf #LoadModule dav_module libexec/apache22/mod_dav.so **Sandbox ( 練習用リポジトリ ) の作成 [#l7b4304a] # mkdir -p /usr/local/var/svn/repos # svnadmin create /usr/local/var/svn/repos/sandbox # chown -R svn:svn /usr/local/var/svn/repos/sandbox **OpenSSH on Subversion [#aa600ba8] svn専用ユーザを追加する。 # pw groupadd -n svn # pw useradd -n svn -c "Subversion Comit User" -d /home/svn -g svn -h - -s /bin/sh # mkdir -p /home/svn/.ssh # chown -R svn:svn /home/svn 一般ユーザの公開鍵を /home/svn/.ssh にコピーする。 通常の公開鍵だとシェルでのログインも出来てしまうので、 command 等を公開鍵の先頭に追記する。 ( 実際は一行 ) command="svnserve -t --tunnel-user=コミットユーザ名 -r /usr/local/var/svn/repos" ,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-dss AAAAB(中略)M6BA== ****@examle.com sshd_config で AllowUsers を設定している場合は svn ユーザを追加する。 # grep AllowUsers /etc/ssh/sshd_config AllowUsers user svn # /etc/rc.d/sshd restart **Apache WebDAV on Subversion [#ze991b71] # vi /usr/local/etc/apache22/Includes/subversion.conf <Location /svn> DAV svn SVNParentPath /usr/local/var/svn/repos SVNListParentPath On <LimitExcept GET PROPFIND OPTIONS REPORT> Deny from all </LimitExcept> </Location> リポジトリ一覧を見せたくない場合は SVNListParentPath を off にする。 ---- #counter([total|today|yesterday]); &lastmod; ----