summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-12-24 20:28:14 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-12-24 20:28:14 +0000
commit19b41be4dd3cd65997556b6c7f30071f853d4413 (patch)
treee52247f0b2f5b08ddef11c3c5d8add868d99c313 /net-www/adzapper
parentVersion bumped (diff)
downloadhistorical-19b41be4dd3cd65997556b6c7f30071f853d4413.tar.gz
historical-19b41be4dd3cd65997556b6c7f30071f853d4413.tar.bz2
historical-19b41be4dd3cd65997556b6c7f30071f853d4413.zip
Version bumped
Diffstat (limited to 'net-www/adzapper')
-rw-r--r--net-www/adzapper/Manifest4
-rw-r--r--net-www/adzapper/adzapper-20031105.ebuild72
-rw-r--r--net-www/adzapper/files/digest-adzapper-200311051
-rw-r--r--net-www/adzapper/metadata.xml9
4 files changed, 84 insertions, 2 deletions
diff --git a/net-www/adzapper/Manifest b/net-www/adzapper/Manifest
index 26b76606a97d..c5c4031cbe47 100644
--- a/net-www/adzapper/Manifest
+++ b/net-www/adzapper/Manifest
@@ -1,9 +1,9 @@
-MD5 ec993bddcb13022aabf7bafd0e92dc34 ChangeLog 1307
+MD5 93281417e67fe4ca8a06d6c0e481f77e ChangeLog 1438
MD5 34c58b1e9cdc53326c9bcaeb384f9032 adzapper-20030111.ebuild 1447
MD5 057ea62ca5b27e6c19a63eabc0bcdff7 adzapper-20030525.ebuild 1464
MD5 d62f06478bb9fcdc9a5e7326d3971fd3 adzapper-20030611.ebuild 1461
MD5 c339473e0ff43da76eb2f2607c441921 metadata.xml 280
-MD5 41884d2aee461f5cf3fa5f40725c2d12 adzapper-20031105.ebuild 1700
+MD5 4819039af684dcb5deae594c0540f58b adzapper-20031105.ebuild 1699
MD5 742f1b62464905c66b4b852293227925 files/digest-adzapper-20030111 65
MD5 7e44cc6b5c8fc3c862ed5266e1dff0fc files/digest-adzapper-20030525 65
MD5 d33f6e6caebc18dadd48b320241f322b files/digest-adzapper-20030611 65
diff --git a/net-www/adzapper/adzapper-20031105.ebuild b/net-www/adzapper/adzapper-20031105.ebuild
new file mode 100644
index 000000000000..c29aaeed43e3
--- /dev/null
+++ b/net-www/adzapper/adzapper-20031105.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/adzapper/adzapper-20031105.ebuild,v 1.1 2003/12/24 20:28:05 mholzer Exp $
+
+inherit webapp-apache
+
+DESCRIPTION="redirector for squid that intercepts advertising, page counters and some web bugs"
+HOMEPAGE="http://adzapper.sourceforge.net/"
+
+MY_P=${P/zapper/zap}
+S="${WORKDIR}/adzap"
+
+SRC_URI="http://adzapper.sourceforge.net/${MY_P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+IUSE=""
+
+DEPEND=""
+RDEPEND="net-www/squid"
+
+webapp-detect || NO_WEBSERVER=1
+
+
+pkg_setup() {
+ webapp-pkg_setup "${NO_WEBSERVER}"
+ einfo "Installing into ${ROOT}${HTTPD_ROOT}."
+}
+
+src_unpack() {
+ unpack ${A}
+
+ SCRPATH="/etc/adzapper/squid_redirect"
+
+ cd ${S}/scripts || die
+
+ # update the zapper path in various scripts
+ for src in wrapzap update-zapper*; do
+ mv $src $src.orig || die
+ sed -e "s|^zapper=.*|zapper=${SCRPATH}|" \
+ -e "s|^ZAPPER=.*|ZAPPER=\"${SCRPATH}\"|" \
+ -e "s|^pidfile=.*|pidfile=/var/run/squid.pid|" \
+ -e "s|^PIDFILE=.*|PIDFILE=\"/var/run/squid.pid\"|" \
+ -e "s|^RESTARTCMD=.*|RESTARTCMD=\"/etc/init.d/squid restart\"|" \
+ $src.orig > $src || die
+ rm $src.orig
+ done
+}
+
+src_install() {
+ webapp-mkdirs
+
+ local DocumentRoot=${HTTPD_ROOT}
+ local destdir=${DocumentRoot}/
+
+ cd ${S}/scripts
+ exeinto /etc/adzapper
+ doexe wrapzap zapchain squid_redirect
+
+ insinto /etc/adzapper
+ doins update-zapper*
+
+ cd ${S}/zaps
+ insinto ${destdir}/zap
+ doins *
+}
+
+pkg_postinst() {
+ einfo "To enable adzapper add the following lines to squid.conf:"
+ einfo "redirect_program /etc/adzapper/wrapzap"
+ einfo "redirect_children 10"
+}
diff --git a/net-www/adzapper/files/digest-adzapper-20031105 b/net-www/adzapper/files/digest-adzapper-20031105
new file mode 100644
index 000000000000..a7aef6523ef8
--- /dev/null
+++ b/net-www/adzapper/files/digest-adzapper-20031105
@@ -0,0 +1 @@
+MD5 cdef693fd4ae273ce93f84ecad5deba7 adzap-20031105.tar.gz 37449
diff --git a/net-www/adzapper/metadata.xml b/net-www/adzapper/metadata.xml
new file mode 100644
index 000000000000..13bc126c7d91
--- /dev/null
+++ b/net-www/adzapper/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>web-apps</herd>
+<maintainer>
+<email>web-apps@gentoo.org</email>
+<name>Gentoo Web Application Packages Maintainers</name>
+</maintainer>
+</pkgmetadata>