HOW TO SETUP
------------

1. Directory of the build process
---------------------------------

Create a directory (outside from webserver access)
for the scripts, temporary files and logs of the build process.
Set variable SCRIPTDIR in gallery-build.sh to this PATH
and put all the files and also the directory 'static'
from this directory thereto

2. Webserver DocumentRoot
-------------------------

Create a directory to put the webfiles to.
Set variable HTMLDIR in gallery-build.sh to this PATH.
Create a subdirectory 'distro' and a subdirectory 'contrib' therin.
Under each of these also create a subdirectory 'svn'.
Put the directory 'static' from the subdirectory 'www' into HTMLDIR

So HTMLDIR should initially have this structure:

.
./contrib
./contrib/svn
./distro
./distro/svn
./static
./static/css
./static/css/_response.scss	(optionnal, CSS source)
./static/css/style-doc.css
./static/css/style-doc.scss	(optionnal, CSS source)
./static/css/style.css
./static/css/style.scss		(optionnal, CSS source)
./static/img
./static/img/download.gif
./static/img/favicon.ico
./static/img/glyphicons-208-remove-2-white.png
./static/img/glyphicons-390-new-window-alt-white.png
./static/img/logo-h-neg.png
./static/img/logo-h-neg.svg
./static/js
./static/js/jquery-1.8.3.js
./static/js/script.js

Setup vhost for the gallery in your webservers configuration.

3. Ownership of webserver files
-------------------------------

If you want to set another ownership for the webserver files
run the build process under user root, and set variable 
WWWUSER and WWWGROUP in gallery-build.sh and 
gallery-contrib-build.sh accordingly.

4. Setup a daily cronjob
------------------------

Place a file with content like this under /etc/cron.d/ 

------ 8< ------
# Create fresh build of the Munin Plugin Gallery
10 22 * * * gap /home/gap/projects/munin/github/munin/contrib/plugin-gallery/gallery-build.sh
------ >8 ------
