teichmann@452: A simple mod_python based web application to render the 
teichmann@452: build reports of treepkg.
teichmann@453: 
teichmann@453: Tested on Debian 5.0 Lenny
teichmann@453: 
teichmann@453: # apt-get install apache2
teichmann@453: # apt-get install libapache2-mod-python
teichmann@453: # apt-get install apt-get install python-lxml
teichmann@453: 
teichmann@453: Copy web dir into a place which is served by apache.
teichmann@453: Create an .htaccess file in web:
teichmann@453: ---8<---
teichmann@453: AddHandler mod_python .py
teichmann@453: DirectoryIndex index.py
teichmann@453: PythonHandler mod_python.publisher
teichmann@453: --->8---
teichmann@453: 
teichmann@453: Create sub directories in web/treepkgs for each
teichmann@453: treepkg which reports should be served. Edit
teichmann@453: the treepkg.xml file in these directories to
teichmann@453: provide some extra information about the treepkgs.
teichmann@453: See web/treepkgs/demo as an example.
teichmann@453: 
teichmann@453: Use rsync at the treepkg side to push the
teichmann@453: reports to the corresponding treepkgs directory:
teichmann@453: 
teichmann@453: $ rsync -avz \
teichmann@453:   --exclude 'debian' --exclude 'src' \
teichmann@453:   --exclude 'binary' --exclude '*checkout*' \
teichmann@453:   --exclude '*.html' $TREE_PKG/mill/tracks/ $DEST/tracks
teichmann@492: 
teichmann@492: If you want to generate RSS feeds for the build errors:
teichmann@492: 
teichmann@492: # apt-get install python-pyrss2gen
teichmann@492: 
teichmann@492: copy bin/generate-rss.py to a place where it can be run as a cronjob.
teichmann@492: Adjust BASE_URL in the to fit your installation.
teichmann@492: 
teichmann@492: ---8<---
teichmann@492: */7 * * * * /where/you/placed/generate-rss.py /where/you/placed/buildlogs/treepkgs
teichmann@492: --->8---
teichmann@492: