This gets bugzilla working under httpd. I only tested it with SQLite so I'm sure it needs more help to work with mySQL or Postgres.
Some of the nice features are that it drops privileges to _bugzilla:_bugzilla and chroots into /var/www/bugzilla and of course that it runs as an FCGI and so works with the base httpd. I'm sure there are additional cleanups that can be done on permissions for this, but the important bit is the app.psgi that pre-compiles all the CGIs and loads all the modules into the Plack app that dispatches to the correct script. In order to test it with SQLite, you need to install this, then there are some additional instructions in /var/www/bugzilla/preload_modules. There is a sample httpd.conf in /var/www/bugzilla/contrib/httpd.conf.sample In order to test it, you will need to pkg_add p5-DBD-SQLite to use that backend, and then run (as root) /var/www/bugzilla/checksetup.pl and follow the instructions. I haven't tried installing or using any of the additional modules yet, and due to modifications, this is likely not going to be ideal for running under Apache and mod_perl2. Please give it a try and provide feedback. It does require an update of www/p5-CGI-Emulate-PSGI to 0.20 Index: Makefile =================================================================== RCS file: /cvs/ports/www/p5-CGI-Emulate-PSGI/Makefile,v retrieving revision 1.3 diff -u -p -r1.3 Makefile --- Makefile 21 Jan 2015 14:42:32 -0000 1.3 +++ Makefile 16 Feb 2015 02:47:08 -0000 @@ -3,7 +3,7 @@ COMMENT= PSGI adapter for CGI MODULES= cpan -DISTNAME= CGI-Emulate-PSGI-0.11 +DISTNAME= CGI-Emulate-PSGI-0.20 CATEGORIES= www # Perl Index: distinfo =================================================================== RCS file: /cvs/ports/www/p5-CGI-Emulate-PSGI/distinfo,v retrieving revision 1.2 diff -u -p -r1.2 distinfo --- distinfo 18 Jan 2015 03:15:40 -0000 1.2 +++ distinfo 16 Feb 2015 02:47:08 -0000 @@ -1,2 +1,2 @@ -SHA256 (CGI-Emulate-PSGI-0.11.tar.gz) = WF/Iu4pIvnsZYBvubbPnF9XpElGh1Wj3k5GwDiZ4Z4s= -SIZE (CGI-Emulate-PSGI-0.11.tar.gz) = 29654 +SHA256 (CGI-Emulate-PSGI-0.20.tar.gz) = OGUQayK4ig+lWCHIRiWs2/pHWLHTQcar5iYT02Pi08I= +SIZE (CGI-Emulate-PSGI-0.20.tar.gz) = 14321
www-bugzilla.tar.gz
Description: application/tar-gz