#author("2019-09-27T05:27:31+09:00","default:kuji","kuji")
#author("2019-09-27T05:28:10+09:00","default:kuji","kuji")
[[SVN Trac on FreeBSD]]

CONTENTS
#contents
----
Lastmodified &lastmod;
----
*SVN trac-1.2.3 on FreeBSD 11.3-RELEASE-p1  Apache24 [#ub7901f4]


*** portinstall www/trac --batch [#z401e93a]

とすると、subversion が依存関係として自動インストールされる様になったようだ。2019/09/27

*** portinstall devel/subversion --batch [#w5017867]

*** echo svnserve_enable="YES" >> /etc/rc.conf [#y54a3bd7]
*** /usr/local/etc/rc.d/svnserve start [#i1003189]

 kernel: Starting svnserve.
 kernel: su: 
 kernel: unknown login: svn

*** pw groupadd -n svn -g 90 [#pf441703]
*** pw useradd -n svn -u 90 -g svn -d /nonexistent -s /nonexistent [#ocad322a]

*** portinstall www/mod_dav_svn [#jda8d1f4]

これは、/usr/local/etc/apache24/httpd.conf の
 # LoadModule dav_module libexec/apache24/mod_dav.so
行をアンコメントする、もしくは、

 echo 'LoadModule dav_svn_module libexec/apache24/mod_dav_svn.so' >> /usr/local/etc/apache24/httpd.conf [#n79e6f27]
 echo 'LoadModule dav_svn_module libexec/apache24/mod_dav_svn.so' >> /usr/local/etc/apache24/httpd.conf


*** apachectl restart [#tdb8e226]

*** /usr/local/etc/rc.d/svnserve start [#f8c9b732]

*** mkdir -p /usr/home/svn/repos [#j52f1fc0]

*** svnadmin create /usr/home/svn/repos/「リポジトリー名」 [#w45684c3]
   106  6:55    cd /usr/home/svn/repos/「リポジトリー名」


   153  11:24   chown -R www:www /usr/home/svn


** trac [#o04d0594]

   160  12:16   trac-admin /usr/local/www/apache24/data/trac/sandbox initenv
   161  12:17   chown -R www:www /usr/local/www/apache24/data/trac/sandbox
   162  12:19   apachectl restart
   163  12:20   locate mod_python3
   164  12:20   portinstall www/mod_python35
   165  12:21   apachectl restart

 ================================================================================
 
 The mod_python module is no longer activated in httpd.conf!
 There is now a dedicated modules file in etc/apache24/modules.d
 
 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/.
 
 ================================================================================



/usr/local/etc/apache24/modules.d/270_mod_python.conf

 LoadModule python_module libexec/apache24/mod_python.so ←これをアンコメントする

/usr/local/etc/apache24/Includes/trac.conf
 <Location /trac>
	SetHandler mod_python
	PythonHandler trac.web.modpython_frontend
	PythonOption TracEnvParentDir /usr/local/www/apache24/data/trac
	PythonOption TracUriRoot /trac
 </Location>

**/usr/local/www/trac/「リポジトリー名」/conf/trac.ini [#s1a2f1d0]

 [authz_policy]
 authz_file = 
 
 [components]
 tracopt.versioncontrol.svn.svn_fs.subversionconnector = enabled
 webadmin.* = enabled
 
 [repositories] 
  dir = /usr/home/svn/repos/「リポジトリー名」
  sync_per_request = true
 
 [trac]
 repository_dir = /usr/home/svn/repos/「リポジトリー名」
 repository_sync_per_request = (default)
 repository_type = svn

以上の項目を追加。

----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS