summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-11-08 09:06:36 +0000
committerAlin Năstac <mrness@gentoo.org>2006-11-08 09:06:36 +0000
commitce872332a6ba4e255f355b78312b5e6611219dc9 (patch)
tree7d93abc940a2cd5c54d0c13d6eea65fcc11c2ab1 /net-proxy
parentstable x86, bug #153036 (diff)
downloadgentoo-2-ce872332a6ba4e255f355b78312b5e6611219dc9.tar.gz
gentoo-2-ce872332a6ba4e255f355b78312b5e6611219dc9.tar.bz2
gentoo-2-ce872332a6ba4e255f355b78312b5e6611219dc9.zip
Version bump (#154332).
(Portage version: 2.1.1-r1)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/havp/ChangeLog8
-rw-r--r--net-proxy/havp/files/digest-havp-0.833
-rw-r--r--net-proxy/havp/files/havp-0.83-gentoo.patch56
-rw-r--r--net-proxy/havp/havp-0.83.ebuild67
4 files changed, 133 insertions, 1 deletions
diff --git a/net-proxy/havp/ChangeLog b/net-proxy/havp/ChangeLog
index 7b8f9311c2eb..b258cea79493 100644
--- a/net-proxy/havp/ChangeLog
+++ b/net-proxy/havp/ChangeLog
@@ -1,6 +1,12 @@
# 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.7 2006/09/20 18:11:34 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.8 2006/11/08 09:06:36 mrness Exp $
+
+*havp-0.83 (08 Nov 2006)
+
+ 08 Nov 2006; Alin Nastac <mrness@gentoo.org>
+ +files/havp-0.83-gentoo.patch, +havp-0.83.ebuild:
+ Version bump (#154332).
20 Sep 2006; Alin Nastac <mrness@gentoo.org>
-files/havp-0.81-gentoo.patch, -havp-0.81.ebuild, havp-0.82.ebuild:
diff --git a/net-proxy/havp/files/digest-havp-0.83 b/net-proxy/havp/files/digest-havp-0.83
new file mode 100644
index 000000000000..32f367a4c4c2
--- /dev/null
+++ b/net-proxy/havp/files/digest-havp-0.83
@@ -0,0 +1,3 @@
+MD5 d5bb02a9e2bcee90ee419fdf03da9a07 havp-0.83.tar.gz 105511
+RMD160 a272c24af4c6ddd53fed7078ec6f1acda36f7edf havp-0.83.tar.gz 105511
+SHA256 0bcd20cbed5ea096442842e375c353fd89f87a1ae0cd8edc37924bc8a01c136d havp-0.83.tar.gz 105511
diff --git a/net-proxy/havp/files/havp-0.83-gentoo.patch b/net-proxy/havp/files/havp-0.83-gentoo.patch
new file mode 100644
index 000000000000..331609b5f84f
--- /dev/null
+++ b/net-proxy/havp/files/havp-0.83-gentoo.patch
@@ -0,0 +1,56 @@
+diff -Nru havp-0.83.orig/etc/havp/havp.config havp-0.83/etc/havp/havp.config
+--- havp-0.83.orig/etc/havp/havp.config 2006-09-02 13:32:30.000000000 +0300
++++ havp-0.83/etc/havp/havp.config 2006-11-08 10:54:09.178446000 +0200
+@@ -187,7 +187,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.
+@@ -201,13 +201,13 @@
+ # List of URLs not to scan.
+ #
+ # Default:
+-# WHITELIST /usr/local/etc/havp/whitelist
++# WHITELIST /etc/havp/whitelist
+
+ #
+ # List 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.83.orig/havp/default.h.in havp-0.83/havp/default.h.in
+--- havp-0.83.orig/havp/default.h.in 2006-09-02 13:54:18.000000000 +0300
++++ havp-0.83/havp/default.h.in 2006-11-08 10:54:09.210448000 +0200
+@@ -51,7 +51,7 @@
+ "ENABLEAVAST","AVASTSOCKET","AVASTSERVER","AVASTPORT"
+ //SCANNERS
+
+-#define CONFIGFILE "/usr/local/etc/havp/havp.config"
++#define CONFIGFILE "/etc/havp/havp.config"
+
+
+ //##############################################################
+diff -Nru havp-0.83.orig/havp/params.cpp havp-0.83/havp/params.cpp
+--- havp-0.83.orig/havp/params.cpp 2006-09-02 13:37:46.000000000 +0300
++++ havp-0.83/havp/params.cpp 2006-11-08 10:54:09.210448000 +0200
+@@ -58,9 +58,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.83.ebuild b/net-proxy/havp/havp-0.83.ebuild
new file mode 100644
index 000000000000..61a462f656da
--- /dev/null
+++ b/net-proxy/havp/havp-0.83.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.83.ebuild,v 1.1 2006/11/08 09:06:36 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
+}