diff options
author | Alin Năstac <mrness@gentoo.org> | 2005-04-22 19:15:12 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2005-04-22 19:15:12 +0000 |
commit | f37e8c80d1499334a8b5d51bf781f5a655e68147 (patch) | |
tree | 00cd35d8f79526e3d16c31f19bf342992ba539c2 /net-proxy/squidguard | |
parent | Adding pcmcia flag. Closes #90025, Cheers Georgi (diff) | |
download | historical-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/squidguard')
-rw-r--r-- | net-proxy/squidguard/ChangeLog | 73 | ||||
-rw-r--r-- | net-proxy/squidguard/Manifest | 10 | ||||
-rw-r--r-- | net-proxy/squidguard/files/blockedsites | 1 | ||||
-rw-r--r-- | net-proxy/squidguard/files/digest-squidguard-1.2.0-r1 | 1 | ||||
-rw-r--r-- | net-proxy/squidguard/files/squidGuard.conf.blocksites | 13 | ||||
-rw-r--r-- | net-proxy/squidguard/files/squidGuard.conf.minimal | 7 | ||||
-rw-r--r-- | net-proxy/squidguard/files/squidguard-1.2.0-db4.patch | 23 | ||||
-rw-r--r-- | net-proxy/squidguard/files/squidguard-1.2.0-db41.patch | 24 | ||||
-rw-r--r-- | net-proxy/squidguard/files/squidguard-1.2.0-db42.patch | 41 | ||||
-rw-r--r-- | net-proxy/squidguard/metadata.xml | 10 | ||||
-rw-r--r-- | net-proxy/squidguard/squidguard-1.2.0-r1.ebuild | 73 |
11 files changed, 276 insertions, 0 deletions
diff --git a/net-proxy/squidguard/ChangeLog b/net-proxy/squidguard/ChangeLog new file mode 100644 index 000000000000..2ce3ab626292 --- /dev/null +++ b/net-proxy/squidguard/ChangeLog @@ -0,0 +1,73 @@ +# ChangeLog for www-proxy/squidguard +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidguard/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 + + 07 Apr 2005; Marcus D. Hanwell <cryos@gentoo.org> + squidguard-1.2.0-r1.ebuild: + Marked ~amd64, closes bug 87088. + + 07 Mar 2005; Markus Rothe <corsair@gentoo.org> squidguard-1.2.0-r1.ebuild: + Stable on ppc64 + + 26 Jan 2005; Markus Rothe <corsair@gentoo.org> squidguard-1.2.0-r1.ebuild: + Added ~ppc64 to KEYWORDS; bug #79564 + + 05 Sep 2004; Sven Wegener <swegener@gentoo.org> : + Fixed ChangeLog header. + + 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> + squidguard-1.2.0-r1.ebuild: + Masked squidguard-1.2.0-r1.ebuild stable for ppc + + 31 Aug 2004; David Holm <dholm@gentoo.org> squidguard-1.2.0-r1.ebuild: + Added to ~ppc. + + 26 Aug 2004; Andrew Bevitt <cyfred@gentoo.org>; + +files/squidguard-1.2.0-db42.patch, squidguard-1.2.0-r1.ebuild: + Adding db4.2 support, see bug #61578 + + 16 Aug 2004; Andrew Bevitt <cyfred@gentoo.org>; squidguard-1.2.0-r1.ebuild: + Changing net-www/squid to www-proxy/squid in depends + +*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/net-proxy/squidguard/Manifest b/net-proxy/squidguard/Manifest new file mode 100644 index 000000000000..6d2ca8bc73bb --- /dev/null +++ b/net-proxy/squidguard/Manifest @@ -0,0 +1,10 @@ +MD5 ff6ae5ac78a0ad3f3ebabc066d8bca6f squidguard-1.2.0-r1.ebuild 1944 +MD5 133d522b708b84898bd2316c42b85047 ChangeLog 2703 +MD5 6910c65b0c4ea4edfa1c7e642b16ef97 metadata.xml 353 +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 +MD5 d639b977d8cfd92f19913f1d9fa12564 files/squidguard-1.2.0-db42.patch 1348 diff --git a/net-proxy/squidguard/files/blockedsites b/net-proxy/squidguard/files/blockedsites new file mode 100644 index 000000000000..46279a47eed4 --- /dev/null +++ b/net-proxy/squidguard/files/blockedsites @@ -0,0 +1 @@ +sex.com diff --git a/net-proxy/squidguard/files/digest-squidguard-1.2.0-r1 b/net-proxy/squidguard/files/digest-squidguard-1.2.0-r1 new file mode 100644 index 000000000000..d941cb9c00f7 --- /dev/null +++ b/net-proxy/squidguard/files/digest-squidguard-1.2.0-r1 @@ -0,0 +1 @@ +MD5 c6e2e9112fdbda0602656f94c1ce31fd squidGuard-1.2.0.tar.gz 1852737 diff --git a/net-proxy/squidguard/files/squidGuard.conf.blocksites b/net-proxy/squidguard/files/squidGuard.conf.blocksites new file mode 100644 index 000000000000..eaa8cdeef051 --- /dev/null +++ b/net-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/net-proxy/squidguard/files/squidGuard.conf.minimal b/net-proxy/squidguard/files/squidGuard.conf.minimal new file mode 100644 index 000000000000..3b0ebf55c766 --- /dev/null +++ b/net-proxy/squidguard/files/squidGuard.conf.minimal @@ -0,0 +1,7 @@ +logdir /var/log/squidGuard + +acl { + default { + pass all + } +} diff --git a/net-proxy/squidguard/files/squidguard-1.2.0-db4.patch b/net-proxy/squidguard/files/squidguard-1.2.0-db4.patch new file mode 100644 index 000000000000..37da3f1bfded --- /dev/null +++ b/net-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/net-proxy/squidguard/files/squidguard-1.2.0-db41.patch b/net-proxy/squidguard/files/squidguard-1.2.0-db41.patch new file mode 100644 index 000000000000..76a57a5f1deb --- /dev/null +++ b/net-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/net-proxy/squidguard/files/squidguard-1.2.0-db42.patch b/net-proxy/squidguard/files/squidguard-1.2.0-db42.patch new file mode 100644 index 000000000000..bc7e567ac1a5 --- /dev/null +++ b/net-proxy/squidguard/files/squidguard-1.2.0-db42.patch @@ -0,0 +1,41 @@ +--- squidGuard-1.2.0/configure.in.chris 2004-08-25 02:44:38 +0000 ++++ squidGuard-1.2.0/configure.in 2004-08-25 02:46:18 +0000 +@@ -73,7 +73,8 @@ + + AC_CHECK_LIB(db,db_version,, + AC_CHECK_LIB(db,db_version_4000,, +-AC_CHECK_LIB(db,db_version_4001,,[ ++AC_CHECK_LIB(db,db_version_4001,, ++AC_CHECK_LIB(db,db_version_4002,,[ + echo + echo "** The Berkley DB library is required for squidGuard" + echo " to compile. Get it from http://www.sleepycat.com" +@@ -82,7 +82,7 @@ + echo " its location. (default is $dbprefix/BerkeleyDB)" + echo + exit 1 +- ]))) ++ ])))) + + dnl Checks for header files. + AC_HEADER_STDC +--- squidGuard-1.2.0/src/sgDb.c.chris 2004-08-25 02:46:44 +0000 ++++ squidGuard-1.2.0/src/sgDb.c 2004-08-25 02:47:01 +0000 +@@ -98,7 +98,7 @@ + if(createdb) + flag = flag | DB_TRUNCATE; + if ((ret = +-#if DB_VERSION_MINOR == 1 ++#if DB_VERSION_MINOR == 1 || DB_VERSION_MINOR == 2 + 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) { +@@ -108,7 +108,7 @@ + } + } else { + if ((ret = +-#if DB_VERSION_MINOR == 1 ++#if DB_VERSION_MINOR == 1 || DB_VERSION_MINOR == 2 + 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) { diff --git a/net-proxy/squidguard/metadata.xml b/net-proxy/squidguard/metadata.xml new file mode 100644 index 000000000000..2d81b548192e --- /dev/null +++ b/net-proxy/squidguard/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>net-proxy</herd> +<maintainer> + <email>cyfred@gentoo.org</email> + <name>Andrew Bevitt</name> +</maintainer> +<longdescription>Combined filter, redirector and access controller plugin for Squid</longdescription> +</pkgmetadata> diff --git a/net-proxy/squidguard/squidguard-1.2.0-r1.ebuild b/net-proxy/squidguard/squidguard-1.2.0-r1.ebuild new file mode 100644 index 000000000000..377a57141761 --- /dev/null +++ b/net-proxy/squidguard/squidguard-1.2.0-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidguard/squidguard-1.2.0-r1.ebuild,v 1.1 2005/04/22 19:15:11 mrness 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 ppc ppc64 ~amd64" +IUSE="" + +RDEPEND="net-proxy/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 || die + epatch ${FILESDIR}/${P}-db41.patch || die + epatch ${FILESDIR}/${P}-db42.patch || die + + 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/" +} |