diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-01-15 20:28:55 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-01-15 20:28:55 +0000 |
commit | a800d181043865df3c0a99779087d2985774c87f (patch) | |
tree | 2c31077e52ade8de4efd6aafbbeb005b35305449 /net-proxy | |
parent | Removed redundant dependencies provided by java.eclass (bug #118651). (diff) | |
download | gentoo-2-a800d181043865df3c0a99779087d2985774c87f.tar.gz gentoo-2-a800d181043865df3c0a99779087d2985774c87f.tar.bz2 gentoo-2-a800d181043865df3c0a99779087d2985774c87f.zip |
Initial import from bug #99303.
(Portage version: 2.0.53)
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/havp/ChangeLog | 11 | ||||
-rw-r--r-- | net-proxy/havp/Manifest | 6 | ||||
-rw-r--r-- | net-proxy/havp/files/digest-havp-0.76 | 1 | ||||
-rw-r--r-- | net-proxy/havp/files/havp-0.76-gentoo.patch | 62 | ||||
-rw-r--r-- | net-proxy/havp/files/havp.initd | 64 | ||||
-rw-r--r-- | net-proxy/havp/havp-0.76.ebuild | 49 | ||||
-rw-r--r-- | net-proxy/havp/metadata.xml | 7 |
7 files changed, 200 insertions, 0 deletions
diff --git a/net-proxy/havp/ChangeLog b/net-proxy/havp/ChangeLog new file mode 100644 index 000000000000..3d6ea800710d --- /dev/null +++ b/net-proxy/havp/ChangeLog @@ -0,0 +1,11 @@ +# 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.1 2006/01/15 20:28:55 mrness Exp $ + +*havp-0.76 (15 Jan 2006) + + 15 Jan 2006; Alin Nastac <mrness@gentoo.org> + +files/havp-0.76-gentoo.patch, +files/havp.initd, +metadata.xml, + +havp-0.76.ebuild: + Initial import from bug #99303. + diff --git a/net-proxy/havp/Manifest b/net-proxy/havp/Manifest new file mode 100644 index 000000000000..3c0bf86b44e1 --- /dev/null +++ b/net-proxy/havp/Manifest @@ -0,0 +1,6 @@ +MD5 cec7ecea19cf7af093e649a38bf9d5f6 ChangeLog 311 +MD5 5f0038e98c854750a47b461140103117 files/digest-havp-0.76 61 +MD5 84d09e8602d90d8f9be9fffbd4dbf0d3 files/havp-0.76-gentoo.patch 1684 +MD5 2a830a7c8f88a3fc5df6dc89e67bef72 files/havp.initd 1604 +MD5 4adddfc3edb1040db2abc497dbb3684e havp-0.76.ebuild 971 +MD5 eeef2b4ba39eb40826f14b0bd0489563 metadata.xml 309 diff --git a/net-proxy/havp/files/digest-havp-0.76 b/net-proxy/havp/files/digest-havp-0.76 new file mode 100644 index 000000000000..073cfed79f92 --- /dev/null +++ b/net-proxy/havp/files/digest-havp-0.76 @@ -0,0 +1 @@ +MD5 cb463ab58d7005487ad1d83350fb0128 havp-0.76.tar.gz 101916 diff --git a/net-proxy/havp/files/havp-0.76-gentoo.patch b/net-proxy/havp/files/havp-0.76-gentoo.patch new file mode 100644 index 000000000000..b8540c7f049f --- /dev/null +++ b/net-proxy/havp/files/havp-0.76-gentoo.patch @@ -0,0 +1,62 @@ +diff -Nur havp-0.76.orig/etc/havp/havp.config havp-0.76/etc/havp/havp.config +--- havp-0.76.orig/etc/havp/havp.config 2006-01-08 18:29:00.000000000 +0200 ++++ havp-0.76/etc/havp/havp.config 2006-01-15 20:55:18.320500500 +0200 +@@ -24,7 +24,7 @@ + # + # Default: + # USER nobody +-# GROUP nogroup ++# GROUP nobody + + # + # The process id (PID) of the main HAVP process is written to this file. +@@ -159,7 +159,7 @@ + # en, de, it + # + # Default: +-# TEMPLATEPATH /usr/local/etc/havp/templates/en ++# TEMPLATEPATH /etc/havp/templates/en + + # + # Allow Range Requests +@@ -176,14 +176,14 @@ + # URL which won't be scanned + # + # Default: +-# WHITELIST /usr/local/etc/havp/whitelist ++# WHITELIST /etc/havp/whitelist + + # + # Blacklist files + # URL which are denied + # + # Default: +-# BLACKLIST /usr/local/etc/havp/blacklist ++# BLACKLIST /etc/havp/blacklist + + # + # Max size of downloads which were scanned +diff -Nur havp-0.76.orig/havp/default.h.in havp-0.76/havp/default.h.in +--- havp-0.76.orig/havp/default.h.in 2006-01-08 18:32:36.000000000 +0200 ++++ havp-0.76/havp/default.h.in 2006-01-15 20:54:57.835220250 +0200 +@@ -45,15 +45,15 @@ + #endif + #endif + +-#define WHITELISTFILE "/usr/local/etc/havp/whitelist" +-#define BLACKLISTFILE "/usr/local/etc/havp/blacklist" +-#define TEMPLATEDIR "/usr/local/etc/havp/templates/en" +-#define CONFIGFILE "/usr/local/etc/havp/havp.config" ++#define WHITELISTFILE "/etc/havp/whitelist" ++#define BLACKLISTFILE "/etc/havp/blacklist" ++#define TEMPLATEDIR "/etc/havp/templates/en" ++#define CONFIGFILE "/etc/havp/havp.config" + + + //Change to User and Group + #define USER "nobody" +-#define GROUP "nogroup" ++#define GROUP "nobody" + + //Fork min server + #define SERVERNUMBER 4 diff --git a/net-proxy/havp/files/havp.initd b/net-proxy/havp/files/havp.initd new file mode 100644 index 000000000000..c3b13f9cc804 --- /dev/null +++ b/net-proxy/havp/files/havp.initd @@ -0,0 +1,64 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# 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 +} + +get_havp_opt() { + eval HAVP_$1=`awk '/^[ \t]*'$1'[ \t]+/ { print $2; }' < /etc/havp/havp.config` +} + +checkconfig() { + if [ ! -d /var/run/havp ] && ! mkdir /var/run/havp; then + eeror "Failed to create /var/run/havp" + return 1 + fi + if [ ! -d /var/tmp/havp ] && ! mkdir /var/tmp/havp; then + eeror "Failed to create /var/tmp/havp" + return 1 + fi + + if [ ! -f /etc/havp/havp.config ] ; then + eerror "No /etc/havp/havp.config file exists!" + return 1 + fi + + local HAVP_USER + get_havp_opt USER + if [ -n "${HAVP_USER}" ] && ! getent passwd ${HAVP_USER} > /dev/null ; then + eerror "${HAVP_USER} user is missing!" + return 1 + fi + local HAVP_GROUP + get_havp_opt GROUP + if [ -n "${HAVP_GROUP}" ] && ! getent group ${HAVP_GROUP} > /dev/null ; then + eerror "${HAVP_GROUP} group is missing!" + return 1 + fi + + chown -R "${HAVP_USER:-nobody}:${HAVP_GROUP:-nobody}" /var/run/havp /var/tmp/havp /var/log/havp && \ + chmod -R 0755 /var/run/havp && + chmod -R 0750 /var/tmp/havp +} + + +start() { + checkconfig || return 1 + + ebegin "Starting HTTP AntiVirus proxy" + start-stop-daemon --start --exec /usr/sbin/havp > /dev/null + eend $? +} + +stop() { + local HAVP_PIDFILE + get_havp_opt PIDFILE + + ebegin "Stopping HTTP AntiVirus proxy" + start-stop-daemon --stop --pidfile=${HAVD_PIDFILE:-/var/run/havp/havp.pid} + eend $? +} diff --git a/net-proxy/havp/havp-0.76.ebuild b/net-proxy/havp/havp-0.76.ebuild new file mode 100644 index 000000000000..a18b795ebb23 --- /dev/null +++ b/net-proxy/havp/havp-0.76.ebuild @@ -0,0 +1,49 @@ +# 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.76.ebuild,v 1.1 2006/01/15 20:28:55 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="" + +DEPEND="app-antivirus/clamav" + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${P}-gentoo.patch" +} + +src_compile() { + econf --with-scanner=libclamav || die "configure failed" + emake || die "make failed" +} + +src_install() { + exeinto /usr/sbin + doexe havp/havp + + newinitd "${FILESDIR}/havp.initd" havp + insinto /etc + doins -r etc/havp + + diropts -m 0700 -o nobody -g nobody + 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." +} diff --git a/net-proxy/havp/metadata.xml b/net-proxy/havp/metadata.xml new file mode 100644 index 000000000000..ea43f11db058 --- /dev/null +++ b/net-proxy/havp/metadata.xml @@ -0,0 +1,7 @@ +<?xml version = '1.0' encoding = 'UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-proxy</herd> + <longdescription>HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus +filter. It does not cache or filter content.</longdescription> +</pkgmetadata> |