===========================================================================
$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 /usr/pkg/share/opengrok/bin/OpenGrok with the following options
   to install source.war to /usr/pkg/share/tomcat/webapps.

	# JAVA_HOME=/usr/pkg/java/openjdk8 \
		OPENGROK_WAR_TARGET_TOMCAT=/usr/pkg/share/tomcat/webapps \
		/usr/pkg/share/opengrok/bin/OpenGrok deploy

4. Prepare your code repository in /usr/pkg/share/opengrok/var/opengrok
   directory.
	# mkdir -p /usr/pkg/share/opengrok/var/opengrok/src
	$ cd /usr/pkg/share/opengrok/var/opengrok/src
	$ git clone your-repository.git

5. Run /usr/pkg/share/opengrok/bin/OpenGrok with the following options
   to index your code repository.

	# JAVA_HOME=/usr/pkg/java/openjdk8 \
		/usr/pkg/share/opengrok/bin/OpenGrok update

6. Start Apache Tomcat server.

7. Access http://localhost:8080/source/ .
===========================================================================
