HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter. It does not cache or filter content, but is scanning the complete http traffic for viruses or malicious content. It's amining to stop dialers or browser exploits and features Continuous and non-blocking downloads, Smooth scanning of dynamic and password protected homepages
Because mandatory locks have to be used on the scanning filesystem and I don't want to have it in my fstab, I edited the ebuild's havp.init file
get_havp_opt() {
eval HAVP_$1=`awk '/^[ \t]*'$1'[ \t]+/ { print $2; }' < /etc/havp/havp.config`
}
RAMDISK=/dev/ram0
MOUNTPOINT=/var/tmp/havp
HAVPUSER=havp
MP="`/bin/mount |/bin/grep $RAMDISK`"
if [ "$MP" != "" ]; then
einfo "Ramdisk already mounted."
else
ebegin "Creating Ramdisk..."
/sbin/mke2fs -q -m 0 /dev/ram0 && \
/bin/mount -o mand $RAMDISK $MOUNTPOINT && \
/bin/chown $HAVPUSER:root $MOUNTPOINT && \
/bin/chmod 0750 $MOUNTPOINT
eend $?
fi
if [ ! -d /var/run/havp ] && ! mkdir /var/run/havp; then
eeror "Failed to create /var/run/havp"
return 1
fi