pkgsrc/devel/opengrok/MESSAGE
2015-09-04 12:14:29 +00:00

36 lines
1.3 KiB
Text

===========================================================================
$NetBSD: MESSAGE,v 1.3 2015/09/04 12:14:29 pgoyette Exp $
To use OpenGrok with your code repository, you will need to perform
the following steps.
1. Install version control software that is used for your code repository.
2. Install one of the following Apache Tomcat servers from pkgsrc.
- Apache Tomcat 6: pkgsrc/www/apache-tomcat6
- Apache Tomcat 7: pkgsrc/www/apache-tomcat7
- Apache Tomcat 8: pkgsrc/www/apache-tomcat8
3. Run ${PREFIX}/share/opengrok/bin/OpenGrok with the following options
to install source.war to ${PREFIX}/share/tomcat/webapps.
# JAVA_HOME=${PKG_JAVA_HOME} \
OPENGROK_WAR_TARGET_TOMCAT=${PREFIX}/share/tomcat/webapps \
${PREFIX}/share/opengrok/bin/OpenGrok deploy
4. Prepare your code repository in ${PREFIX}/share/opengrok/var/opengrok
directory.
# mkdir -p ${PREFIX}/share/opengrok/var/opengrok/src
$ cd ${PREFIX}/share/opengrok/var/opengrok/src
$ git clone your-repository.git
5. Run ${PREFIX}/share/opengrok/bin/OpenGrok with the following options
to index your code repository.
# JAVA_HOME=${PKG_JAVA_HOME} \
${PREFIX}/share/opengrok/bin/OpenGrok update
6. Start Apache Tomcat server.
7. Access http://localhost:8080/source/ .
===========================================================================