summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-08-15 18:47:23 +0000
committerStuart Herbert <stuart@gentoo.org>2004-08-15 18:47:23 +0000
commitea1142d1efa4e8349a7c74453c22a5248fa1e03b (patch)
tree62a500a275a8f47c0d011ba59fb6ce43b669eedb /www-proxy/dansguardian
parentMoved from net-www/amphetadesk to www-proxy/amphetadesk (diff)
downloadgentoo-2-ea1142d1efa4e8349a7c74453c22a5248fa1e03b.tar.gz
gentoo-2-ea1142d1efa4e8349a7c74453c22a5248fa1e03b.tar.bz2
gentoo-2-ea1142d1efa4e8349a7c74453c22a5248fa1e03b.zip
Moved from net-www/dansguardian to www-proxy/dansguardian.
Diffstat (limited to 'www-proxy/dansguardian')
-rw-r--r--www-proxy/dansguardian/ChangeLog61
-rw-r--r--www-proxy/dansguardian/Manifest8
-rw-r--r--www-proxy/dansguardian/dansguardian-2.7.1.ebuild40
-rw-r--r--www-proxy/dansguardian/dansguardian-2.7.6.ebuild47
-rw-r--r--www-proxy/dansguardian/files/dansguardian-xnaughty-2.7.6-1.diff50
-rw-r--r--www-proxy/dansguardian/files/dansguardian.init21
-rw-r--r--www-proxy/dansguardian/files/digest-dansguardian-2.7.11
-rw-r--r--www-proxy/dansguardian/files/digest-dansguardian-2.7.61
-rw-r--r--www-proxy/dansguardian/metadata.xml10
9 files changed, 239 insertions, 0 deletions
diff --git a/www-proxy/dansguardian/ChangeLog b/www-proxy/dansguardian/ChangeLog
new file mode 100644
index 000000000000..6bd423350b18
--- /dev/null
+++ b/www-proxy/dansguardian/ChangeLog
@@ -0,0 +1,61 @@
+# ChangeLog for net-www/dansguardian
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-proxy/dansguardian/ChangeLog,v 1.1 2004/08/15 18:47:23 stuart Exp $
+
+*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/www-proxy/dansguardian/Manifest b/www-proxy/dansguardian/Manifest
new file mode 100644
index 000000000000..784fbf944e07
--- /dev/null
+++ b/www-proxy/dansguardian/Manifest
@@ -0,0 +1,8 @@
+MD5 329ba46525ae85a3540c58c9064faf14 dansguardian-2.7.6.ebuild 1279
+MD5 b9363efe238b3b1b9d4549d1bac1ad64 dansguardian-2.7.1.ebuild 1158
+MD5 d508ab44f3613367c54971caf5e5b6b5 ChangeLog 2038
+MD5 a2533702c9dced7d7ae7bbb55511864c metadata.xml 666
+MD5 605c8b82854ca8385aebac34fa7ffcc7 files/dansguardian.init 552
+MD5 6313b934a33da7e4308812e834494074 files/dansguardian-xnaughty-2.7.6-1.diff 2325
+MD5 bcf1d489bd7407662079ad6eb5086868 files/digest-dansguardian-2.7.1 79
+MD5 dbb7df85d7384d34a2f0bf8defc5c03c files/digest-dansguardian-2.7.6 79
diff --git a/www-proxy/dansguardian/dansguardian-2.7.1.ebuild b/www-proxy/dansguardian/dansguardian-2.7.1.ebuild
new file mode 100644
index 000000000000..e7fe96ab921c
--- /dev/null
+++ b/www-proxy/dansguardian/dansguardian-2.7.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-proxy/dansguardian/dansguardian-2.7.1.ebuild,v 1.1 2004/08/15 18:47:23 stuart Exp $
+
+MY_P="DansGuardian-${PV}"
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="Web content filtering via proxy"
+HOMEPAGE="http://dansguardian.org"
+SRC_URI="http://mirror.dansguardian.org/downloads/2/Alpha/${MY_P}-0.source.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND="net-www/squid"
+
+src_compile() {
+ ./configure \
+ --prefix= \
+ --installprefix=${D} \
+ --mandir=/usr/share/man/ || 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/www-proxy/dansguardian/dansguardian-2.7.6.ebuild b/www-proxy/dansguardian/dansguardian-2.7.6.ebuild
new file mode 100644
index 000000000000..f4989b7dc674
--- /dev/null
+++ b/www-proxy/dansguardian/dansguardian-2.7.6.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-proxy/dansguardian/dansguardian-2.7.6.ebuild,v 1.1 2004/08/15 18:47:23 stuart Exp $
+
+inherit eutils
+
+MY_P="DansGuardian-${PV}"
+S="${WORKDIR}/${MY_P}-1"
+DESCRIPTION="Web content filtering via proxy"
+HOMEPAGE="http://dansguardian.org"
+SRC_URI="http://mirror.dansguardian.org/downloads/2/Alpha/${MY_P}-1.source.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~sparc"
+IUSE=""
+DEPEND="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/ || 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/www-proxy/dansguardian/files/dansguardian-xnaughty-2.7.6-1.diff b/www-proxy/dansguardian/files/dansguardian-xnaughty-2.7.6-1.diff
new file mode 100644
index 000000000000..d1e097ce0b08
--- /dev/null
+++ b/www-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/www-proxy/dansguardian/files/dansguardian.init b/www-proxy/dansguardian/files/dansguardian.init
new file mode 100644
index 000000000000..4176d16ac9a0
--- /dev/null
+++ b/www-proxy/dansguardian/files/dansguardian.init
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-proxy/dansguardian/files/dansguardian.init,v 1.1 2004/08/15 18:47:23 stuart Exp $
+
+depend() {
+ need net
+}
+
+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/www-proxy/dansguardian/files/digest-dansguardian-2.7.1 b/www-proxy/dansguardian/files/digest-dansguardian-2.7.1
new file mode 100644
index 000000000000..e104c480079e
--- /dev/null
+++ b/www-proxy/dansguardian/files/digest-dansguardian-2.7.1
@@ -0,0 +1 @@
+MD5 38dfb29f33ffe510cac1a641fa41d837 DansGuardian-2.7.1-0.source.tar.gz 159363
diff --git a/www-proxy/dansguardian/files/digest-dansguardian-2.7.6 b/www-proxy/dansguardian/files/digest-dansguardian-2.7.6
new file mode 100644
index 000000000000..19671a0d8c9f
--- /dev/null
+++ b/www-proxy/dansguardian/files/digest-dansguardian-2.7.6
@@ -0,0 +1 @@
+MD5 e7438f09ac146caf013358df840c5cb8 DansGuardian-2.7.6-1.source.tar.gz 173295
diff --git a/www-proxy/dansguardian/metadata.xml b/www-proxy/dansguardian/metadata.xml
new file mode 100644
index 000000000000..d56d161534c2
--- /dev/null
+++ b/www-proxy/dansguardian/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>method@gentoo.org</email>
+<description>maintainer</description>
+</maintainer>
+<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>