summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-04-22 19:15:12 +0000
committerAlin Năstac <mrness@gentoo.org>2005-04-22 19:15:12 +0000
commitf37e8c80d1499334a8b5d51bf781f5a655e68147 (patch)
tree00cd35d8f79526e3d16c31f19bf342992ba539c2 /net-proxy/dansguardian
parentAdding pcmcia flag. Closes #90025, Cheers Georgi (diff)
downloadhistorical-f37e8c80d1499334a8b5d51bf781f5a655e68147.tar.gz
historical-f37e8c80d1499334a8b5d51bf781f5a655e68147.tar.bz2
historical-f37e8c80d1499334a8b5d51bf781f5a655e68147.zip
www-proxy -> net-proxy
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-proxy/dansguardian')
-rw-r--r--net-proxy/dansguardian/ChangeLog113
-rw-r--r--net-proxy/dansguardian/Manifest8
-rw-r--r--net-proxy/dansguardian/dansguardian-2.8.0.2.ebuild47
-rw-r--r--net-proxy/dansguardian/dansguardian-2.8.0.4.ebuild48
-rw-r--r--net-proxy/dansguardian/files/dansguardian-xnaughty-2.7.6-1.diff50
-rw-r--r--net-proxy/dansguardian/files/dansguardian.init22
-rw-r--r--net-proxy/dansguardian/files/digest-dansguardian-2.8.0.21
-rw-r--r--net-proxy/dansguardian/files/digest-dansguardian-2.8.0.41
-rw-r--r--net-proxy/dansguardian/metadata.xml6
9 files changed, 296 insertions, 0 deletions
diff --git a/net-proxy/dansguardian/ChangeLog b/net-proxy/dansguardian/ChangeLog
new file mode 100644
index 000000000000..a28ba870e969
--- /dev/null
+++ b/net-proxy/dansguardian/ChangeLog
@@ -0,0 +1,113 @@
+# ChangeLog for www-proxy/dansguardian
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.1 2005/04/22 19:15:11 mrness Exp $
+
+ 22 Apr 2005; Alin Nastac <mrness@gentoo.org> :
+ Rename category & herd www-proxy to net-proxy
+
+ 09 Apr 2005; Markus Rothe <corsair@gentoo.org>
+ dansguardian-2.8.0.4.ebuild:
+ Stable on ppc64
+
+ 06 Apr 2005; Alin Nastac <mrness@gentoo.org> dansguardian-2.8.0.4.ebuild:
+ Stable on x86
+
+ 25 Mar 2005; <blubb@gentoo.org> dansguardian-2.8.0.4.ebuild:
+ added ~amd64
+
+ 11 Mar 2005; Alin Nastac <mrness@gentoo.org> -dansguardian-2.7.1.ebuild,
+ -dansguardian-2.7.6.ebuild, dansguardian-2.8.0.4.ebuild:
+ Remove obsolete versions and fix mode of init.d script.
+
+ 08 Mar 2005; Alin Nastac <mrness@gentoo.org> dansguardian-2.7.1.ebuild,
+ dansguardian-2.7.6.ebuild, dansguardian-2.8.0.2.ebuild,
+ dansguardian-2.8.0.4.ebuild:
+ Inter-block this package with dansguardian-dgav.
+
+*dansguardian-2.8.0.4 (26 Feb 2005)
+
+ 26 Feb 2005; Alin Nastac <mrness@gentoo.org> metadata.xml,
+ files/dansguardian.init, dansguardian-2.8.0.2.ebuild,
+ +dansguardian-2.8.0.4.ebuild:
+ Version bump. Fix bug #66177. Append user CFLAGS. Change herd to www-proxy.
+
+ 06 Feb 2005; Markus Rothe <corsair@gentoo.org> dansguardian-2.8.0.2.ebuild:
+ Stable on ppc64
+
+ 30 Dec 2004; Markus Rothe <corsair@gentoo.org> dansguardian-2.8.0.2.ebuild:
+ Added ~ppc64 to KEYWORDS
+
+ 05 Sep 2004; Sven Wegener <swegener@gentoo.org> :
+ Fixed ChangeLog header.
+
+ 29 Aug 2004; David Holm <dholm@gentoo.org> dansguardian-2.8.0.2.ebuild:
+ Added to ~ppc.
+
+*dansguardian-2.8.0.2 (27 Aug 2004)
+
+ 27 Aug 2004; Renat Lumpau <rl03@gentoo.org> +dansguardian-2.8.0.2.ebuild:
+ Version bump, updated location of cgi-in. Closes #58400, 54961.
+
+ 27 Aug 2004; Renat Lumpau <rl03@gentoo.org> metadata.xml:
+ Method is no longer maintaining dansguardian; reassigning to web-apps.
+
+ 16 Aug 2004; Andrew Bevitt <cyfred@gentoo.org>; dansguardian-2.7.1.ebuild:
+ Changing net-www/squid to www-proxy/squid in 2.7.1 depends
+
+*dansguardian-2.7.1 (15 Aug 2004)
+
+ 15 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +files/dansguardian-xnaughty-2.7.6-1.diff, +files/dansguardian.init,
+ +dansguardian-2.7.1.ebuild, +dansguardian-2.7.6.ebuild:
+ Moved from net-www/dansguardian to www-proxy/dansguardian.
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ dansguardian-2.7.6.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 15 Apr 2004; Ciaran McCreesh <ciaranm@gentoo.org> dansguardian-2.7.6.ebuild:
+ Added ~sparc,
+
+ 14 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ dansguardian-2.7.1.ebuild, dansguardian-2.7.6.ebuild:
+ don't assign to P; inherit eutils for epatch; error messages
+
+ 14 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ dansguardian-2.6.0.ebuild, dansguardian-2.7.2.ebuild,
+ dansguardian-2.7.5.ebuild:
+ tidy extra versions, leaving one stable and one unstable
+
+*dansguardian-2.7.6 (05 Dec 2003)
+
+ 05 Dec 2003; Joshua Brindle <method@gentoo.org> dansguardian-2.7.6.ebuild,
+ files/dansguardian-xnaughty-2.7.6-1.diff:
+ version bump, took squid out of DEPEND since you can use any proxy
+ (particularly lighter weight ones), added my patch to add an X-Naughty header
+ to naughty pages but otherwise leave them alone (for better control upstream)
+
+*dansguardian-2.7.5 (19 Nov 2003)
+
+ 19 Nov 2003; Joshua Brindle <method@gentoo.org> dansguardian-2.7.5.ebuild:
+ version bump
+
+ 05 Aug 2003; Joshua Brindle <method@gentoo.org> dansguardian-2.7.1.ebuild,
+ dansguardian-2.7.2.ebuild:
+ fixed logrotate issue
+
+*dansguardian-2.7.2 (31 Jul 2003)
+
+ 31 Jul 2003; Joshua Brindle <method@gentoo.org> dansguardian-2.7.2.ebuild:
+ upstream bump
+
+*dansguardian-2.7.1 (28 May 2003)
+
+ 28 May 2003; Joshua Brindle <method@gentoo.org> dansguardian-2.6.0.ebuild,
+ dansguardian-2.7.1.ebuild, files/dansguardian.init:
+ initial import thanks to Pat Double <double@inebraska.com>
+
+*dansguardian-2.6.0 (28 May 2003)
+
+ 28 May 2003; Joshua Brindle <method@gentoo.org> dansguardian-2.6.0.ebuild,
+ dansguardian-2.7.1.ebuild, files/dansguardian.init:
+ initial import thanks to Pat Double <double@inebraska.com>
+
diff --git a/net-proxy/dansguardian/Manifest b/net-proxy/dansguardian/Manifest
new file mode 100644
index 000000000000..0e03f2e94963
--- /dev/null
+++ b/net-proxy/dansguardian/Manifest
@@ -0,0 +1,8 @@
+MD5 1e4434ca9533fb6090aa5f2a573934cd dansguardian-2.8.0.2.ebuild 1305
+MD5 60c577f55a6a615b898487b756f51932 dansguardian-2.8.0.4.ebuild 1195
+MD5 fee62f35bb3d7a67eaeb0e377e4574b3 ChangeLog 4199
+MD5 30b14eaf02c479d70f60157c1a29a294 metadata.xml 568
+MD5 2eac5634ff8ad0ba6701815c2befce6b files/digest-dansguardian-2.8.0.2 79
+MD5 579f2cac2dbebe18ff6900fd3aa87f66 files/digest-dansguardian-2.8.0.4 79
+MD5 4365b34f67519fc4539e0d1b404ae11e files/dansguardian.init 565
+MD5 6313b934a33da7e4308812e834494074 files/dansguardian-xnaughty-2.7.6-1.diff 2325
diff --git a/net-proxy/dansguardian/dansguardian-2.8.0.2.ebuild b/net-proxy/dansguardian/dansguardian-2.8.0.2.ebuild
new file mode 100644
index 000000000000..b900a4454d20
--- /dev/null
+++ b/net-proxy/dansguardian/dansguardian-2.8.0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/dansguardian-2.8.0.2.ebuild,v 1.1 2005/04/22 19:15:11 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="Web content filtering via proxy"
+HOMEPAGE="http://dansguardian.org"
+SRC_URI="http://mirror.dansguardian.org/downloads/2/Stable/${P}.source.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~sparc ~ppc ppc64"
+IUSE=""
+DEPEND="!net-proxy/dansguardian-dgav
+ virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/dansguardian-xnaughty-2.7.6-1.diff
+}
+
+src_compile() {
+ ./configure \
+ --prefix= \
+ --installprefix=${D} \
+ --mandir=/usr/share/man/ \
+ --cgidir=/var/www/localhost/cgi-bin/ || die "./configure failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ if [ -d "/etc/logrotate.d" ]; then mkdir -p ${D}/etc/logrotate.d; fi
+ make install || die "make install failed"
+
+ dodir /etc/init.d
+ cp ${FILESDIR}/dansguardian.init ${D}/etc/init.d/dansguardian
+
+ rm -rf ${D}/etc/rc.d
+
+ einfo "Fixing location of initscript"
+ sed 's/rc.d\///' ${D}/etc/dansguardian/logrotation > ${D}/etc/dansguardian/logrotation.fixed
+ mv -f ${D}/etc/dansguardian/logrotation.fixed ${D}/etc/dansguardian/logrotation
+
+ dodoc INSTALL README LICENSE
+}
diff --git a/net-proxy/dansguardian/dansguardian-2.8.0.4.ebuild b/net-proxy/dansguardian/dansguardian-2.8.0.4.ebuild
new file mode 100644
index 000000000000..943cdfb201f6
--- /dev/null
+++ b/net-proxy/dansguardian/dansguardian-2.8.0.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/dansguardian-2.8.0.4.ebuild,v 1.1 2005/04/22 19:15:11 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="Web content filtering via proxy"
+HOMEPAGE="http://dansguardian.org"
+SRC_URI="http://mirror.dansguardian.org/downloads/2/Stable/${P}.source.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~sparc ~ppc ppc64 ~amd64"
+IUSE=""
+DEPEND="!net-proxy/dansguardian-dgav
+ virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/dansguardian-xnaughty-2.7.6-1.diff
+}
+
+src_compile() {
+ ./configure \
+ --prefix= \
+ --installprefix=${D} \
+ --mandir=/usr/share/man/ \
+ --cgidir=/var/www/localhost/cgi-bin/ || die "./configure failed"
+ emake OPTIMISE="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ if [ -d "/etc/logrotate.d" ]; then
+ dodir /etc/logrotate.d
+ fi
+ make install || die "make install failed"
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/dansguardian.init dansguardian
+
+ rm -rf ${D}/etc/rc.d
+
+ #Fixing location of initscript
+ sed -i -e 's/rc.d\///' ${D}/etc/dansguardian/logrotation
+
+ dodoc INSTALL README LICENSE
+}
diff --git a/net-proxy/dansguardian/files/dansguardian-xnaughty-2.7.6-1.diff b/net-proxy/dansguardian/files/dansguardian-xnaughty-2.7.6-1.diff
new file mode 100644
index 000000000000..d1e097ce0b08
--- /dev/null
+++ b/net-proxy/dansguardian/files/dansguardian-xnaughty-2.7.6-1.diff
@@ -0,0 +1,50 @@
+diff -ur DansGuardian-2.7.6-1/ConnectionHandler.cpp DansGuardian-2.7.6-1-new/ConnectionHandler.cpp
+--- DansGuardian-2.7.6-1/ConnectionHandler.cpp 2003-12-03 16:04:18.000000000 -0600
++++ DansGuardian-2.7.6-1-new/ConnectionHandler.cpp 2003-12-03 17:43:36.000000000 -0600
+@@ -990,6 +990,11 @@
+ else if (o.reporting_level == -1) { // stealth
+ (*checkme).isItNaughty = false; // dont block
+ }
++ else if (o.reporting_level == -2) { // just add a header
++ (*docheader).addXNaughty("true", (*checkme).whatIsNaughty.c_str(), (*url).toCharArray());
++ (*checkme).isItNaughty = false; // dont block
++ }
++
+ } catch (exception& e) {}
+ if ((*checkme).isItNaughty) { // not stealth mode then
+ try {
+Only in DansGuardian-2.7.6-1-new/: ConnectionHandler.cpp.orig
+diff -ur DansGuardian-2.7.6-1/HTTPHeader.cpp DansGuardian-2.7.6-1-new/HTTPHeader.cpp
+--- DansGuardian-2.7.6-1/HTTPHeader.cpp 2003-12-03 16:04:18.000000000 -0600
++++ DansGuardian-2.7.6-1-new/HTTPHeader.cpp 2003-12-03 17:38:09.000000000 -0600
+@@ -456,6 +456,17 @@
+ header.push_back(String(line.c_str()));
+ }
+
++void HTTPHeader::addXNaughty(std::string naughty, std::string whatIsNaughty, std::string whereIsNaughty) {
++ std::string line;
++
++ line = "X-Naughty: " + naughty + "\r";
++ header.push_back(String(line.c_str()));
++ line = "X-Naughty-Why: " + whatIsNaughty + "\r";
++ header.push_back(String(line.c_str()));
++ line = "X-Naughty-Where: " + whereIsNaughty + "\r";
++ header.push_back(String(line.c_str()));
++}
++
+ void HTTPHeader::setTimeout(int t) {
+ timeout = t;
+ }
+Only in DansGuardian-2.7.6-1-new/: HTTPHeader.cpp.orig
+diff -ur DansGuardian-2.7.6-1/HTTPHeader.hpp DansGuardian-2.7.6-1-new/HTTPHeader.hpp
+--- DansGuardian-2.7.6-1/HTTPHeader.hpp 2003-12-03 16:04:18.000000000 -0600
++++ DansGuardian-2.7.6-1-new/HTTPHeader.hpp 2003-12-03 17:38:09.000000000 -0600
+@@ -43,6 +43,7 @@
+ std::string getXForwardedForIP();
+ void setTimeout(int t);
+ void addXForwardedFor(std::string clientip);
++ void addXNaughty(std::string naughty, std::string whatIsNaughty, std::string whereIsNaughty);
+ bool isCompressed();
+ String contentEncoding();
+ void removeEncoding(int newlen);
+Only in DansGuardian-2.7.6-1-new/: HTTPHeader.hpp.orig
diff --git a/net-proxy/dansguardian/files/dansguardian.init b/net-proxy/dansguardian/files/dansguardian.init
new file mode 100644
index 000000000000..0c27c771d30f
--- /dev/null
+++ b/net-proxy/dansguardian/files/dansguardian.init
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/files/dansguardian.init,v 1.1 2005/04/22 19:15:11 mrness Exp $
+
+depend() {
+ need net
+ after squid
+}
+
+start() {
+ ebegin "Starting DansGuardian"
+ start-stop-daemon --start --quiet --pidfile /var/run/dansguardian.pid \
+ --exec /usr/sbin/dansguardian
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DansGuardian"
+ start-stop-daemon --stop --quiet --pidfile /var/run/dansguardian.pid
+ eend $?
+}
diff --git a/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.2 b/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.2
new file mode 100644
index 000000000000..10ecce2193d7
--- /dev/null
+++ b/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.2
@@ -0,0 +1 @@
+MD5 94e967f97930739de6c531ec4db67d48 dansguardian-2.8.0.2.source.tar.gz 192297
diff --git a/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.4 b/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.4
new file mode 100644
index 000000000000..10e27cf9e6b6
--- /dev/null
+++ b/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.4
@@ -0,0 +1 @@
+MD5 91d65adf4087a863ad605dddd6e18046 dansguardian-2.8.0.4.source.tar.gz 194475
diff --git a/net-proxy/dansguardian/metadata.xml b/net-proxy/dansguardian/metadata.xml
new file mode 100644
index 000000000000..0139b229d603
--- /dev/null
+++ b/net-proxy/dansguardian/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-proxy</herd>
+<longdescription>DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.</longdescription>
+</pkgmetadata>