Plague Web Setup
In plague's CVS repository, there is a 'www' directory. This contains python scripts used for displaying build info on a web page. An example of this can be view at the Fedora Extras Buildsys Site .
Here is how to get the scripts working on Apache in ten easy steps: 1. Copy the 'www' directory to your server. I put it in /usr/share/plague/www 2. Make sure you have mod_python installed. 'yum install mod_python' should do the trick. 3. There is no number three. 4. Tell apache to use mod_python for .psp pages. To do this, I added the following to /etc/httpd/conf.d/python.conf (which is part of the mod_python package)
AddHandler mod_python .psp PythonHandler mod_python.psp DirectoryIndex index.psp
5. Create aliases to tell apache where your build logs live. I created the following file as buildsys.conf in /etc/httpd/conf.d You could also add password protection to the directories if you want. Note that /local/plague/rpmbuild is where my logs are stored (this is the same as the server_work_dir setting in your plague-server.cfg). /usr/share/plague/www should be wherever you put the plague 'www' directory.
Alias /build/logs /local/plague/rpmbuild Alias /build /usr/share/plague/www <Directory /local/plague/rpmbuild/> Options +indexes </Directory>
6. Create a web user in plague (using plague-user-manager.py). Also, create a ssl cert for the user using the instructions in the plague README. 7. Copy the user cert, the user_ca cert, and the buildsystem_ca cert to /var/www/certs/ (or whichever directory you specify in the www/config.psp file 8. Edit www/config.psp to reflect where you have the above certs and your local server info. 9. Restart/reload apache to load your configuration changes 10. Go to http://buildserver.yourdomain.com/build and hope that it works! :)