summaryrefslogtreecommitdiff
path: root/net-proxy/squidguard
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2013-06-05 01:34:18 +0200
committerBertrand Jacquin <beber@meleeweb.net>2013-06-05 01:34:18 +0200
commitfce862bf5c9d32d6106cdcdad2e47f27fd1859cc (patch)
tree091d5b3b91e487e41470081f1ce4bb831d8294f1 /net-proxy/squidguard
parentWTF distfiles are prent here ? (diff)
downloadportage-fce862bf5c9d32d6106cdcdad2e47f27fd1859cc.tar.xz
net-proxy/squidguard: cross compile applied 2009-05-04, #266441
Package-Manager: portage-2.1.12.2
Diffstat (limited to 'net-proxy/squidguard')
-rw-r--r--net-proxy/squidguard/ChangeLog25
-rw-r--r--net-proxy/squidguard/Manifest12
-rw-r--r--net-proxy/squidguard/files/blockedsites1
-rw-r--r--net-proxy/squidguard/files/squidGuard.conf.blocksites13
-rw-r--r--net-proxy/squidguard/files/squidGuard.conf.minimal7
-rw-r--r--net-proxy/squidguard/files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-berkdb.diff39
-rw-r--r--net-proxy/squidguard/files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-ldap.diff13
-rw-r--r--net-proxy/squidguard/files/squidguard-1.4-autoheader.patch61
-rw-r--r--net-proxy/squidguard/files/squidguard-1.4-gentoo.patch74
-rw-r--r--net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch42
-rw-r--r--net-proxy/squidguard/metadata.xml4
-rw-r--r--net-proxy/squidguard/squidguard-1.4-r1.ebuild72
12 files changed, 0 insertions, 363 deletions
diff --git a/net-proxy/squidguard/ChangeLog b/net-proxy/squidguard/ChangeLog
deleted file mode 100644
index e273578e..00000000
--- a/net-proxy/squidguard/ChangeLog
+++ /dev/null
@@ -1,25 +0,0 @@
-# ChangeLog for net-proxy/squidguard
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 28 May 2013; Bertrand Jacquin <beber@meleeweb.net> +metadata.xml:
- Add missing metadata.xml
-
- 18 Apr 2009; Bertrand Jacquin <beber@meleeweb.net>
- +files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-berkdb.diff,
- +files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-ldap.diff,
- -files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-yes.diff,
- squidguard-1.4-r1.ebuild:
- squidguard: find a new issue when linking with ldap, correct
- configure.in
-
-*squidguard-1.4-r1 (16 Apr 2009)
-
- 16 Apr 2009; root <root@qm-compile.(none)> +files/blockedsites,
- +files/squidGuard.conf.blocksites, +files/squidGuard.conf.minimal,
- +files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-yes.diff,
- +files/squidguard-1.4-autoheader.patch, +files/squidguard-1.4-gentoo.patch,
- +files/squidguard-1.4-vsnprintf.patch, +squidguard-1.4-r1.ebuild:
- squidguard: Fix cross compilation issue with berkdb and AC_RUN_IFELSE
- mess
-
diff --git a/net-proxy/squidguard/Manifest b/net-proxy/squidguard/Manifest
deleted file mode 100644
index 8a2a3eb8..00000000
--- a/net-proxy/squidguard/Manifest
+++ /dev/null
@@ -1,12 +0,0 @@
-AUX blockedsites 8 SHA256 20169b61056128def8ac7b7eb393f7933362392b8d583b610b21bd3ce5c2015f WHIRLPOOL 0a35f86d989ae69f218dd24c8d76a7182d5ab05fdc6bfc294de2b9f46100f844246ca48fa91a9111a634900b9d29b4271423a70c87fa8722affbaab3f0572bdc
-AUX squidGuard.conf.blocksites 192 SHA256 6fab8600cbc8945f94260c68a5c4743244dd35ce195edaf3da453e284c4f8f3a WHIRLPOOL 9d81bc118ada60afdc766e69253dc1673df4d4f09f9b299277fc8addba24f7294d2dfbf622d826961a72ccfa2a6654e3cd329fc50d372774aa05e64ca97581f7
-AUX squidGuard.conf.minimal 61 SHA256 7070372be0dca55ade0a1beea8ac8d0461c38a8f5ef9d0a71ab47a9678f8f5df WHIRLPOOL d134e5e731f64e33b0886daa4e906dab737a079a10433cfdeb616a07b56d1bd86cf2f134aab70eb3541b5be4aea47ba9168d51679bdfc12f2bb545f4459ed664
-AUX squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-berkdb.diff 1218 SHA256 988fa6eb8ce094bfdc359439fb112ef327729105f385f36b1d2559185a58f4da WHIRLPOOL 4ac6286c61e2800dccb25136c0e41e0484cd8ab9600bce2740482b7f7a99e955fd8f25f9dd0725aa863b68533ba6347096eafbcc9ab94becc96488cfd98efe4f
-AUX squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-ldap.diff 303 SHA256 76bdf8c31d60ac78be856c4f34e1c9b6937b76fc773f8a798129aecc4515f42e WHIRLPOOL 7e362e19d1656455a579bb60546cf95c622612a6e70e7af4aa483be86c78400081547391526870ee7e93c0fc80ec4c4fb967475e447a8e2e1df3f4c035c32791
-AUX squidguard-1.4-autoheader.patch 1782 SHA256 4b49dfb34973fcfed40efc426657c8a5fd6513b239fc28bbd9dd94d04b19a476 WHIRLPOOL e9854c500337b61500cbdad0e7d6b2b28dc091924fcb809dd9edf2d3965563fa105ef346bb195a6f58b6000c1965316cfa610c5670c2e9325bb6e278eb33d84f
-AUX squidguard-1.4-gentoo.patch 2492 SHA256 01d0270a2f8d0b7f4dcce096b4eccb3d65c4397fbc9a0208d6b16b31ae3e855d WHIRLPOOL 6eb84c4062b94cf42883fcda4fc290473e20b0b5883952dd6427875d7680892ab2938afc2da92e08ed8a99d5ed55802155be8c24e943b1f538704eafa6118885
-AUX squidguard-1.4-vsnprintf.patch 1735 SHA256 51ca8486f8c195493a34496993d5ac9c4cf7ce56fef41f0c0e8871f5852f2a0f WHIRLPOOL 9518a668f1e70ada6226381c03f1c0a6f441bbe57932958b7b95ee7a4c9e747a0bfb0c34a058928aeb547ce26031caef0bccf6c203ac1e71352ab921c29e8c16
-DIST squidGuard-1.4.tar.gz 1968492 SHA256 0711ce60b8e2bbba107b980fed446a88df35e1584b39f079c0cae54a172c5141
-EBUILD squidguard-1.4-r1.ebuild 1937 SHA256 01914ac01434b182a4cdfd5c349db9cb6b92fb199cf48216b958b9f50e32215e WHIRLPOOL b890591f77c93d32428f06366abf94ae96b40484e687adbcd74371bf118f72d109b93650fa5eec23d9c7092f20d2cda967f0375f9fd02f295a2ac45b0c256381
-MISC ChangeLog 1048 SHA256 3587ca2575a5137fbfc2b4017776db4cceed843e048381b5b0b882ad86780d54 WHIRLPOOL 389027c54289d06c2c49fd85f12d84d75ffc94620454e6ae7a5cd0a8bd11a05017d376b41831abab2afa78c4e2c48bb1980f85a44a646e0e0154e590a561e31f
-MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630
diff --git a/net-proxy/squidguard/files/blockedsites b/net-proxy/squidguard/files/blockedsites
deleted file mode 100644
index 46279a47..00000000
--- a/net-proxy/squidguard/files/blockedsites
+++ /dev/null
@@ -1 +0,0 @@
-sex.com
diff --git a/net-proxy/squidguard/files/squidGuard.conf.blocksites b/net-proxy/squidguard/files/squidGuard.conf.blocksites
deleted file mode 100644
index eaa8cdee..00000000
--- a/net-proxy/squidguard/files/squidGuard.conf.blocksites
+++ /dev/null
@@ -1,13 +0,0 @@
-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
deleted file mode 100644
index 3b0ebf55..00000000
--- a/net-proxy/squidguard/files/squidGuard.conf.minimal
+++ /dev/null
@@ -1,7 +0,0 @@
-logdir /var/log/squidGuard
-
-acl {
- default {
- pass all
- }
-}
diff --git a/net-proxy/squidguard/files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-berkdb.diff b/net-proxy/squidguard/files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-berkdb.diff
deleted file mode 100644
index bacb4810..00000000
--- a/net-proxy/squidguard/files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-berkdb.diff
+++ /dev/null
@@ -1,39 +0,0 @@
---- configure.in.ori 2009-04-16 23:34:27.000000000 +0200
-+++ configure.in 2009-04-16 23:36:23.000000000 +0200
-@@ -314,7 +314,8 @@
- exit (0);
- exit (1);
- }
-- ], db_ok_version=yes, db_ok_version=no, db_ok_version=no)
-+ ], db_ok_version=yes, db_ok_version=no, db_ok_version=yes)
-+
-
- if test $db_ok_version = no; then
- echo
-@@ -345,7 +346,7 @@
- exit (1);
- exit (0);
- }
-- ], db_ok_version=yes, db_ok_version=no, db_ok_version=no)
-+ ], db_ok_version=yes, db_ok_version=no, db_ok_version=yes)
-
- if test $db_ok_version = no; then
- echo
-@@ -377,7 +378,7 @@
- exit (0);
- exit (1);
- }
-- ], dbg2_ok_version=yes, dbg2_ok_version=no, dbg2_ok_version=no)
-+ ], dbg2_ok_version=yes, dbg2_ok_version=no, dbg2_ok_version=yes)
-
- if test $dbg2_ok_version = yes; then
- AC_DEFINE(DB_VERSION_GT2, 1, [Define if you have dbversion greater than 3.2])
-@@ -401,7 +402,7 @@
- exit (0);
- exit (1);
- }
-- ], dbg3_ok_version=yes, dbg3_ok_version=no, dbg3_ok_version=no)
-+ ], dbg3_ok_version=yes, dbg3_ok_version=no, dbg3_ok_version=yes)
-
- if test $dbg3_ok_version = yes; then
- AC_DEFINE(DB_VERSION_GT3, 1, [Define if you have dbversion greater than 4.0])
diff --git a/net-proxy/squidguard/files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-ldap.diff b/net-proxy/squidguard/files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-ldap.diff
deleted file mode 100644
index 4716c9f2..00000000
--- a/net-proxy/squidguard/files/squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-ldap.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- configure.in.ori 2009-04-18 16:52:57.000000000 +0200
-+++ configure.in 2009-04-18 17:02:33.000000000 +0200
-@@ -201,7 +201,9 @@
- echo "Unable to link to LDAP library."
- echo
- exit 1
-- ],)
-+ ],[
-+ ac_status=0
-+ ])
- fi
-
- dnl
diff --git a/net-proxy/squidguard/files/squidguard-1.4-autoheader.patch b/net-proxy/squidguard/files/squidguard-1.4-autoheader.patch
deleted file mode 100644
index af97d8e9..00000000
--- a/net-proxy/squidguard/files/squidguard-1.4-autoheader.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-diff -Nru squidGuard-1.4.orig/configure.in squidGuard-1.4/configure.in
---- squidGuard-1.4.orig/configure.in 2009-01-03 20:04:30.000000000 +0000
-+++ squidGuard-1.4/configure.in 2009-01-10 13:08:49.000000000 +0000
-@@ -93,18 +93,18 @@
- squiduser=$withval)
-
- if test -n "$sg_config"; then
-- AC_DEFINE(ACCONFIG)
-+ AC_DEFINE(ACCONFIG, 1, [Defined if you supply --with-sg-config])
- changequote(, )dnl
- sg_cfgdir=`echo $sg_config|sed "s%/[^/][^/]*$%%"`
- changequote([, ])dnl
- fi
-
- if test -n "$sg_logdir"; then
-- AC_DEFINE(ACLOGDIR)
-+ AC_DEFINE(ACLOGDIR, 1, [Defined if you supply --with-sg-logdir])
- fi
-
- if test -n "$sg_dbhome"; then
-- AC_DEFINE(ACDBHOME)
-+ AC_DEFINE(ACDBHOME, 1, [Defined if you supply --with-sg-dbhome])
- fi
-
- CFLAGS="$CFLAGS $db_inc"
-@@ -186,7 +186,7 @@
- YACCLINE=""
- fi
- if test "$with_ldap" = "yes"; then
-- AC_DEFINE(HAVE_LIBLDAP)
-+ AC_DEFINE(HAVE_LIBLDAP, 1, [Define if LDAP support should be compiled])
- AC_RUN_IFELSE([
-
- #include <ldap.h>
-@@ -277,7 +277,7 @@
- CPPFLAGS="${CPPFLAGS} -I${MYSQL_INC_DIR}"
- AC_CHECK_LIB(z, compress)
- LIBS="-lmysqlclient ${LIBS}"
-- AC_DEFINE(HAVE_MYSQL)
-+ AC_DEFINE(HAVE_MYSQL, 1, [Define if MySQL support should be compiled])
- fi
- fi
- else
-@@ -380,7 +380,7 @@
- ], dbg2_ok_version=yes, dbg2_ok_version=no, dbg2_ok_version=no)
-
- if test $dbg2_ok_version = yes; then
-- AC_DEFINE(DB_VERSION_GT2)
-+ AC_DEFINE(DB_VERSION_GT2, 1, [Define if you have dbversion greater than 3.2])
- fi
-
- AC_RUN_IFELSE([
-@@ -404,7 +404,7 @@
- ], dbg3_ok_version=yes, dbg3_ok_version=no, dbg3_ok_version=no)
-
- if test $dbg3_ok_version = yes; then
-- AC_DEFINE(DB_VERSION_GT3)
-+ AC_DEFINE(DB_VERSION_GT3, 1, [Define if you have dbversion greater than 4.0])
- fi
-
-
diff --git a/net-proxy/squidguard/files/squidguard-1.4-gentoo.patch b/net-proxy/squidguard/files/squidguard-1.4-gentoo.patch
deleted file mode 100644
index 60b5461e..00000000
--- a/net-proxy/squidguard/files/squidguard-1.4-gentoo.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-diff -Nru squidGuard-1.4.orig/Makefile.in squidGuard-1.4/Makefile.in
---- squidGuard-1.4.orig/Makefile.in 2008-05-17 18:36:44.000000000 +0000
-+++ squidGuard-1.4/Makefile.in 2009-01-10 13:02:14.000000000 +0000
-@@ -43,7 +43,7 @@
- # Dependencies for installing
- #
-
--install: install-build install-conf
-+install: install-build
-
- install-conf:
- @echo Installing configuration file ;
-@@ -85,10 +85,10 @@
-
- install-build:
- @echo Installing squidGuard
-- @if [ ! -d $(bindir) ]; then \
-- $(MKINSTALLDIRS) $(bindir) ; \
-+ @if [ ! -d "$(INSTDIR)"/$(bindir) ]; then \
-+ $(MKINSTALLDIRS) "$(INSTDIR)"/$(bindir) ; \
- fi ; \
-- cp src/squidGuard $(bindir) || exit 1 ; \
-+ cp src/squidGuard "$(INSTDIR)"/$(bindir) || exit 1 ; \
- echo Done. ;
-
- clean::
-diff -Nru squidGuard-1.4.orig/src/Makefile.in squidGuard-1.4/src/Makefile.in
---- squidGuard-1.4.orig/src/Makefile.in 2009-01-03 20:05:39.000000000 +0000
-+++ squidGuard-1.4/src/Makefile.in 2009-01-10 13:02:14.000000000 +0000
-@@ -110,6 +110,8 @@
- mv -f y.tab.c y.tab.c.bison
- mv -f y.tab.h y.tab.h.bison
-
-+sg.y sg.l:
-+
- #
- # Dependencies for installing
- #
-@@ -122,8 +124,8 @@
-
- install.bin:: squidGuard
- @echo making $@ in `basename \`pwd\``
-- @$(MKDIR) $(bindir) $(logdir) $(cfgdir)
-- $(INSTALL_PROGRAM) squidGuard $(bindir)/squidGuard
-+ @$(MKDIR) "$(INSTDIR)"/$(bindir) "$(INSTDIR)"/$(logdir) "$(INSTDIR)"/$(cfgdir)
-+ $(INSTALL_PROGRAM) squidGuard "$(INSTDIR)"/$(bindir)/squidGuard
-
- uninstall.bin::
- @echo making $@ in `basename \`pwd\``
-diff -Nru squidGuard-1.4.orig/src/sgDb.c squidGuard-1.4/src/sgDb.c
---- squidGuard-1.4.orig/src/sgDb.c 2008-07-14 18:29:41.000000000 +0000
-+++ squidGuard-1.4/src/sgDb.c 2009-01-10 13:02:14.000000000 +0000
-@@ -103,13 +103,21 @@
- if(createdb)
- flag = flag | DB_TRUNCATE;
- if ((ret =
-+#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && 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_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && 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.4-vsnprintf.patch b/net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch
deleted file mode 100644
index 971d136f..00000000
--- a/net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-diff -Nru squidGuard-1.4.orig/configure.in squidGuard-1.4/configure.in
---- squidGuard-1.4.orig/configure.in 2009-02-17 22:35:28.000000000 +0000
-+++ squidGuard-1.4/configure.in 2009-02-17 22:36:27.000000000 +0000
-@@ -421,7 +421,7 @@
- AC_CHECK_FUNCS(regexec, , AC_MSG_ERROR([No regexec library function.]))
- AC_CHECK_FUNCS(strdup, , AC_MSG_ERROR([No strdup library function.]))
- AC_CHECK_FUNCS(strerror, , AC_MSG_ERROR([No strerror library function.]))
--AC_CHECK_FUNCS(vsprintf, , AC_MSG_ERROR([No vsprintf library function.]))
-+AC_CHECK_FUNCS(vsnprintf, , AC_MSG_ERROR([No vsnprintf library function.]))
- AC_CHECK_FUNCS(sigaction)
- AC_CHECK_FUNCS(signal)
-
-diff -Nru squidGuard-1.4.orig/src/sgLog.c squidGuard-1.4/src/sgLog.c
---- squidGuard-1.4.orig/src/sgLog.c 2007-11-16 16:58:32.000000000 +0000
-+++ squidGuard-1.4/src/sgLog.c 2009-02-17 22:37:04.000000000 +0000
-@@ -55,7 +55,7 @@
- char msg[MAX_BUF];
- va_list ap;
- VA_START(ap, format);
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
- fprintf(stderr,"overflow in vsprintf (sgLog): %s",strerror(errno));
- va_end(ap);
- date = niso(0);
-@@ -87,7 +87,7 @@
- char msg[MAX_BUF];
- va_list ap;
- VA_START(ap, format);
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
- sgLogFatalError("overflow in vsprintf (sgLogError): %s",strerror(errno));
- va_end(ap);
- sgLog(globalErrorLog,"%s",msg);
-@@ -104,7 +104,7 @@
- char msg[MAX_BUF];
- va_list ap;
- VA_START(ap, format);
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
- return;
- va_end(ap);
- sgLog(globalErrorLog,"%s",msg);
diff --git a/net-proxy/squidguard/metadata.xml b/net-proxy/squidguard/metadata.xml
deleted file mode 100644
index 097975e3..00000000
--- a/net-proxy/squidguard/metadata.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-</pkgmetadata>
diff --git a/net-proxy/squidguard/squidguard-1.4-r1.ebuild b/net-proxy/squidguard/squidguard-1.4-r1.ebuild
deleted file mode 100644
index 1eb604df..00000000
--- a/net-proxy/squidguard/squidguard-1.4-r1.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidguard/squidguard-1.4-r1.ebuild,v 1.4 2009/03/18 14:58:58 ranger Exp $
-
-WANT_AUTOMAKE=none
-
-inherit eutils autotools
-
-DESCRIPTION="Combined filter, redirector and access controller plugin for Squid."
-HOMEPAGE="http://www.squidguard.org"
-SRC_URI="http://www.squidguard.org/Downloads/squidGuard-${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc ppc64 x86"
-IUSE="ldap"
-
-RDEPEND=">=sys-libs/db-2
- ldap? ( net-nds/openldap )"
-DEPEND="${RDEPEND}
- sys-devel/bison
- sys-devel/flex"
-
-S="${WORKDIR}/squidGuard-${PV}"
-
-src_unpack() {
- unpack ${A}
-
- cd "${S}"
- epatch "${FILESDIR}/${P}-gentoo.patch"
- epatch "${FILESDIR}/${P}-autoheader.patch"
- epatch "${FILESDIR}/${P}-vsnprintf.patch"
- epatch "${FILESDIR}/${P}-BJA-configure-AC_RUN_IFELSE-cross-berkdb.diff"
- use ldap && epatch "${FILESDIR}/${P}-BJA-configure-AC_RUN_IFELSE-cross-ldap.diff"
- eautoreconf
-}
-
-src_compile() {
- econf \
- $(use_with ldap) \
- --with-sg-config=/etc/squidGuard/squidGuard.conf \
- --with-sg-logdir=/var/log/squidGuard \
- || die "configure has failed"
-
- emake || die "make has failed"
-}
-
-src_install() {
- emake prefix="/usr" INSTDIR="${D}" install || die "emake install has failed"
-
- keepdir /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 README
- dohtml doc/*.html
- docinto text
- dodoc doc/*.txt
-}
-
-pkg_postinst() {
- einfo "To enable squidGuard, add the following lines to /etc/squid/squid.conf:"
- einfo " url_rewrite_program /usr/bin/squidGuard"
- einfo " url_rewrite_children 10"
- einfo ""
- einfo "Remember to edit /etc/squidGuard/squidGuard.conf first!"
- einfo "Examples can be found in /etc/squidGuard/sample/"
-}