summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Jones <carpaski@gentoo.org>2002-07-19 05:26:07 +0000
committerNicholas Jones <carpaski@gentoo.org>2002-07-19 05:26:07 +0000
commit34c33129d1d2b5acb63860ba4f4dde6ea4bd88a4 (patch)
tree25e8ca9e8487d13271e1591d43b5f7b42668d8e1 /net-www
parentfixed a doc location problem in the 3.2.4 ebuild. There is also a license qu... (diff)
downloadhistorical-34c33129d1d2b5acb63860ba4f4dde6ea4bd88a4.tar.gz
historical-34c33129d1d2b5acb63860ba4f4dde6ea4bd88a4.tar.bz2
historical-34c33129d1d2b5acb63860ba4f4dde6ea4bd88a4.zip
New Package. Bug 3285
Diffstat (limited to 'net-www')
-rw-r--r--net-www/privoxy/ChangeLog7
-rw-r--r--net-www/privoxy/files/digest-privoxy-2.9.14_beta1
-rw-r--r--net-www/privoxy/files/privoxy-gentoo.diff93
-rw-r--r--net-www/privoxy/files/privoxy.rc619
-rw-r--r--net-www/privoxy/privoxy-2.9.14_beta.ebuild78
5 files changed, 198 insertions, 0 deletions
diff --git a/net-www/privoxy/ChangeLog b/net-www/privoxy/ChangeLog
new file mode 100644
index 000000000000..1041f5cfd1db
--- /dev/null
+++ b/net-www/privoxy/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for net-www/privoxy
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/privoxy/ChangeLog,v 1.1 2002/07/19 05:26:07 carpaski Exp $
+
+*privoxy-2.9.14_beta (07 Jul 2002)
+
+ 07 Jul 2002; Georg Sauthoff <g_sauthoff@web.de> *: Initial Ebuild!
diff --git a/net-www/privoxy/files/digest-privoxy-2.9.14_beta b/net-www/privoxy/files/digest-privoxy-2.9.14_beta
new file mode 100644
index 000000000000..806f43c69496
--- /dev/null
+++ b/net-www/privoxy/files/digest-privoxy-2.9.14_beta
@@ -0,0 +1 @@
+MD5 406ef39a81c371a9723aa69460028534 privoxy-2.9.14-beta-src.tar.gz 980020
diff --git a/net-www/privoxy/files/privoxy-gentoo.diff b/net-www/privoxy/files/privoxy-gentoo.diff
new file mode 100644
index 000000000000..65f885e2b377
--- /dev/null
+++ b/net-www/privoxy/files/privoxy-gentoo.diff
@@ -0,0 +1,93 @@
+diff -ur privoxy-2.9.14-beta.orig/config privoxy-2.9.14-beta/config
+--- privoxy-2.9.14-beta.orig/config Tue Apr 2 22:11:35 2002
++++ privoxy-2.9.14-beta/config Mon Jul 8 17:55:11 2002
+@@ -1,3 +1,8 @@
++#
++# Small changes to the original for Gentoo ebuild
++#
++# i.e. only two directory locations
++
+ # Sample Configuration file for Privoxy
+
+ #
+@@ -72,13 +77,13 @@
+ # for CGI results.
+ #
+ # No trailing /, please.
+-confdir .
++confdir /etc/privoxy
+
+ #
+ # The directory where all logging (i.e. logfile and jarfile) takes place
+ # No trailing /, please.
+ #
+-logdir .
++logdir /var/log/privoxy
+
+ # Note that all file specifications below are relative to
+ # the above two directories!!!
+@@ -120,7 +125,7 @@
+ #
+ # Default: Log to the standard error channel, not to a file
+ #
+-logfile logfile
++logfile privoxy.log
+
+ #
+ # The jarfile defines where Privoxy stores the cookies it
+diff -ur privoxy-2.9.14-beta.orig/default.action privoxy-2.9.14-beta/default.action
+--- privoxy-2.9.14-beta.orig/default.action Thu Apr 11 09:37:54 2002
++++ privoxy-2.9.14-beta/default.action Mon Jul 8 18:00:25 2002
+@@ -1,3 +1,9 @@
++#
++# Small change for Gentoo ebuild
++
++# set +image-blocker{blank} in the Defaults section
++# for explanation see: http://www.privoxy.org/faq/configuration.html#AEN442
++
+ #############################################################################
+ #
+ # Bare-bones actions file for Privoxy pre release testdrive
+@@ -14,7 +20,6 @@
+
+ # Shops should be allowed to set persistent cookies
+ shop = -filter -no-cookies-keep
+-
+ #############################################################################
+ # Defaults
+ #############################################################################
+@@ -22,28 +27,28 @@
+ -add-header \
+ -block \
+ +deanimate-gifs{last} \
+--downgrade \
+-+filter{html-annoyances} \
+-+filter{content-cookies} \
++-downgrade +filter{html-annoyances} \
+ +filter{js-annoyances} \
+++filter{content-cookies} \
+ +filter{no-popups} \
+ +filter{webbugs} \
+ +filter{nimda} \
+ +filter{banners-by-size} \
+-+no-compression \
+ +hide-forwarded \
+ +hide-from{block} \
+ +hide-referer{forge} \
+ -hide-user-agent \
+ -image \
+-+image-blocker{pattern} \
+++image-blocker{blank} \
+++no-compression \
+ +no-cookies-keep \
+ -no-cookies-read \
+ -no-cookies-set \
+ +no-popups \
+ -vanilla-wafer \
+--wafer \
++-wafer\
+ }
++
+ / # Match all URLs
+
+ {+filter{noflash}}
diff --git a/net-www/privoxy/files/privoxy.rc6 b/net-www/privoxy/files/privoxy.rc6
new file mode 100644
index 000000000000..b5ac890e4759
--- /dev/null
+++ b/net-www/privoxy/files/privoxy.rc6
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting privoxy"
+ start-stop-daemon --start --quiet --exec /usr/sbin/privoxy -- /etc/privoxy/config &
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping privoxy"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/privoxy
+ eend $?
+}
diff --git a/net-www/privoxy/privoxy-2.9.14_beta.ebuild b/net-www/privoxy/privoxy-2.9.14_beta.ebuild
new file mode 100644
index 000000000000..d2ff3d2fc058
--- /dev/null
+++ b/net-www/privoxy/privoxy-2.9.14_beta.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/privoxy/privoxy-2.9.14_beta.ebuild,v 1.1 2002/07/19 05:26:07 carpaski Exp $
+
+SLOT="2"
+KEYWORDS="x86"
+LICENSE="GPL-2"
+HOMEPAGE="http://www.privoxy.org"
+DESCRIPTION="A web proxy with advanced filtering capabilities for protecting privacy against internet junk."
+SRC_URI="http://unc.dl.sourceforge.net/sourceforge/ijbswa/privoxy-2.9.14-beta-src.tar.gz"
+
+pkg_setup() {
+
+ if ! grep -q ^privoxy: /etc/group ; then
+ groupadd privoxy || die "problem adding group privoxy"
+ fi
+
+ if ! grep -q ^privoxy: /etc/passwd ; then
+ useradd -g privoxy -s /bin/false -d /etc/privoxy -c "privoxy" privoxy\
+ || die "problem adding user apache"
+ fi
+}
+
+src_unpack() {
+ unpack privoxy-2.9.14-beta-src.tar.gz
+ patch -p0 < ${FILESDIR}/privoxy-gentoo.diff
+ cd ${WORKDIR}/privoxy-2.9.14-beta
+ autoheader || die "autoheader failed"
+ autoconf || die "autoconf failed"
+}
+
+src_compile() {
+ cd ${WORKDIR}/privoxy-2.9.14-beta
+
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --sysconfdir=/etc/privoxy \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+
+ emake || die "make failed."
+
+}
+
+src_install () {
+ cd ${WORKDIR}/privoxy-2.9.14-beta
+
+ diropts -m 0750 -g privoxy -o privoxy
+ dodir /var/log/privoxy
+ dodir /etc/privoxy /etc/privoxy/templates
+
+ insopts -m 0640 -g privoxy -o privoxy
+ insinto /etc/privoxy
+ doins default.filter trust default.action config
+
+ insinto /etc/privoxy/templates
+ doins templates/*
+
+ doman privoxy.1
+
+ dodoc LICENSE README AUTHORS doc/text/faq.txt ChangeLog
+
+ insopts
+ for i in developer-manual faq man-page user-manual
+ do
+ insinto /usr/share/doc/${PF}/$i
+ doins doc/webserver/$i/*
+ done
+
+ insopts -m 0754 -g privoxy -o privoxy
+ insinto /etc/init.d
+ newins ${FILESDIR}/privoxy.rc6 privoxy
+
+ insopts -m 0750 -g privoxy -o privoxy
+ insinto /usr/sbin
+ doins privoxy
+}