summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-03-10 10:23:09 +0000
committerAlin Năstac <mrness@gentoo.org>2007-03-10 10:23:09 +0000
commit29490008210669d9375bd534f602eb4d46a7f41d (patch)
tree14d14d5588c54c4fff4ce4c7f04a8e15e926fe09 /net-proxy
parentStable on amd64 wrt bug 169987 (diff)
downloadgentoo-2-29490008210669d9375bd534f602eb4d46a7f41d.tar.gz
gentoo-2-29490008210669d9375bd534f602eb4d46a7f41d.tar.bz2
gentoo-2-29490008210669d9375bd534f602eb4d46a7f41d.zip
Version bump (#169931).
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/havp/ChangeLog8
-rw-r--r--net-proxy/havp/files/digest-havp-0.853
-rw-r--r--net-proxy/havp/files/havp-0.85-gentoo.patch55
-rw-r--r--net-proxy/havp/havp-0.85.ebuild67
4 files changed, 132 insertions, 1 deletions
diff --git a/net-proxy/havp/ChangeLog b/net-proxy/havp/ChangeLog
index 668cf50d4d13..a5d905762630 100644
--- a/net-proxy/havp/ChangeLog
+++ b/net-proxy/havp/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-proxy/havp
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.14 2007/02/27 12:12:04 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.15 2007/03/10 10:23:09 mrness Exp $
+
+*havp-0.85 (10 Mar 2007)
+
+ 10 Mar 2007; Alin Năstac <mrness@gentoo.org>
+ +files/havp-0.85-gentoo.patch, +havp-0.85.ebuild:
+ Version bump (#169931).
27 Feb 2007; Alin Nastac <mrness@gentoo.org>
-files/havp-0.84-clamav-0.90.patch, havp-0.84.ebuild:
diff --git a/net-proxy/havp/files/digest-havp-0.85 b/net-proxy/havp/files/digest-havp-0.85
new file mode 100644
index 000000000000..37727d88653e
--- /dev/null
+++ b/net-proxy/havp/files/digest-havp-0.85
@@ -0,0 +1,3 @@
+MD5 6f05d36a1f8374535ae66373111ff5a1 havp-0.85.tar.gz 101860
+RMD160 7645588efe03cee11478218c35e78aed3d50f938 havp-0.85.tar.gz 101860
+SHA256 523c7d69728c600e3cf33603a2caf41755a8e70fa4a20b71cba61df5f16bb2b4 havp-0.85.tar.gz 101860
diff --git a/net-proxy/havp/files/havp-0.85-gentoo.patch b/net-proxy/havp/files/havp-0.85-gentoo.patch
new file mode 100644
index 000000000000..db3ba1f69370
--- /dev/null
+++ b/net-proxy/havp/files/havp-0.85-gentoo.patch
@@ -0,0 +1,55 @@
+diff -Nru havp-0.85.orig/configure havp-0.85/configure
+--- havp-0.85.orig/configure 2006-11-03 00:05:45.000000000 +0200
++++ havp-0.85/configure 2007-03-10 12:16:01.000000000 +0200
+@@ -2578,19 +2578,19 @@
+
+ test "$prefix" = "NONE" && prefix=/usr/local
+ cat >>confdefs.h <<_ACEOF
+-#define CONFIGFILE "$prefix/etc/havp/havp.config"
++#define CONFIGFILE "$sysconfdir/havp/havp.config"
+ _ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+-#define WHITELISTFILE "$prefix/etc/havp/whitelist"
++#define WHITELISTFILE "$sysconfdir/havp/whitelist"
+ _ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+-#define BLACKLISTFILE "$prefix/etc/havp/blacklist"
++#define BLACKLISTFILE "$sysconfdir/havp/blacklist"
+ _ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+-#define TEMPLATEPATH "$prefix/etc/havp/templates/en"
++#define TEMPLATEPATH "$sysconfdir/havp/templates/en"
+ _ACEOF
+
+
+diff -Nru havp-0.85.orig/etc/havp/havp.config havp-0.85/etc/havp/havp.config
+--- havp-0.85.orig/etc/havp/havp.config 2006-12-28 15:42:03.000000000 +0200
++++ havp-0.85/etc/havp/havp.config 2007-03-10 12:16:01.000000000 +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 --git a/net-proxy/havp/havp-0.85.ebuild b/net-proxy/havp/havp-0.85.ebuild
new file mode 100644
index 000000000000..4f66ba474a74
--- /dev/null
+++ b/net-proxy/havp/havp-0.85.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/havp-0.85.ebuild,v 1.1 2007/03/10 10:23:09 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="~amd64 ~x86"
+IUSE="clamav ssl"
+
+DEPEND="clamav? ( >=app-antivirus/clamav-0.90 )"
+
+pkg_setup() {
+ enewgroup havp
+ enewuser havp -1 -1 /etc/havp havp
+}
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+}
+
+src_compile() {
+ econf $(use_enable clamav) \
+ $(use_enable ssl ssl-tunnel) || die "configure failed"
+ emake || die "make failed"
+}
+
+pkg_preinst() {
+ pkg_setup #for adding username:group when installing from binary package
+}
+
+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
+}
+
+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
+}