Author: P.Gregg (16 Mar 10 8:23pm)
I posted this earlier and thought I'd share (seems others had less luck in getting this running).
First you need a "cvs" client. Use your favourite package installer to install cvs for your OS. You will also need a compiler / development tools, usually this is "gcc".
With the cvs client, the following commands are what you can use to download the source code repo...
cvs -d:pserver:firstname.lastname@example.org:/cvsroot/httpbl login
It will ask for a password - just hit enter (for no password).
cvs -z3 -d:pserver:email@example.com:/cvsroot/httpbl co -P mod_httpbl_for_apache_2.0
(change the 2.0 to 1.3 if you are using Apache 1.3)
Your local directory will then (after several seconds) have a directory called mod_httpbl_for_apache_2.0 with the source code inside.
You'll see a install.txt file that tells you to run: $ apxs -c -i -a mod_httpbl.c
In my case this failed to compile, complaining about missing include files, specifically pcre.h (which I know came with my PHP installation). You may need to find your pcre.h (or other include file that it complains about).
To find pcre.h I ran: find /usr -name pcre.h
In my case this came back with: /usr/local/include/php/ext/pcre/pcrelib/pcre.h
Adding this path into the apxs build command, it then looks like:
/usr/local/apache2/bin/apxs -c -i -I /usr/local/include/php/ext/pcre/pcrelib/ -a mod_httpbl.c
(you may or may not have to specify the full path to apxs, I do).
The module compiled reasonably cleanly and installed itself to my apache/modules directory. From there, follow the rest of the install.txt to add the module configuration and your HTTP:BL access key. Restart apache and you should be good to go.
The above apxs step may fail for other missing dependencies... you should be able to iterate over what it finds to be missing, extending the apxs command with additional -I paths. You may even have to install some missing libraries (such as pcre if you don't already have it).
Hope this helps someone.
Paul Gregg www.pgregg.com