summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-06-24 10:43:34 +0000
committerAlin Năstac <mrness@gentoo.org>2007-06-24 10:43:34 +0000
commitb73168fb88fae973ae4f0d9751bea7985a4c70f0 (patch)
treefa26327e67b9e9ca8ef554bf7d0e9546e23e326d /net-proxy/squidguard/files
parentFix need python 2.4 (diff)
downloadhistorical-b73168fb88fae973ae4f0d9751bea7985a4c70f0.tar.gz
historical-b73168fb88fae973ae4f0d9751bea7985a4c70f0.tar.bz2
historical-b73168fb88fae973ae4f0d9751bea7985a4c70f0.zip
Add ldap USE flag (#182725)
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'net-proxy/squidguard/files')
-rw-r--r--net-proxy/squidguard/files/digest-squidguard-1.2.1-r1 (renamed from net-proxy/squidguard/files/digest-squidguard-1.2.1)0
-rw-r--r--net-proxy/squidguard/files/squidguard-1.2.1-db4.patch54
-rw-r--r--net-proxy/squidguard/files/squidguard-1.2.1-gentoo.patch134
-rw-r--r--net-proxy/squidguard/files/squidguard-1.2.1-makefile.patch40
4 files changed, 134 insertions, 94 deletions
diff --git a/net-proxy/squidguard/files/digest-squidguard-1.2.1 b/net-proxy/squidguard/files/digest-squidguard-1.2.1-r1
index b8df36f399bf..b8df36f399bf 100644
--- a/net-proxy/squidguard/files/digest-squidguard-1.2.1
+++ b/net-proxy/squidguard/files/digest-squidguard-1.2.1-r1
diff --git a/net-proxy/squidguard/files/squidguard-1.2.1-db4.patch b/net-proxy/squidguard/files/squidguard-1.2.1-db4.patch
deleted file mode 100644
index 25cb495bca42..000000000000
--- a/net-proxy/squidguard/files/squidguard-1.2.1-db4.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-diff -Nru squidGuard-1.2.1.orig/configure.in squidGuard-1.2.1/configure.in
---- squidGuard-1.2.1.orig/configure.in 2007-06-17 11:24:29.000000000 +0300
-+++ squidGuard-1.2.1/configure.in 2007-06-17 11:24:55.000000000 +0300
-@@ -85,7 +85,7 @@
- AC_HEADER_STDC
- AC_CHECK_HEADERS(db.h regex.h unistd.h)
-
--+AC_CHECK_HEADER(db.h,,[
-+AC_CHECK_HEADER(db.h,,[
- echo
- echo "** No db.h found"
- echo " The Berkley DB library is required for squidGuard"
-@@ -141,15 +141,7 @@
- ])
-
- dnl Check DB
--AC_CHECK_LIB(db,db_version,,[
-- echo
-- echo "** The Berkley DB library is required for squidGuard"
-- echo " to compile. Get it from http://www.sleepycat.com"
-- echo " use --with-db=DIR or --with-db-lib=DIR to specify"
-- echo " its location. (default is $dbprefix/BerkeleyDB)"
-- echo
-- exit 1
-- ])
-+LIBS="$LIBS -ldb"
- AC_RUN_IFELSE([
- #include <db.h>
- int main()
-diff -Nru squidGuard-1.2.1.orig/src/sgDb.c squidGuard-1.2.1/src/sgDb.c
---- squidGuard-1.2.1.orig/src/sgDb.c 2007-06-17 11:24:29.000000000 +0300
-+++ squidGuard-1.2.1/src/sgDb.c 2007-06-17 11:15:27.000000000 +0300
-@@ -101,13 +101,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.2.1-gentoo.patch b/net-proxy/squidguard/files/squidguard-1.2.1-gentoo.patch
new file mode 100644
index 000000000000..3258cb8ab4e3
--- /dev/null
+++ b/net-proxy/squidguard/files/squidguard-1.2.1-gentoo.patch
@@ -0,0 +1,134 @@
+diff -Nru squidGuard-1.2.1.orig/configure.in squidGuard-1.2.1/configure.in
+--- squidGuard-1.2.1.orig/configure.in 2007-06-24 13:19:45.000000000 +0300
++++ squidGuard-1.2.1/configure.in 2007-06-24 13:17:36.000000000 +0300
+@@ -85,7 +85,7 @@
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS(db.h regex.h unistd.h)
+
+-+AC_CHECK_HEADER(db.h,,[
++AC_CHECK_HEADER(db.h,,[
+ echo
+ echo "** No db.h found"
+ echo " The Berkley DB library is required for squidGuard"
+@@ -110,13 +110,24 @@
+ dnl
+
+ dnl Check ldap
+-AC_CHECK_LIB(ldap,ldap_init,,[
+- echo
+- echo "LDAP library not found"
+- echo
+- exit 1
+- ])
+-AC_RUN_IFELSE([
++AC_ARG_WITH(ldap,
++ AC_HELP_STRING([--with-ldap], [use ldap (default=yes)]))
++if test "$with_ldap" = "no" -o "$with_ldap" = "false"
++then
++ with_ldap=no
++else
++ AC_CHECK_LIB( ldap, ldap_init,
++ [
++ with_ldap=yes
++ LIBS="$LIBS -lldap"
++ ],[
++ AC_MSG_WARN([Cannot find LDAP libraries. LDAP support disabled])
++ with_ldap=no
++ ])
++fi
++if test "$with_ldap" = "yes"; then
++ AC_DEFINE(HAVE_LIBLDAP)
++ AC_RUN_IFELSE([
+ #include <ldap.h>
+ int main()
+ {
+@@ -130,6 +141,7 @@
+ echo
+ exit 1
+ ],)
++fi
+
+ dnl Check threads... ok if it fails
+ AC_CHECK_LIB(pthread,pthread_create,,[
+@@ -141,15 +153,7 @@
+ ])
+
+ dnl Check DB
+-AC_CHECK_LIB(db,db_version,,[
+- echo
+- echo "** The Berkley DB library is required for squidGuard"
+- echo " to compile. Get it from http://www.sleepycat.com"
+- echo " use --with-db=DIR or --with-db-lib=DIR to specify"
+- echo " its location. (default is $dbprefix/BerkeleyDB)"
+- echo
+- exit 1
+- ])
++LIBS="$LIBS -ldb"
+ AC_RUN_IFELSE([
+ #include <db.h>
+ int main()
+diff -Nru squidGuard-1.2.1.orig/Makefile.in squidGuard-1.2.1/Makefile.in
+--- squidGuard-1.2.1.orig/Makefile.in 2007-06-24 13:09:47.000000000 +0300
++++ squidGuard-1.2.1/Makefile.in 2007-06-24 12:55:17.000000000 +0300
+@@ -40,7 +40,7 @@
+ # Dependencies for installing
+ #
+
+-install: install-build install-conf
++install: install-build
+
+ install-conf:
+ @echo Installing configuration file
+@@ -67,10 +67,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.2.1.orig/src/Makefile.in squidGuard-1.2.1/src/Makefile.in
+--- squidGuard-1.2.1.orig/src/Makefile.in 2007-06-24 13:09:47.000000000 +0300
++++ squidGuard-1.2.1/src/Makefile.in 2007-06-24 12:55:17.000000000 +0300
+@@ -103,8 +103,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.2.1.orig/src/sgDb.c squidGuard-1.2.1/src/sgDb.c
+--- squidGuard-1.2.1.orig/src/sgDb.c 2007-06-24 13:19:45.000000000 +0300
++++ squidGuard-1.2.1/src/sgDb.c 2007-06-24 12:55:17.000000000 +0300
+@@ -101,13 +101,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.2.1-makefile.patch b/net-proxy/squidguard/files/squidguard-1.2.1-makefile.patch
deleted file mode 100644
index 9ffa99971bef..000000000000
--- a/net-proxy/squidguard/files/squidguard-1.2.1-makefile.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-diff -Nru squidGuard-1.2.1.orig/Makefile.in squidGuard-1.2.1/Makefile.in
---- squidGuard-1.2.1.orig/Makefile.in 2006-12-29 11:03:53.000000000 +0200
-+++ squidGuard-1.2.1/Makefile.in 2007-06-17 18:47:13.000000000 +0300
-@@ -40,7 +40,7 @@
- # Dependencies for installing
- #
-
--install: install-build install-conf
-+install: install-build
-
- install-conf:
- @echo Installing configuration file
-@@ -67,10 +67,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.2.1.orig/src/Makefile.in squidGuard-1.2.1/src/Makefile.in
---- squidGuard-1.2.1.orig/src/Makefile.in 2007-03-16 17:58:37.000000000 +0200
-+++ squidGuard-1.2.1/src/Makefile.in 2007-06-17 18:41:35.000000000 +0300
-@@ -103,8 +103,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\``