summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-08-15 19:04:44 +0000
committerStuart Herbert <stuart@gentoo.org>2004-08-15 19:04:44 +0000
commit00991ff0f54b8980cb7f1f4d4accb4e4ffae04da (patch)
treee3ec49af63710c5639ba0ca97224c9114dc31e67 /www-proxy
parentMoved from net-www/squid to www-proxy/squid (diff)
downloadgentoo-2-00991ff0f54b8980cb7f1f4d4accb4e4ffae04da.tar.gz
gentoo-2-00991ff0f54b8980cb7f1f4d4accb4e4ffae04da.tar.bz2
gentoo-2-00991ff0f54b8980cb7f1f4d4accb4e4ffae04da.zip
Moved from net-www/squidguard to www-proxy/squidguard.
Diffstat (limited to 'www-proxy')
-rw-r--r--www-proxy/squidguard/ChangeLog43
-rw-r--r--www-proxy/squidguard/Manifest9
-rw-r--r--www-proxy/squidguard/files/blockedsites1
-rw-r--r--www-proxy/squidguard/files/digest-squidguard-1.2.0-r11
-rw-r--r--www-proxy/squidguard/files/squidGuard.conf.blocksites13
-rw-r--r--www-proxy/squidguard/files/squidGuard.conf.minimal7
-rw-r--r--www-proxy/squidguard/files/squidguard-1.2.0-db4.patch23
-rw-r--r--www-proxy/squidguard/files/squidguard-1.2.0-db41.patch24
-rw-r--r--www-proxy/squidguard/metadata.xml9
-rw-r--r--www-proxy/squidguard/squidguard-1.2.0-r1.ebuild71
10 files changed, 201 insertions, 0 deletions
diff --git a/www-proxy/squidguard/ChangeLog b/www-proxy/squidguard/ChangeLog
new file mode 100644
index 000000000000..dd37b7c26548
--- /dev/null
+++ b/www-proxy/squidguard/ChangeLog
@@ -0,0 +1,43 @@
+# ChangeLog for net-www/squidguard
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-proxy/squidguard/ChangeLog,v 1.1 2004/08/15 19:04:44 stuart Exp $
+
+*squidguard-1.2.0-r1 (15 Aug 2004)
+
+ 15 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +files/blockedsites, +files/squidGuard.conf.blocksites,
+ +files/squidGuard.conf.minimal, +files/squidguard-1.2.0-db4.patch,
+ +files/squidguard-1.2.0-db41.patch, +squidguard-1.2.0-r1.ebuild:
+ Moved from net-www/squidguard to www-proxy/squidguard.
+
+ 15 Jul 2004; Andrew Bevitt <cyfred@gentoo.org>;
+ +files/squidguard-1.2.0-db41.patch, squidguard-1.2.0-r1.ebuild,
+ -squidguard-1.2.0.ebuild:
+ Adding support for DB 4.1, closing bugs #34154 and #44546; removing old
+ version.
+
+ 23 Jun 2004; Andrew Bevitt <cyfred@gentoo.org>; +metadata.xml:
+ Adding metadata.xml
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> squidguard-1.2.0-r1.ebuild:
+ Add inherit eutils
+
+ 20 Sep 2003; Todd Sunderlin <todd@gentoo.org> squidguard-1.2.0.ebuild:
+ marked unstable for sparc
+
+*squidguard-1.2.0-r1 (04 Aug 2003)
+
+ 04 Aug 2003; Martin Holzer <mholzer@gentoo.org> squidguard-1.2.0-r1.ebuild:
+ Adding config option. Submitted by Maik Schreiber <blizzy@blizzy.de> in #25516.
+
+ 28 May 2003; Paul de Vrieze <pauldv@gentoo.org> squidguard-1.2.0.ebuild:
+ Fix squidguard to properly recognize db4's versioned symbols.
+
+*squidguard-1.2.0 (23 Oct 2002)
+
+ 13 Apr 2003; Martin Holzer <mholzer@gentoo.org> Manifest,
+ squidguard-1.2.0.ebuild:
+ Corrected Homepage. Closes #19255.
+
+ 23 Oct 2002; Maik Schreiber <blizzy@gentoo.org> : Initial import. ebuild done
+ by myself.
diff --git a/www-proxy/squidguard/Manifest b/www-proxy/squidguard/Manifest
new file mode 100644
index 000000000000..f965147bad9f
--- /dev/null
+++ b/www-proxy/squidguard/Manifest
@@ -0,0 +1,9 @@
+MD5 f6da3fed6b8b27c70063f6f8b3b5bf57 squidguard-1.2.0-r1.ebuild 1865
+MD5 a8263eb807f17b8e8dfe146683d3df96 ChangeLog 1318
+MD5 d7dd06078d4f3a44b46709294cc7bc21 metadata.xml 249
+MD5 127270fbe0d0bfbc141ffaf56313f3e6 files/blockedsites 8
+MD5 0c3ba4835c98256ad8ee4bf3336eb277 files/squidGuard.conf.minimal 61
+MD5 5838403ff8fe47285fdc4235a53467ba files/squidguard-1.2.0-db4.patch 685
+MD5 71814cadfec6eed3d7ee2437fdd1f0ab files/squidguard-1.2.0-db41.patch 794
+MD5 bca506ead890af8fe52e0fdf5e73440f files/digest-squidguard-1.2.0-r1 69
+MD5 3e17e52277c56640bb3a9a24da57dae9 files/squidGuard.conf.blocksites 192
diff --git a/www-proxy/squidguard/files/blockedsites b/www-proxy/squidguard/files/blockedsites
new file mode 100644
index 000000000000..46279a47eed4
--- /dev/null
+++ b/www-proxy/squidguard/files/blockedsites
@@ -0,0 +1 @@
+sex.com
diff --git a/www-proxy/squidguard/files/digest-squidguard-1.2.0-r1 b/www-proxy/squidguard/files/digest-squidguard-1.2.0-r1
new file mode 100644
index 000000000000..d941cb9c00f7
--- /dev/null
+++ b/www-proxy/squidguard/files/digest-squidguard-1.2.0-r1
@@ -0,0 +1 @@
+MD5 c6e2e9112fdbda0602656f94c1ce31fd squidGuard-1.2.0.tar.gz 1852737
diff --git a/www-proxy/squidguard/files/squidGuard.conf.blocksites b/www-proxy/squidguard/files/squidGuard.conf.blocksites
new file mode 100644
index 000000000000..eaa8cdeef051
--- /dev/null
+++ b/www-proxy/squidguard/files/squidGuard.conf.blocksites
@@ -0,0 +1,13 @@
+logdir /var/log/squidGuard
+dbhome /etc/squidGuard/db
+
+dest blockedsites {
+ domainlist blockedsites
+}
+
+acl {
+ default {
+ pass !blockedsites all
+ redirect http://www.sample.com/empty.png
+ }
+}
diff --git a/www-proxy/squidguard/files/squidGuard.conf.minimal b/www-proxy/squidguard/files/squidGuard.conf.minimal
new file mode 100644
index 000000000000..3b0ebf55c766
--- /dev/null
+++ b/www-proxy/squidguard/files/squidGuard.conf.minimal
@@ -0,0 +1,7 @@
+logdir /var/log/squidGuard
+
+acl {
+ default {
+ pass all
+ }
+}
diff --git a/www-proxy/squidguard/files/squidguard-1.2.0-db4.patch b/www-proxy/squidguard/files/squidguard-1.2.0-db4.patch
new file mode 100644
index 000000000000..37da3f1bfded
--- /dev/null
+++ b/www-proxy/squidguard/files/squidguard-1.2.0-db4.patch
@@ -0,0 +1,23 @@
+diff -urN squidGuard-1.2.0.orig/configure.in squidGuard-1.2.0/configure.in
+--- squidGuard-1.2.0.orig/configure.in 2001-12-18 11:16:36.000000000 +0100
++++ squidGuard-1.2.0/configure.in 2003-05-28 09:57:42.000000000 +0200
+@@ -71,7 +71,9 @@
+
+ dnl Checks for libraries.
+
+-AC_CHECK_LIB(db,db_version,,[
++AC_CHECK_LIB(db,db_version,,
++AC_CHECK_LIB(db,db_version_4000,,
++AC_CHECK_LIB(db,db_version_4001,,[
+ echo
+ echo "** The Berkley DB library is required for squidGuard"
+ echo " to compile. Get it from http://www.sleepycat.com"
+@@ -79,7 +81,7 @@
+ echo " its location. (default is $dbprefix/BerkeleyDB)"
+ echo
+ exit 1
+- ])
++ ])))
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
diff --git a/www-proxy/squidguard/files/squidguard-1.2.0-db41.patch b/www-proxy/squidguard/files/squidguard-1.2.0-db41.patch
new file mode 100644
index 000000000000..76a57a5f1deb
--- /dev/null
+++ b/www-proxy/squidguard/files/squidguard-1.2.0-db41.patch
@@ -0,0 +1,24 @@
+--- src/sgDb.c 2004-07-04 11:36:19.020675285 +0100
++++ src/sgDb.ok.c 2004-07-04 11:40:25.011222369 +0100
+@@ -98,13 +98,21 @@
+ if(createdb)
+ flag = flag | DB_TRUNCATE;
+ if ((ret =
++#if DB_VERSION_MINOR == 1
++ Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) {
++#else
+ Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) {
++#endif
+ (void) Db->dbp->close(Db->dbp, 0);
+ sgLogFatalError("Error db_open: %s", strerror(ret));
+ }
+ } else {
+ if ((ret =
++#if DB_VERSION_MINOR == 1
++ Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
++#else
+ Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
++#endif
+ sgLogFatalError("Error db_open: %s", strerror(ret));
+ }
+ }
diff --git a/www-proxy/squidguard/metadata.xml b/www-proxy/squidguard/metadata.xml
new file mode 100644
index 000000000000..3dec35759a0d
--- /dev/null
+++ b/www-proxy/squidguard/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>no-herd</herd>
+<maintainer>
+ <email>cyfred@gentoo.org</email>
+ <name>Andrew Bevitt</name>
+</maintainer>
+</pkgmetadata>
diff --git a/www-proxy/squidguard/squidguard-1.2.0-r1.ebuild b/www-proxy/squidguard/squidguard-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..049eae6af396
--- /dev/null
+++ b/www-proxy/squidguard/squidguard-1.2.0-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-proxy/squidguard/squidguard-1.2.0-r1.ebuild,v 1.1 2004/08/15 19:04:44 stuart Exp $
+
+inherit eutils
+
+MY_P=squidGuard-${PV}
+DESCRIPTION="Combined filter, redirector and access controller plugin for Squid."
+HOMEPAGE="http://www.squidguard.org"
+SRC_URI="http://ftp.teledanmark.no/pub/www/proxy/squidGuard/${MY_P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND="net-www/squid
+ >=sys-libs/db-2"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A} || die "unpack problem"
+ cd ${S}
+ epatch ${FILESDIR}/${P}-db4.patch
+ epatch ${FILESDIR}/${P}-db41.patch
+ autoconf || die "autoconf problem"
+}
+
+src_compile() {
+ econf \
+ --with-sg-config=/etc/squidGuard/squidGuard.conf \
+ --with-sg-logdir=/var/log/squidGuard \
+ || die "configure problem"
+
+ mv src/Makefile src/Makefile.orig
+ sed <src/Makefile.orig >src/Makefile \
+ -e "s|logdir\t= /var/log/squidGuard|logdir\t= ${D}/var/log/squidGuard|" \
+ -e "s|cfgdir\t= /etc/squidGuard|cfgdir\t= ${D}/etc/squidGuard|"
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ make prefix=${D}/usr install
+
+ dodir /var/log/squidGuard
+ fowners squid:squid /var/log/squidGuard
+
+ insinto /etc/squidGuard/sample
+ doins ${FILESDIR}/squidGuard.conf.*
+ insinto /etc/squidGuard/sample/db
+ doins ${FILESDIR}/blockedsites
+
+ dodoc ANNOUNCE CHANGELOG COPYING GPL README
+ dohtml doc/*.html
+ docinto text
+ dodoc doc/*.txt
+}
+
+pkg_postinst() {
+ einfo "To use squidGuard, you should add the following line to your"
+ einfo "/etc/squid/squid.conf:"
+ einfo ""
+ einfo "\tredirect_program /usr/bin/squidGuard"
+ einfo ""
+ einfo "Remember to edit /etc/squidGuard/squidGuard.conf first!"
+ einfo "Examples can be found in /etc/squidGuard/sample/"
+}