From 0af8b1bb281ef86bc3aa6c84ce60c76562111f5d Mon Sep 17 00:00:00 2001 From: dinoex Date: Sat, 14 Feb 2004 18:14:26 +0000 Subject: - add support for BerkleyDB42 Submitted by: Michael Schout --- dns/bind9-dlz/files/configure.bind9-dlz | 6 ++++++ dns/bind9-dlz/files/patch-configure | 34 +++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 dns/bind9-dlz/files/patch-configure diff --git a/dns/bind9-dlz/files/configure.bind9-dlz b/dns/bind9-dlz/files/configure.bind9-dlz index 8aca828..8e38f30 100644 --- a/dns/bind9-dlz/files/configure.bind9-dlz +++ b/dns/bind9-dlz/files/configure.bind9-dlz @@ -21,6 +21,7 @@ OpenLDAP20 "OpenLDAP 2.0 backend" OFF \ OpenLDAP21 "OpenLDAP 2.1 backend" OFF \ OpenLDAP22 "OpenLDAP 2.2 backend" OFF \ BerkleyDB41 "BerkleyDB 4.1 backend" OFF \ +BerkleyDB42 "BerkleyDB 4.2 backend" OFF \ FileSystem "Filesystem driver" ON \ Stub "Stub driver" OFF \ 2> /tmp/checklist.tmp.$$ @@ -82,6 +83,11 @@ while [ "$1" ]; do echo BERKLEYDB_LIB?=db41.1 echo BERKLEYDB_PORT?=databases/db41 ;; + \"BerkleyDB42\") + echo WITH_BERKLEYDB_DRIVER=YES + echo BERKLEYDB_LIB?=db4-2.1 + echo BERKLEYDB_PORT?=databases/db42 + ;; \"FileSystem\") echo WITH_FILESYSTEM_DRIVER=YES ;; diff --git a/dns/bind9-dlz/files/patch-configure b/dns/bind9-dlz/files/patch-configure new file mode 100644 index 0000000..701ccc6 --- /dev/null +++ b/dns/bind9-dlz/files/patch-configure @@ -0,0 +1,34 @@ +--- configure.orig Wed Feb 11 01:19:46 2004 ++++ configure Wed Feb 11 01:20:41 2004 +@@ -2441,7 +2441,7 @@ + DLZ_BDB_LIB="yes" + + # check other locations for includes. +- bdb_incdirs="/ /db41/ /db4/ /db/" ++ bdb_incdirs="/ /db42/ /db41/ /db4/ /db/" + for d in $bdb_incdirs + do + if test -f $use_dlz_bdb/include${d}db.h +@@ -2455,11 +2455,11 @@ + then + echo "$ac_t""not found" 1>&6 + { echo "configure: error: Berkeley DB header was not found in $use_dlz_bdb/include, \ +-$use_dlz_bdb/include/db41, $use_dlz_bdb/include/db4 or $use_dlz_bdb/include/db" 1>&2; exit 1; } ++$use_dlz_bdb/include/db42 $use_dlz_bdb/include/db41, $use_dlz_bdb/include/db4 or $use_dlz_bdb/include/db" 1>&2; exit 1; } + fi + + # look for libname other than libdb.so +- bdb_libnames="db41 db-4.1 db" ++ bdb_libnames="db-4.2 db41 db-4.1 db" + for d in $bdb_libnames + do + if test -f $use_dlz_bdb/lib/lib${d}.so +@@ -2471,7 +2471,7 @@ + if test "$DLZ_BDB_LIB" = "yes" + then + echo "$ac_t""not found" 1>&6 +- { echo "configure: error: Berkeley DB library libdb41.so, libdb-4.1.so or libdb.so could not be found \ ++ { echo "configure: error: Berkeley DB library libdb-4.2.so libdb41.so, libdb-4.1.so or libdb.so could not be found \ + in $use_dlz_bdb/lib" 1>&2; exit 1; } + fi + -- cgit v1.1