summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-08-04 19:22:35 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-08-04 19:22:35 +0000
commitfb3571cce139f7f9ee7e69de2b52c66678e7476f (patch)
tree48c712ffc778b4536d356db65e63dc02eb9ec246 /net-www/squidguard
parentAdding config option. (diff)
downloadgentoo-2-fb3571cce139f7f9ee7e69de2b52c66678e7476f.tar.gz
gentoo-2-fb3571cce139f7f9ee7e69de2b52c66678e7476f.tar.bz2
gentoo-2-fb3571cce139f7f9ee7e69de2b52c66678e7476f.zip
Adding config option.
Diffstat (limited to 'net-www/squidguard')
-rw-r--r--net-www/squidguard/ChangeLog7
-rw-r--r--net-www/squidguard/Manifest6
-rw-r--r--net-www/squidguard/files/digest-squidguard-1.2.0-r11
-rw-r--r--net-www/squidguard/squidguard-1.2.0-r1.ebuild68
4 files changed, 78 insertions, 4 deletions
diff --git a/net-www/squidguard/ChangeLog b/net-www/squidguard/ChangeLog
index 4772a2a0a261..a769c21b25f4 100644
--- a/net-www/squidguard/ChangeLog
+++ b/net-www/squidguard/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-www/squidguard
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/squidguard/ChangeLog,v 1.4 2003/05/28 08:05:25 pauldv Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/squidguard/ChangeLog,v 1.5 2003/08/04 19:22:24 mholzer Exp $
+
+*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.
diff --git a/net-www/squidguard/Manifest b/net-www/squidguard/Manifest
index 5bffc5a1132b..98e917f82ce3 100644
--- a/net-www/squidguard/Manifest
+++ b/net-www/squidguard/Manifest
@@ -1,6 +1,6 @@
-MD5 8251dee08fd1f6cf2f789de1034e328b ChangeLog 609
-MD5 cf7a0e9db625325cd320c681af9f1264 attachment.cgi?id=15494 1747
-MD5 6c45d3cec2331eccb7783d0880dfe3c8 squidguard-1.2.0-r1.ebuild 1817
+MD5 ef4c7f6abe365931d36bbf8ce425c183 ChangeLog 807
+MD5 2e35d86331990dedcf91f270cbdb2408 squidguard-1.2.0-r1.ebuild 1823
+MD5 4bc91a4ac632471904af5e5bbc7c45ed squidguard-1.2.0.ebuild 1386
MD5 127270fbe0d0bfbc141ffaf56313f3e6 files/blockedsites 8
MD5 bca506ead890af8fe52e0fdf5e73440f files/digest-squidguard-1.2.0 69
MD5 3e17e52277c56640bb3a9a24da57dae9 files/squidGuard.conf.blocksites 192
diff --git a/net-www/squidguard/files/digest-squidguard-1.2.0-r1 b/net-www/squidguard/files/digest-squidguard-1.2.0-r1
new file mode 100644
index 000000000000..d941cb9c00f7
--- /dev/null
+++ b/net-www/squidguard/files/digest-squidguard-1.2.0-r1
@@ -0,0 +1 @@
+MD5 c6e2e9112fdbda0602656f94c1ce31fd squidGuard-1.2.0.tar.gz 1852737
diff --git a/net-www/squidguard/squidguard-1.2.0-r1.ebuild b/net-www/squidguard/squidguard-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..1d09d9f7d042
--- /dev/null
+++ b/net-www/squidguard/squidguard-1.2.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2003 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-r1.ebuild,v 1.1 2003/08/04 19:22:24 mholzer Exp $
+
+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
+ 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/"
+}