diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-08-19 06:35:43 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-08-19 06:35:43 +0000 |
commit | 4eeb46f6e1a42da96afe62966fcd44c3af8ad688 (patch) | |
tree | 09079875547231d437deea3e8e18aa134d778059 /net-proxy/havp | |
parent | New patch to fix the watch file and reload feature thanks to Johan Nilsson <w... (diff) | |
download | historical-4eeb46f6e1a42da96afe62966fcd44c3af8ad688.tar.gz historical-4eeb46f6e1a42da96afe62966fcd44c3af8ad688.tar.bz2 historical-4eeb46f6e1a42da96afe62966fcd44c3af8ad688.zip |
Remove old version. Version bump (#142767). Demote "need clamd" to "use clamd" (havp can use clamlib instead clamd).
Package-Manager: portage-2.1-r2
Diffstat (limited to 'net-proxy/havp')
-rw-r--r-- | net-proxy/havp/ChangeLog | 10 | ||||
-rw-r--r-- | net-proxy/havp/files/digest-havp-0.82 | 3 | ||||
-rw-r--r-- | net-proxy/havp/files/havp-0.82-gentoo.patch | 56 | ||||
-rw-r--r-- | net-proxy/havp/files/havp.initd | 7 | ||||
-rw-r--r-- | net-proxy/havp/havp-0.82.ebuild | 67 |
5 files changed, 139 insertions, 4 deletions
diff --git a/net-proxy/havp/ChangeLog b/net-proxy/havp/ChangeLog index d2d810edf56b..dae985a7de2d 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.5 2006/06/18 15:58:48 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.6 2006/08/19 06:35:43 mrness Exp $ + +*havp-0.82 (19 Aug 2006) + + 19 Aug 2006; Alin Nastac <mrness@gentoo.org> + -files/havp-0.79-gentoo.patch, +files/havp-0.82-gentoo.patch, + files/havp.initd, -havp-0.79.ebuild, +havp-0.82.ebuild: + Remove old version. Version bump (#142767). Demote "need clamd" to "use + clamd" (havp can use clamlib instead clamd). *havp-0.81 (18 Jun 2006) diff --git a/net-proxy/havp/files/digest-havp-0.82 b/net-proxy/havp/files/digest-havp-0.82 new file mode 100644 index 000000000000..ac650b09ceb7 --- /dev/null +++ b/net-proxy/havp/files/digest-havp-0.82 @@ -0,0 +1,3 @@ +MD5 9e6a16b7d074782d1c62f1f7316e56ab havp-0.82.tar.gz 105217 +RMD160 67a1c70c36a577a8b5593a1ea0f004eb473719da havp-0.82.tar.gz 105217 +SHA256 e2db8d3383cd8eca6a18ebee85875de895f3ac7414eab091a87f052d79a87b09 havp-0.82.tar.gz 105217 diff --git a/net-proxy/havp/files/havp-0.82-gentoo.patch b/net-proxy/havp/files/havp-0.82-gentoo.patch new file mode 100644 index 000000000000..86d619e81396 --- /dev/null +++ b/net-proxy/havp/files/havp-0.82-gentoo.patch @@ -0,0 +1,56 @@ +diff -Nurd havp-0.82.orig/etc/havp/havp.config havp-0.82/etc/havp/havp.config +--- havp-0.82.orig/etc/havp/havp.config 2006-08-10 20:03:49.000000000 +0200 ++++ havp-0.82/etc/havp/havp.config 2006-08-10 20:04:45.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 -Nurd havp-0.82.orig/havp/default.h.in havp-0.82/havp/default.h.in +--- havp-0.82.orig/havp/default.h.in 2006-08-10 20:03:49.000000000 +0200 ++++ havp-0.82/havp/default.h.in 2006-08-10 20:04:11.000000000 +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 -Nurd havp-0.82.orig/havp/params.cpp havp-0.82/havp/params.cpp +--- havp-0.82.orig/havp/params.cpp 2006-08-10 20:03:49.000000000 +0200 ++++ havp-0.82/havp/params.cpp 2006-08-10 20:05:52.000000000 +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/files/havp.initd b/net-proxy/havp/files/havp.initd index f79edbb9f7c4..5cb3be40176c 100644 --- a/net-proxy/havp/files/havp.initd +++ b/net-proxy/havp/files/havp.initd @@ -3,9 +3,10 @@ # Distributed under the terms of the GNU General Public License v2 depend() { - need net clamd - #havp could be used in conjuction with any parent proxies from below - use squid apache2 bfilter mman junkbuster oops polipo privoxy tinyproxy wwwoffled + need net + use clamd \ + squid apache2 bfilter mman junkbuster oops polipo privoxy tinyproxy wwwoffled + #havp could be used in conjuction with any parent proxies enumerated above } get_havp_opt() { diff --git a/net-proxy/havp/havp-0.82.ebuild b/net-proxy/havp/havp-0.82.ebuild new file mode 100644 index 000000000000..f5e60f57c131 --- /dev/null +++ b/net-proxy/havp/havp-0.82.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.82.ebuild,v 1.1 2006/08/19 06:35:43 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 +} |