OpenGrok 0.11 has been just released (see Lubos' post with release notes). This is nice version number coincidence to try it on Solaris 11.
In case you are wondering what is OpenGrok, it is blindigly fast source code search and cross reference engine accessible over web.
It is written in Java. It is also behind the source code browser on src.opensolaris.org, albeit running older version.
For more information about the project take a look at its project page.
Now, how to get OpenGrok running for your source code base on Solaris 11. I will illustrate this on source code coming from three different Source Code Management systems (for complete support see the full list).
The complete setup on freshly installed Solaris 11 has 6 main steps:
pkg install developer/versioning/mercurial
pkg install developer/versioning/cvs
pkg install developer/versioning/git
pkg install developer/gcc-45
pkg install system/header
tar xfz ctags-5.8.tar.gz
./configure && make && make install
pkg install web/java-servlet/tomcat
pkgadd -d $location/OSOLopengrok-0.11.pkg OSOLopengrok
cvs -d firstname.lastname@example.org:/openssl-cvs co -rOpenSSL_1_0_0-stable openssl
hg clone ssh://email@example.com/hg/opengrok/trunk opengrok-dev
git clone http://git.samba.org/samba.git
# store the pubkeys
ssh-keyscan -t rsa,dsa cvs.openssl.org >> /etc/ssh/known_hosts
ssh-keyscan -t rsa,dsa hg.opensolaris.org >> /etc/ssh/known_hosts
/usr/opengrok/bin/OpenGrok deploy && \
svcadm enable tomcat6
svcadm enable opengrok
OpenGrok is now accessible at http://SERVER_HOSTNAME:8080/source/ (where SERVER_HOSTNAME is the hostname of the server on which the above setup was done).
Except for the part with ctags it is pretty streamlined and no brainer process. Hopefully the exuberant-ctags package will be available again from the standard Oracle pkg repositories.
And here is the result: