Building HAVP On CentOS 5.x

HAVP (HTTP Antivirus Proxy) is a proxy with a ClamAV anti-virus scanner. The main aims are continuous, non-blocking downloads and smooth scanning of dynamic and password protected HTTP traffic. Havp antivirus proxy has a parent and transparent proxy mode. It can be used with squid or standalone. Its older rpms & src.rpms (0.86) don't work (i.e. conflict with the updated clamav), and newer rpm * src.rpm don't exist yet. So HAVP needs to be re-compiled. This guide shows how to build HAVP on CentOS 5.x.


Tested environment

OS: Linux (Centos 5.X)
HAVP Version: havp-0.89
Prerequisites: clamav devel packages

(Disclaimer: The following method that has been adopted is to get things done. There are other ways to achieve this. Use whatever works for you.)

Advisory: It is recommend that you build packages on non-production servers. And even on non-productions server, use a fakeroot environment to build packages (superuser method demonstrated in this howto).


Building HAVP

Clean your /usr/src/redhat/BUILD, SOURCES & SPECS folder, if you already have any havp src.rpm installed.

rpmbuild -bb --rmsource --rmspec havp.spec

Download the the “patch” file & the source code of havp:

cd /usr/src/redhat/SOURCES

Download the “spec” file:

cd /usr/src/redhat/SPECS

Now start building the rpm (from the same “SPECS” folder):

rpmbuild -bb havp.spec

After a minute or so you should have couple of .rpms built in your /usr/src/redhat/RPMS/i386 folder (depending upon your processor architecture - mine is i386) .

Sample ls output:

[[email protected] i386]# pwd
[[email protected] i386]# ls -l havp*
-rw-r--r-- 1 root root 195606 Mar 28 15:14 havp-0.89-1.i386.rpm
-rw-r--r-- 1 root root 528596 Mar 28 15:14 havp-debuginfo-0.89-1.i386.rpm
[[email protected] i386]#



Share this page:

Suggested articles

3 Comment(s)

Add comment



Yeah u can fetch it from that repo as well. but once you update your clamav package, HAVP would again error on you (something on the lines of So you would still have to build it again. (Note: clamav update is different that freshclam..)

But anyway I didnt know about that repo. Nice to know its there.





By: arthur

Change this line




as the spec file is for the havap-0.90.tar.gz release as of 17.9.2009