[Hatchet-users] Patches to support pfstat 2.2 and OpenBSD 4.0
David Yingling
deeelwy at yahoo.com
Tue Jan 2 22:12:46 EST 2007
I got annoyed that OpenBSD 4.0 has pfstat 2.2 in ports, but hatchet only supports pfstat 1.x, which means hatchet, even the latest version, doesn't support OpenBSD 4.0. So after figuring out that the problem was that pfstat's config file syntax has changed from version 1.x to 2.2, I sort of combined hatchet's supplied pfstat.conf with pfstat 2.2's example one (available from /usr/local/share/examples/pfstat/pfstat.conf after installing 4.0's pfstat port). I had to do this, because pfstat 2.2 has a different, even more obscure config file syntax than pfstat 1.x's, and I wanted to keep the filenames of the graphs the same, and not actually have to figure out the obscure config file syntax. I also added two potentially unwanted graphs to hatchet's daily.html and weekly.html files that provide graphs for queuing and 'pfctl -s info' counters. I added them, because they were in the example pfstat 2.2 example config file.
Attached is a tarball of a Changelog, the diffs, and the directory 'changed-versions,' which contains already patched versions of the files I changed, so you don't have to mess around with patch if you don't want to. Please note that these changes work for me, and they should work for you, because the changes are simple and obvious and not complicated.
Before you install the diffs make sure you have installed pfstat 2.2 from ports. To check if you already installed pfstat 2.2 run pkg_info with no arguments and see if it's listed in the output. To install these diffs use patch, or just replace your files with already patched versions in the changed-versions directory of the attached tarball if you don't feel like using patch. But if you want to use patch run it like this:
patch [oldversion] [patchfile]
[oldversion] = the path to one of the changed files, which are daily.html, hatchart, index.html, pfstat.conf, and weekly.html
[patchfile] = one of the patch files in the directory hatchet-4.0-patches that ends in .diff
example:
patch htdocs/index.html \ ../hatchet-4.0-patches/hatchet-0.8-rc1-index.html-to-added-favicon.ico.diff
Also, for the index.html favicon.ico change, you'll need to download the favicon.ico from http://www.dixongroup.net/hatchet/favicon.ico Use this command:
wget -P /var/www/htdocs/hatchet http://www.dixongroup.net/hatchet/favicon.ico
to download the icon to the right directory.
Finally, if you only want to get hatchet to work on OpenBSD 4.0 just patch pfstat.conf and install pfstat 2.2 from ports and follow the rest of the instructions in the INSTALL files.
Note: I think this list replaces attachments with a link to download the file from a server, so just click the link to download the file.
-Dave
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hatchet-4.0-patches.tar.gz
Type: application/gzip
Size: 6018 bytes
Desc: not available
Url : http://www.dixongroup.net/pipermail/hatchet-users/attachments/20070102/54c124d8/attachment.bin
More information about the Hatchet-users
mailing list