summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaik Schreiber <blizzy@gentoo.org>2002-10-23 13:31:42 +0000
committerMaik Schreiber <blizzy@gentoo.org>2002-10-23 13:31:42 +0000
commitec404981766e9dc9afe9a076ff0a308de1851a4c (patch)
tree37075b7559d212539e76529fa40baa404d9aa2c4 /net-www
parentadded sparc64 for testing (diff)
downloadgentoo-2-ec404981766e9dc9afe9a076ff0a308de1851a4c.tar.gz
gentoo-2-ec404981766e9dc9afe9a076ff0a308de1851a4c.tar.bz2
gentoo-2-ec404981766e9dc9afe9a076ff0a308de1851a4c.zip
initial import
Diffstat (limited to 'net-www')
-rw-r--r--net-www/squidguard/ChangeLog8
-rw-r--r--net-www/squidguard/files/blockedsites1
-rw-r--r--net-www/squidguard/files/digest-squidguard-1.2.01
-rw-r--r--net-www/squidguard/files/squidGuard.conf.blocksites13
-rw-r--r--net-www/squidguard/files/squidGuard.conf.minimal7
-rw-r--r--net-www/squidguard/squidguard-1.2.0.ebuild47
6 files changed, 77 insertions, 0 deletions
diff --git a/net-www/squidguard/ChangeLog b/net-www/squidguard/ChangeLog
new file mode 100644
index 000000000000..36e2ac5e7a97
--- /dev/null
+++ b/net-www/squidguard/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-www/squidguard
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/squidguard/ChangeLog,v 1.1 2002/10/23 13:31:42 blizzy Exp $
+
+*squidguard-1.2.0 (23 Oct 2002)
+
+ 23 Oct 2002; Maik Schreiber <blizzy@gentoo.org> : Initial import. ebuild done
+ by myself.
diff --git a/net-www/squidguard/files/blockedsites b/net-www/squidguard/files/blockedsites
new file mode 100644
index 000000000000..46279a47eed4
--- /dev/null
+++ b/net-www/squidguard/files/blockedsites
@@ -0,0 +1 @@
+sex.com
diff --git a/net-www/squidguard/files/digest-squidguard-1.2.0 b/net-www/squidguard/files/digest-squidguard-1.2.0
new file mode 100644
index 000000000000..d941cb9c00f7
--- /dev/null
+++ b/net-www/squidguard/files/digest-squidguard-1.2.0
@@ -0,0 +1 @@
+MD5 c6e2e9112fdbda0602656f94c1ce31fd squidGuard-1.2.0.tar.gz 1852737
diff --git a/net-www/squidguard/files/squidGuard.conf.blocksites b/net-www/squidguard/files/squidGuard.conf.blocksites
new file mode 100644
index 000000000000..eaa8cdeef051
--- /dev/null
+++ b/net-www/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-www/squidguard/files/squidGuard.conf.minimal b/net-www/squidguard/files/squidGuard.conf.minimal
new file mode 100644
index 000000000000..3b0ebf55c766
--- /dev/null
+++ b/net-www/squidguard/files/squidGuard.conf.minimal
@@ -0,0 +1,7 @@
+logdir /var/log/squidGuard
+
+acl {
+ default {
+ pass all
+ }
+}
diff --git a/net-www/squidguard/squidguard-1.2.0.ebuild b/net-www/squidguard/squidguard-1.2.0.ebuild
new file mode 100644
index 000000000000..920b911a917a
--- /dev/null
+++ b/net-www/squidguard/squidguard-1.2.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/squidguard/squidguard-1.2.0.ebuild,v 1.1 2002/10/23 13:31:42 blizzy Exp $
+
+DESCRIPTION="Combined filter, redirector and access controller plugin for Squid."
+HOMEPAGE="http://www.squidguard.com"
+SRC_URI="ftp://ftp.teledanmark.no/pub/www/proxy/squidGuard/squidGuard-${PV}.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}/squidGuard-${PV}"
+
+src_compile() {
+ econf || die "configure problem"
+ emake || die "compile problem"
+}
+
+src_install() {
+ make prefix=${D}/usr install
+
+ 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() {
+ ewarn "You must add the following line to your /etc/squid/squid.conf:"
+ ewarn ""
+ ewarn "\tredirect_program /usr/bin/squidGuard -c /etc/squidGuard/squidGuard.conf"
+ ewarn ""
+ ewarn "Remember to edit /etc/squidGuard/squidGuard.conf first!"
+ ewarn "Examples can be found in /etc/squidGuard/sample/"
+}