diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-01-31 17:26:59 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-01-31 17:26:59 +0000 |
commit | a91c95d3c428490ed498522ae0924e7c5ef65d3e (patch) | |
tree | 9741e5884874b44e93751b0fcaca2c2e85dd059f /net-proxy | |
parent | Version bump (diff) | |
download | gentoo-2-a91c95d3c428490ed498522ae0924e7c5ef65d3e.tar.gz gentoo-2-a91c95d3c428490ed498522ae0924e7c5ef65d3e.tar.bz2 gentoo-2-a91c95d3c428490ed498522ae0924e7c5ef65d3e.zip |
Version bump (#163665).
(Portage version: 2.1.1-r2)
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/havp/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/havp/files/digest-havp-0.84 | 3 | ||||
-rw-r--r-- | net-proxy/havp/files/havp-0.84-gentoo.patch | 55 | ||||
-rw-r--r-- | net-proxy/havp/havp-0.84.ebuild | 67 |
4 files changed, 132 insertions, 1 deletions
diff --git a/net-proxy/havp/ChangeLog b/net-proxy/havp/ChangeLog index e694def5b3d6..ec0817645afe 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.9 2007/01/17 19:25:00 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.10 2007/01/31 17:26:59 mrness Exp $ + +*havp-0.84 (31 Jan 2007) + + 31 Jan 2007; Alin Năstac <mrness@gentoo.org> + +files/havp-0.84-gentoo.patch, +havp-0.84.ebuild: + Version bump (#163665). 17 Jan 2007; Alin Năstac <mrness@gentoo.org> havp-0.83.ebuild: Add ~amd64. diff --git a/net-proxy/havp/files/digest-havp-0.84 b/net-proxy/havp/files/digest-havp-0.84 new file mode 100644 index 000000000000..ba34765ecfb5 --- /dev/null +++ b/net-proxy/havp/files/digest-havp-0.84 @@ -0,0 +1,3 @@ +MD5 70b843c501c831a68066af8e66801a30 havp-0.84.tar.gz 101758 +RMD160 cdeab72795d766e38df1ea600420f960a89191c0 havp-0.84.tar.gz 101758 +SHA256 28e84a72c61f656531e89e82742d017418fd2b8758d21a8087ef9f9e19396d7e havp-0.84.tar.gz 101758 diff --git a/net-proxy/havp/files/havp-0.84-gentoo.patch b/net-proxy/havp/files/havp-0.84-gentoo.patch new file mode 100644 index 000000000000..18dd35f1ec1b --- /dev/null +++ b/net-proxy/havp/files/havp-0.84-gentoo.patch @@ -0,0 +1,55 @@ +diff -Nru havp-0.84.orig/configure havp-0.84/configure +--- havp-0.84.orig/configure 2006-11-03 00:05:45.000000000 +0200 ++++ havp-0.84/configure 2007-01-31 19:21:44.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.84.orig/etc/havp/havp.config havp-0.84/etc/havp/havp.config +--- havp-0.84.orig/etc/havp/havp.config 2006-12-28 15:42:03.000000000 +0200 ++++ havp-0.84/etc/havp/havp.config 2007-01-31 19:22:13.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.84.ebuild b/net-proxy/havp/havp-0.84.ebuild new file mode 100644 index 000000000000..df00fe394c95 --- /dev/null +++ b/net-proxy/havp/havp-0.84.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.84.ebuild,v 1.1 2007/01/31 17:26:59 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 )" + +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 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 +} |