summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-proxy/havp')
-rw-r--r--net-proxy/havp/ChangeLog10
-rw-r--r--net-proxy/havp/files/digest-havp-0.792
-rw-r--r--net-proxy/havp/files/digest-havp-0.813
-rw-r--r--net-proxy/havp/files/havp-0.81-gentoo.patch56
-rw-r--r--net-proxy/havp/havp-0.81.ebuild67
5 files changed, 137 insertions, 1 deletions
diff --git a/net-proxy/havp/ChangeLog b/net-proxy/havp/ChangeLog
index b9d939a03f62..d2d810edf56b 100644
--- a/net-proxy/havp/ChangeLog
+++ b/net-proxy/havp/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-proxy/havp
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.4 2006/04/14 09:05:40 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.5 2006/06/18 15:58:48 mrness Exp $
+
+*havp-0.81 (18 Jun 2006)
+
+ 18 Jun 2006; Alin Nastac <mrness@gentoo.org>
+ -files/havp-0.77-gentoo.patch, -files/havp-0.78-gentoo.patch,
+ +files/havp-0.81-gentoo.patch, -havp-0.77.ebuild, -havp-0.78.ebuild,
+ +havp-0.81.ebuild:
+ Version bump. Remove obsolete versions.
*havp-0.79 (14 Apr 2006)
diff --git a/net-proxy/havp/files/digest-havp-0.79 b/net-proxy/havp/files/digest-havp-0.79
index 3ab701194241..553cbbf6d0bb 100644
--- a/net-proxy/havp/files/digest-havp-0.79
+++ b/net-proxy/havp/files/digest-havp-0.79
@@ -1 +1,3 @@
MD5 bf5f9566b2fb9b27da7e1dedaa7dde0c havp-0.79.tar.gz 101040
+RMD160 0af62e9692415549cac173766b73e300293b20a1 havp-0.79.tar.gz 101040
+SHA256 27d1b74a3856fdaef846aefded360e4a54c8c608cf2421183a9fe7262f18ba28 havp-0.79.tar.gz 101040
diff --git a/net-proxy/havp/files/digest-havp-0.81 b/net-proxy/havp/files/digest-havp-0.81
new file mode 100644
index 000000000000..34a3a5fc012e
--- /dev/null
+++ b/net-proxy/havp/files/digest-havp-0.81
@@ -0,0 +1,3 @@
+MD5 248a0020cca73ca8833e6e0090af4302 havp-0.81.tar.gz 104299
+RMD160 543db299cd06515274d46cc4dd03316ec2c8cee5 havp-0.81.tar.gz 104299
+SHA256 ec1fe99858b79a9f440569ce353b2eba5bcba0920a092025d26df35d63941a77 havp-0.81.tar.gz 104299
diff --git a/net-proxy/havp/files/havp-0.81-gentoo.patch b/net-proxy/havp/files/havp-0.81-gentoo.patch
new file mode 100644
index 000000000000..ccb4023b764f
--- /dev/null
+++ b/net-proxy/havp/files/havp-0.81-gentoo.patch
@@ -0,0 +1,56 @@
+diff -Nru havp-0.81.orig/etc/havp/havp.config havp-0.81/etc/havp/havp.config
+--- havp-0.81.orig/etc/havp/havp.config 2006-05-11 09:08:26.000000000 +0300
++++ havp-0.81/etc/havp/havp.config 2006-06-18 18:51:57.086268250 +0300
+@@ -193,7 +193,7 @@
+ # Path to template files.
+ #
+ # Default:
+-# TEMPLATEPATH /usr/local/etc/havp/templates/en
++# TEMPLATEPATH /etc/havp/templates/en
+
+ #
+ # Set to true if you want to prefer Whitelist.
+@@ -207,13 +207,13 @@
+ # Whitelist of URLs not to scan.
+ #
+ # Default:
+-# WHITELIST /usr/local/etc/havp/whitelist
++# WHITELIST /etc/havp/whitelist
+
+ #
+ # Blacklist of URLs that are denied access.
+ #
+ # Default:
+-# BLACKLIST /usr/local/etc/havp/blacklist
++# BLACKLIST /etc/havp/blacklist
+
+ #
+ # Is scanner error fatal?
+diff -Nru havp-0.81.orig/havp/default.h.in havp-0.81/havp/default.h.in
+--- havp-0.81.orig/havp/default.h.in 2006-06-14 17:58:17.000000000 +0300
++++ havp-0.81/havp/default.h.in 2006-06-18 18:51:57.086268250 +0300
+@@ -50,7 +50,7 @@
+ "ENABLEAVAST","AVASTSOCKET","AVASTSERVER","AVASTPORT"
+ //SCANNERS
+
+-#define CONFIGFILE "/usr/local/etc/havp/havp.config"
++#define CONFIGFILE "/etc/havp/havp.config"
+
+
+ //##############################################################
+diff -Nru havp-0.81.orig/havp/params.cpp havp-0.81/havp/params.cpp
+--- havp-0.81.orig/havp/params.cpp 2006-05-11 09:08:40.000000000 +0300
++++ havp-0.81/havp/params.cpp 2006-06-18 18:51:57.086268250 +0300
+@@ -53,9 +53,9 @@
+ SetConfig("KEEPBACKTIME", "5");
+ SetConfig("TRICKLING", "30");
+ SetConfig("WHITELISTFIRST", "true");
+- SetConfig("WHITELIST", "/usr/local/etc/havp/whitelist");
+- SetConfig("BLACKLIST", "/usr/local/etc/havp/blacklist");
+- SetConfig("TEMPLATEPATH", "/usr/local/etc/havp/templates/en");
++ SetConfig("WHITELIST", "/etc/havp/whitelist");
++ SetConfig("BLACKLIST", "/etc/havp/blacklist");
++ SetConfig("TEMPLATEPATH", "/etc/havp/templates/en");
+ SetConfig("TEMPDIR", "/var/tmp");
+ SetConfig("SCANTEMPFILE", "/var/tmp/havp/havp-XXXXXX");
+ SetConfig("PIDFILE", "/var/run/havp/havp.pid");
diff --git a/net-proxy/havp/havp-0.81.ebuild b/net-proxy/havp/havp-0.81.ebuild
new file mode 100644
index 000000000000..9f32fd0d9bc4
--- /dev/null
+++ b/net-proxy/havp/havp-0.81.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/havp-0.81.ebuild,v 1.1 2006/06/18 15:58:48 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="HTTP AntiVirus Proxy"
+HOMEPAGE="http://www.server-side.de/"
+SRC_URI="http://www.server-side.de/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="clamav ssl"
+
+DEPEND="clamav? ( app-antivirus/clamav )"
+
+pkg_setup() {
+ enewgroup havp
+ enewuser havp -1 -1 /etc/havp havp
+}
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+}
+
+src_compile() {
+ econf --with-scanner=libclamav \
+ $(use_enable ssl ssl-tunnel) || die "configure failed"
+ emake || die "make failed"
+}
+
+pkg_preinst() {
+ pkg_setup
+}
+
+src_install() {
+ exeinto /usr/sbin
+ doexe havp/havp
+
+ newinitd "${FILESDIR}/havp.initd" havp
+ insinto /etc
+ doins -r etc/havp
+
+ diropts -m 0700 -o havp -g havp
+ keepdir /var/log/havp
+
+ diropts -m 0750
+ dodir /var/run/havp /var/tmp/havp
+
+ dodoc ChangeLog todo
+}
+
+pkg_postinst() {
+ ewarn "/var/tmp/havp must be on a filesystem with mandatory locks!"
+ ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab."
+
+ if use ssl; then
+ echo
+ ewarn "Note: ssl USE flag only enable SSL pass-through, which means that"
+ ewarn " HTTPS pages will not be scanned for viruses!"
+ ewarn " It is impossible to decrypt data sent through SSL connections without knowing"
+ ewarn " the private key of the used certificate."
+ fi
+}