|
Adam Tkac |
c30533 |
--- bind-9.4.0/bin/named_sdb/main.c.sdb-sqlite-bld 2007-03-12 14:00:05.000000000 +0100
|
|
Adam Tkac |
c30533 |
+++ bind-9.4.0/bin/named_sdb/main.c 2007-03-12 14:02:34.000000000 +0100
|
|
Adam Tkac |
c30533 |
@@ -74,6 +74,7 @@
|
|
Adam Tkac |
c30533 |
/* #include "xxdb.h" */
|
|
Adam Tkac |
c30533 |
#include "ldapdb.h"
|
|
Adam Tkac |
c30533 |
#include "pgsqldb.h"
|
|
Adam Tkac |
c30533 |
+#include "sqlitedb.h"
|
|
Adam Tkac |
c30533 |
#include "dirdb.h"
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
/*
|
|
Adam Tkac |
c30533 |
@@ -648,6 +649,7 @@
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
ldapdb_clear();
|
|
Adam Tkac |
c30533 |
pgsqldb_clear();
|
|
Adam Tkac |
c30533 |
+ sqlitedb_clear();
|
|
Adam Tkac |
c30533 |
dirdb_clear();
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
c30533 |
@@ -737,6 +739,23 @@
|
|
Adam Tkac |
c30533 |
ISC_LOG_NOTICE, "SDB postgreSQL DB zone database module loaded."
|
|
Adam Tkac |
c30533 |
);
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
+ result = sqlitedb_init();
|
|
Adam Tkac |
c30533 |
+ if (result != ISC_R_SUCCESS)
|
|
Adam Tkac |
c30533 |
+ {
|
|
Adam Tkac |
c30533 |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
c30533 |
+ ISC_LOG_ERROR,
|
|
Adam Tkac |
c30533 |
+ "SDB sqlite3 module initialisation failed: %s.",
|
|
Adam Tkac |
c30533 |
+ isc_result_totext(result)
|
|
Adam Tkac |
c30533 |
+ );
|
|
Adam Tkac |
c30533 |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
c30533 |
+ ISC_LOG_ERROR,
|
|
Adam Tkac |
c30533 |
+ "SDB sqlite3 zone database will be unavailable."
|
|
Adam Tkac |
c30533 |
+ );
|
|
Adam Tkac |
c30533 |
+ }else
|
|
Adam Tkac |
c30533 |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
c30533 |
+ ISC_LOG_NOTICE, "SDB sqlite3 DB zone database module loaded."
|
|
Adam Tkac |
c30533 |
+ );
|
|
Adam Tkac |
c30533 |
+
|
|
Adam Tkac |
c30533 |
result = dirdb_init();
|
|
Adam Tkac |
c30533 |
if (result != ISC_R_SUCCESS)
|
|
Adam Tkac |
c30533 |
{
|
|
Adam Tkac |
c30533 |
@@ -781,6 +800,7 @@
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
ldapdb_clear();
|
|
Adam Tkac |
c30533 |
pgsqldb_clear();
|
|
Adam Tkac |
c30533 |
+ sqlitedb_clear();
|
|
Adam Tkac |
c30533 |
dirdb_clear();
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
c30533 |
--- bind-9.4.0/bin/named_sdb/Makefile.in.sdb-sqlite-bld 2007-03-12 14:00:05.000000000 +0100
|
|
Adam Tkac |
c30533 |
+++ bind-9.4.0/bin/named_sdb/Makefile.in 2007-03-12 14:00:05.000000000 +0100
|
|
Adam Tkac |
c30533 |
@@ -26,10 +26,10 @@
|
|
Adam Tkac |
c30533 |
#
|
|
Adam Tkac |
c30533 |
# Add database drivers here.
|
|
Adam Tkac |
c30533 |
#
|
|
Adam Tkac |
c30533 |
-DBDRIVER_OBJS = ldapdb.o pgsqldb.o dirdb.o
|
|
Adam Tkac |
c30533 |
-DBDRIVER_SRCS = ldapdb.c pgsqldb.c dirdb.c
|
|
Adam Tkac |
c30533 |
+DBDRIVER_OBJS = ldapdb.o pgsqldb.o sqlitedb.o dirdb.o
|
|
Adam Tkac |
c30533 |
+DBDRIVER_SRCS = ldapdb.c pgsqldb.c sqlitedb.c dirdb.c
|
|
Adam Tkac |
c30533 |
DBDRIVER_INCLUDES =
|
|
Adam Tkac |
c30533 |
-DBDRIVER_LIBS = -lldap -llber -lpq
|
|
Adam Tkac |
c30533 |
+DBDRIVER_LIBS = -lldap -llber -lpq -lsqlite3
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
DLZ_DRIVER_DIR = ${top_srcdir}/contrib/dlz/drivers
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
--- bind-9.4.0/bin/sdb_tools/Makefile.in.sdb-sqlite-bld 2007-03-12 14:00:05.000000000 +0100
|
|
Adam Tkac |
c30533 |
+++ bind-9.4.0/bin/sdb_tools/Makefile.in 2007-03-12 14:00:05.000000000 +0100
|
|
Adam Tkac |
c30533 |
@@ -30,11 +30,11 @@
|
|
Adam Tkac |
c30533 |
LIBS = ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
|
|
Adam Tkac |
c30533 |
${ISCCFGLIBS} ${ISCCCLIBS} ${ISCLIBS} ${DBDRIVER_LIBS} @LIBS@
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
-TARGETS = zone2ldap@EXEEXT@ ldap2zone@EXEEXT@ zonetodb@EXEEXT@
|
|
Adam Tkac |
c30533 |
+TARGETS = zone2ldap@EXEEXT@ ldap2zone@EXEEXT@ zonetodb@EXEEXT@ zone2sqlite@EXEEXT@
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
-OBJS = zone2ldap.o ldap2zone.o zonetodb.o
|
|
Adam Tkac |
c30533 |
+OBJS = zone2ldap.o ldap2zone.o zonetodb.o zone2sqlite
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
-SRCS = zone2ldap.c ldap2zone.c zonetodb.c
|
|
Adam Tkac |
c30533 |
+SRCS = zone2ldap.c ldap2zone.c zonetodb.c zone2sqlite.c
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
MANPAGES = zone2ldap.1
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
@@ -54,6 +54,9 @@
|
|
Adam Tkac |
c30533 |
zonetodb: zonetodb.o ${DEPLIBS}
|
|
Adam Tkac |
c30533 |
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ zonetodb.o -lpq ${LIBS}
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
+zone2sqlite: zone2sqlite.o ${DEPLIBS}
|
|
Adam Tkac |
c30533 |
+ ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ zone2sqlite.o -lsqlite3 -lssl ${LIBS}
|
|
Adam Tkac |
c30533 |
+
|
|
Adam Tkac |
c30533 |
ldap2zone: ldap2zone.o ${DEPLIBS}
|
|
Adam Tkac |
c30533 |
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ldap2zone.o -lldap -llber ${LIBS}
|
|
Adam Tkac |
c30533 |
|
|
Adam Tkac |
c30533 |
@@ -68,4 +71,5 @@
|
|
Adam Tkac |
c30533 |
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} zone2ldap ${DESTDIR}${sbindir}
|
|
Adam Tkac |
c30533 |
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} ldap2zone ${DESTDIR}${sbindir}
|
|
Adam Tkac |
c30533 |
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} zonetodb ${DESTDIR}${sbindir}
|
|
Adam Tkac |
c30533 |
+ ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} zone2sqlite ${DESTDIR}${sbindir}
|
|
Adam Tkac |
c30533 |
${INSTALL_DATA} ${srcdir}/zone2ldap.1 ${DESTDIR}${mandir}/man1/zone2ldap.1
|