LXR類似のソースコードクロスリファレンスツール
http://hub.opensolaris.org/bin/view/Project+opengrok/WebHome
debian lenny
tcpdumpのソース例。
cソースがあるフォルダの1階層上から指定した方が良いようだ。
CVSのフォルダは消した方が良いかもしれないが詳細未検証
# aptitude install sun-java6-jdk tomcat5.5 tomcat5.5-admin tomcat5.5-webapps exuberant-ctags $ tar xvzf opengrok-0.9.tar.gz /home/user/opengrok-0.9/bin# ./OpenGrok deploy Loading the default instance configuration ... Installing /home/user/opengrok-0.9/bin/../lib/source.war to /var/lib/tomcat5.5/webapps ... Start your application server (Tomcat), if it is not already running, or wait until it loads the just installed web application. OpenGrok should be available on <HOST>:<PORT>/source where HOST and PORT are configured in Tomcat.
/etc/tomcat5.5/policy.d/04webapps.policy に下記を追加
grant codeBase "file:${catalina.home}/webapps/source/-" { permission java.security.AllPermission; }; grant codeBase "file:${catalina.home}/webapps/source/WEB-INF/lib/-" { permission java.security.AllPermission; };
# /etc/init.d/tomcat5.5 restart Stopping Tomcat servlet engine: tomcat5.5. Starting Tomcat servlet engine: tomcat5.5. # ./OpenGrok index /home/user/tcpdump/ Loading the default instance configuration ... Aug 22, 2010 2:10:13 AM org.opensolaris.opengrok.history.RepositoryFactory getRepository WARNING: CVSRepository not working (missing binaries?): /home/user/tcpdump/tcpdump-3.9.8/lbl (中略) INFO: Starting indexExecution Aug 22, 2010 2:10:19 AM org.opensolaris.opengrok.index.IndexDatabase accept WARNING: Warning: could not read /home/user/tcpdump/tcpdump-3.9.8/tcpdump-3.9 # http://example.com:8180/source/