OpenGrok is an unmaintained package and at least for me did not seem to work out of the box.
After a bit of struggle, I got it working in a Jail. Would this be a useful guide to the community?
I should add, it was saving some files to /var/ rather than somewhere in /usr/local. This might be...