# Hatchet Installation Instructions
# v 0.9.2
# Jason Dixon <jason@dixongroup.net>
# http://www.dixongroup.net/hatchet/
#
# These directions are primarily for installing in OpenBSD.
# Other *BSD users will need to adapt these directions for
# their particular situation.
#
# Hatchet now uses the default OpenBSD httpd chroot.  This
# is made possible thanks to mod_perl.  No special effort
# is required outside of the instructions listed below.
#

1) Install the Hatchet directory

	$ tar zxvf hatchet-0.9.2.tar.gz
	$ sudo mv hatchet-0.9.2 /var/www/hatchet

2) Install the following Perl modules

	DBI (databases/p5-DBI)
	DBD::Chart (databases/p5-DBD-Chart)
	DBD::SQLite (databases/p5-DBD-SQLite)
	GD (graphics/p5-GD)
	GD::Text (graphics/p5-GD-TextUtil)
	HTML::Template (www/p5-HTML-Template)

3) Install mod_perl (www/mod_perl) and enable the module

	$ sudo mod_perl-enable

4) Add an entry in httpd.conf and restart httpd.  Example:

        <VirtualHost _default_:80>
            DocumentRoot /var/www/hatchet
            PerlModule Apache::PerlRun
            <Location /cgi/>
                SetHandler perl-script
                PerlHandler Apache::PerlRun
                PerlRequire /var/www/hatchet/cgi/startup.pl
                Options ExecCGI
                PerlSendHeader On
                allow from all
            </Location>
        </VirtualHost>

5) Create the database

	$ cd /var/www/hatchet/sbin/
	$ sudo ./hatchet_mkdb

6) Add the following lines in crontab.  If done as a non-root user, 
    make sure to use sudo.

	14,29,44,59 * * * *     sudo /var/www/hatchet/sbin/hatchet
	19,34,49,04 * * * *     sudo /var/www/hatchet/sbin/hatchart

7) Voila!  That should be everything.  If I've forgotten something, 
   or it's not working quite right for you, please email me at 
   jason@dixongroup.net and I'll try to help out.  Enjoy!
