]> granicus.if.org Git - pdns/commitdiff
move bindbackend to modules
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 23 Oct 2013 19:39:06 +0000 (21:39 +0200)
committermind04 <mind04@monshouwer.org>
Tue, 29 Oct 2013 19:08:47 +0000 (20:08 +0100)
24 files changed:
.travis.yml
configure.ac
modules/Makefile.am
modules/bindbackend/.gitignore [moved from pdns/backends/bind/.gitignore with 100% similarity]
modules/bindbackend/Makefile.am [new file with mode: 0644]
modules/bindbackend/OBJECTFILES [new file with mode: 0644]
modules/bindbackend/OBJECTLIBS [new file with mode: 0644]
modules/bindbackend/TODO [moved from pdns/backends/bind/TODO with 100% similarity]
modules/bindbackend/bindbackend2.cc [moved from pdns/backends/bind/bindbackend2.cc with 98% similarity]
modules/bindbackend/bindbackend2.hh [moved from pdns/backends/bind/bindbackend2.hh with 99% similarity]
modules/bindbackend/binddnssec.cc [moved from pdns/backends/bind/binddnssec.cc with 99% similarity]
pdns/.gitignore
pdns/Makefile.am
pdns/backends/.gitignore [deleted file]
pdns/backends/Makefile.am [deleted file]
pdns/backends/bind/Makefile.am [deleted file]
pdns/bindlexer.l [moved from pdns/backends/bind/bindlexer.l with 99% similarity]
pdns/bindparser.yy [moved from pdns/backends/bind/bindparser.yy with 100% similarity]
pdns/bindparserclasses.hh [moved from pdns/backends/bind/bindparserclasses.hh with 100% similarity]
pdns/pdnssec.cc
pdns/zone2json.cc [moved from pdns/backends/bind/zone2json.cc with 100% similarity]
pdns/zone2ldap.cc [moved from pdns/backends/bind/zone2ldap.cc with 100% similarity]
pdns/zone2sql.cc [moved from pdns/backends/bind/zone2sql.cc with 100% similarity]
regression-tests/start-test-stop

index f1304370c8ccd9c60cc58d262ae29fec29fd0365..b82bf7d33af959b50014cc723163b086b8625231 100644 (file)
@@ -18,7 +18,7 @@ before_script:
  - cd ../..
 script:
  - ./bootstrap
- - ./configure --with-modules='gmysql gpgsql gsqlite3 mydns tinydns remote random' --enable-unit-tests --enable-remotebackend-http --enable-tools
+ - ./configure --with-modules='bind gmysql gpgsql gsqlite3 mydns tinydns remote random' --enable-unit-tests --enable-remotebackend-http --enable-tools
  - make dist
  - make -j 4
  - make -j 4 check
index 75a740bdef0eab4b5ce0090236daa3d9c1b9a7c9..5e9a73eca0bb4774555f2f7abf2057e32e8d57d1 100644 (file)
@@ -302,7 +302,7 @@ fi
 
 
 
-modules="gmysql geo random"
+modules="bind gmysql geo random"
 AC_ARG_WITH(modules, AS_HELP_STRING([--with-modules],[which backends to compile with]),
 [
         modules="$withval"
@@ -699,7 +699,7 @@ AC_SUBST(LIBS)
 export moduledirs moduleobjects modulelibs
 
 AC_CONFIG_FILES([Makefile modules/Makefile pdns/Makefile codedocs/Makefile \
-pdns/backends/Makefile pdns/backends/bind/Makefile pdns/pdns \
+pdns/pdns modules/bindbackend/Makefile
 modules/gmysqlbackend/Makefile modules/db2backend/Makefile \
 modules/geobackend/Makefile modules/opendbxbackend/Makefile \
 modules/pipebackend/Makefile modules/oraclebackend/Makefile \
index 8ab7ead9897fa782375f656cd4350fffe4cc19b4..089b4c3b3cadbd06f13f368f2e9dd20895acc805 100644 (file)
@@ -1,2 +1,2 @@
 SUBDIRS=@moduledirs@
-DIST_SUBDIRS=db2backend geobackend gmysqlbackend goraclebackend gpgsqlbackend gsqlite3backend ldapbackend luabackend mydnsbackend opendbxbackend oraclebackend pipebackend tinydnsbackend remotebackend randombackend
+DIST_SUBDIRS=bindbackend db2backend geobackend gmysqlbackend goraclebackend gpgsqlbackend gsqlite3backend ldapbackend luabackend mydnsbackend opendbxbackend oraclebackend pipebackend tinydnsbackend remotebackend randombackend
diff --git a/modules/bindbackend/Makefile.am b/modules/bindbackend/Makefile.am
new file mode 100644 (file)
index 0000000..4cc7483
--- /dev/null
@@ -0,0 +1,17 @@
+lib_LTLIBRARIES = libbindbackend.la
+AM_CPPFLAGS=-I../../pdns $(BOOST_CPPFLAGS) $(POLARSSL_CFLAGS) @THREADFLAGS@
+
+AM_LFLAGS = -s -i
+AM_YFLAGS = -d --verbose --debug
+
+BUILT_SOURCES=bind-dnssec.schema.sqlite3.sql.h
+
+EXTRA_DIST=OBJECTFILES OBJECTLIBS
+
+libbindbackend_la_SOURCES=bindbackend2.cc bindbackend2.hh binddnssec.cc ../../pdns/bindparser.yy ../../pdns/bindlexer.l
+
+libbindbackend_la_LDFLAGS=-module -avoid-version
+
+bind-dnssec.schema.sqlite3.sql.h: ../../pdns/bind-dnssec.schema.sqlite3.sql
+       ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' ../../pdns/bind-dnssec.schema.sqlite3.sql | sed 's/^/"/g'  ; echo ';' ) > $@
+
diff --git a/modules/bindbackend/OBJECTFILES b/modules/bindbackend/OBJECTFILES
new file mode 100644 (file)
index 0000000..e76b376
--- /dev/null
@@ -0,0 +1 @@
+bindbackend2.lo binddnssec.lo
diff --git a/modules/bindbackend/OBJECTLIBS b/modules/bindbackend/OBJECTLIBS
new file mode 100644 (file)
index 0000000..e69de29
similarity index 98%
rename from pdns/backends/bind/bindbackend2.cc
rename to modules/bindbackend/bindbackend2.cc
index 9369d2a3dc9109f19161c16dc251ca9573288adb..ad1056952be4fcca1e96d4c26768c69884b013fa 100644 (file)
 #include <boost/bind.hpp>
 #include <boost/algorithm/string.hpp>
 #include <boost/foreach.hpp>
-#include "dnsseckeeper.hh"
-#include "dnssecinfra.hh"
-#include "base32.hh"
-#include "namespaces.hh"
+#include "pdns/dnsseckeeper.hh"
+#include "pdns/dnssecinfra.hh"
+#include "pdns/base32.hh"
+#include "pdns/namespaces.hh"
 
-#include "dns.hh"
-#include "dnsbackend.hh"
+#include "pdns/dns.hh"
+#include "pdns/dnsbackend.hh"
 #include "bindbackend2.hh"
-#include "dnspacket.hh"
-#include "zoneparser-tng.hh"
-#include "bindparserclasses.hh"
-#include "logger.hh"
-#include "arguments.hh"
-#include "qtype.hh"
-#include "misc.hh"
-#include "dynlistener.hh"
-#include "lock.hh"
-#include "namespaces.hh"
+#include "pdns/dnspacket.hh"
+#include "pdns/zoneparser-tng.hh"
+#include "pdns/bindparserclasses.hh"
+#include "pdns/logger.hh"
+#include "pdns/arguments.hh"
+#include "pdns/qtype.hh"
+#include "pdns/misc.hh"
+#include "pdns/dynlistener.hh"
+#include "pdns/lock.hh"
+#include "pdns/namespaces.hh"
 
 /** new scheme of things:
     we have zone-id map
similarity index 99%
rename from pdns/backends/bind/bindbackend2.hh
rename to modules/bindbackend/bindbackend2.hh
index 2b6d61542cd37bfee9a1b6ee9566846b5686a0ca..67e5df5d195febfb58468e97dfc730cc17a69fdf 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include "misc.hh"
-#include "dnsbackend.hh"
+#include "pdns/misc.hh"
+#include "pdns/dnsbackend.hh"
 
-#include "namespaces.hh"
+#include "pdns/namespaces.hh"
 using namespace ::boost::multi_index;
 
 /** This struct is used within the Bind2Backend to store DNS information. 
similarity index 99%
rename from pdns/backends/bind/binddnssec.cc
rename to modules/bindbackend/binddnssec.cc
index 75aa09bd2be9e6b704a551fe3d9a4a36db4ac6c2..5dc7557f5779fe5ff015339ba273f31b5a21412e 100644 (file)
@@ -20,7 +20,7 @@
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
 #include "bindbackend2.hh"
-#include "dnsrecords.hh"
+#include "pdns/dnsrecords.hh"
 #include "bind-dnssec.schema.sqlite3.sql.h"
 #include <boost/foreach.hpp>
 #include "config.h"
index 88b21c41b8a2b387cb9e7a14a7ad99a4b7b016da..8bdc80c39944e17fb0c44e96f5d55d7841f448df 100644 (file)
 /tsig-tests
 /tcpbench
 version_generated.h
+/zone2ldap
+/zone2sql
+/zone2json
+/bindlexer.c
+/bindparser.cc
+/bindparser.h
+/bindparser.hh
+/bindparser.output
+/dnslabeltext.cc
index 1530b18fd20b32959baf33602d3bf9e1d6eb34e1..df72292cd7b767df0f0941ea2ae0e3eea08c25af 100644 (file)
@@ -1,7 +1,11 @@
 
-AM_CXXFLAGS=-DSYSCONFDIR=\"@sysconfdir@\" -DLIBDIR=\"@libdir@\" -DLOCALSTATEDIR=\"@socketdir@\" -Ibackends/bind @THREADFLAGS@ $(LUA_CFLAGS) $(SQLITE3_CFLAGS) $(POLARSSL_CFLAGS) -Iext/rapidjson/include
+AM_CXXFLAGS=-DSYSCONFDIR=\"@sysconfdir@\" -DLIBDIR=\"@libdir@\" -DLOCALSTATEDIR=\"@socketdir@\" @THREADFLAGS@ $(LUA_CFLAGS) $(SQLITE3_CFLAGS) $(POLARSSL_CFLAGS) -Iext/rapidjson/include
+
+AM_CPPFLAGS=$(BOOST_CPPFLAGS) @THREADFLAGS@ $(LIBCURL_CFLAGS)
+
+AM_LFLAGS = -s -i
+AM_YFLAGS = -d --verbose --debug
 
-AM_CPPFLAGS=-Ibackends/bind $(BOOST_CPPFLAGS) @THREADFLAGS@ $(LIBCURL_CFLAGS)
 if BOTAN110
 AM_CPPFLAGS += $(BOTAN110_CFLAGS)
 endif
@@ -17,16 +21,16 @@ EXTRA_DIST = dnslabeltext.rl dnslabeltext.cc mtasker.cc inflighter.cc docs/pdns_
        no-dnssec.schema.mysql.sql no-dnssec.schema.pgsql.sql no-dnssec.schema.sqlite3.sql \
        bind-dnssec.schema.sqlite3.sql
 
-SUBDIRS= $(POLARSSL_SUBDIR) backends
+SUBDIRS= $(POLARSSL_SUBDIR)
 
-BUILT_SOURCES=bind-dnssec.schema.sqlite3.sql.h version_generated.h
+BUILT_SOURCES=version_generated.h
 CLEANFILES=version_generated.h
 
 noinst_SCRIPTS = pdns
 sysconf_DATA = pdns.conf-dist 
 
 sbin_PROGRAMS = pdns_server 
-bin_PROGRAMS = pdns_control pdnssec
+bin_PROGRAMS = pdns_control pdnssec zone2sql zone2ldap zone2json
 
 if TOOLS
   bin_PROGRAMS += dnsbulktest dnsreplay dnsscan dnsscope dnstcpbench dnswasher nproxy dnsdist nsec3dig
@@ -47,8 +51,7 @@ dynlistener.cc dynlistener.hh  dynhandler.cc dynhandler.hh  \
 resolver.hh resolver.cc slavecommunicator.cc mastercommunicator.cc communicator.cc communicator.hh dnsproxy.cc \
 dnsproxy.hh unix_utility.cc common_startup.cc \
 utility.hh iputils.hh common_startup.hh unix_semaphore.cc \
-backends/bind/bindbackend2.cc  backends/bind/binddnssec.cc bind-dnssec.schema.sqlite3.sql.h \
-backends/bind/bindparser.cc backends/bind/bindlexer.c \
+bindparser.cc bindlexer.c \
 backends/gsql/gsqlbackend.cc \
 backends/gsql/gsqlbackend.hh backends/gsql/ssql.hh \
 base64.cc sillyrecords.cc \
@@ -93,8 +96,7 @@ pdnssec_SOURCES=pdnssec.cc dbdnsseckeeper.cc sstuff.hh dnsparser.cc dnsparser.hh
         misc.cc misc.hh rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh unix_utility.cc \
        logger.cc statbag.cc qtype.cc sillyrecords.cc nsecrecords.cc dnssecinfra.cc dnssecinfra.hh \
         base32.cc  ueberbackend.cc dnsbackend.cc arguments.cc packetcache.cc dnspacket.cc  \
-        backends/bind/bindbackend2.cc backends/bind/binddnssec.cc  bind-dnssec.schema.sqlite3.sql.h\
-       backends/bind/bindparser.cc backends/bind/bindlexer.c \
+       bindparser.cc bindlexer.c \
        backends/gsql/gsqlbackend.cc \
        backends/gsql/gsqlbackend.hh backends/gsql/ssql.hh zoneparser-tng.cc \
        dynlistener.cc dns.cc dnssecsigner.cc polarrsakeyinfra.cc \
@@ -107,6 +109,38 @@ pdnssec_SOURCES=pdnssec.cc dbdnsseckeeper.cc sstuff.hh dnsparser.cc dnsparser.hh
 pdnssec_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) 
 pdnssec_LDADD= $(POLARSSL_LIBS) $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS)
 
+zone2sql_SOURCES=bindparser.yy bindlexer.l bind-dnssec.schema.sqlite3.sql.h \
+       arguments.cc logger.cc zone2sql.cc statbag.cc misc.cc \
+       unix_utility.cc qtype.cc dns.cc \
+       zoneparser-tng.cc dnsrecords.cc sillyrecords.cc \
+       dnswriter.cc dnslabeltext.cc rcpgenerator.cc dnsparser.cc base64.cc \
+       nsecrecords.cc dnssecinfra.cc base32.cc bindparserclasses.hh \
+       aes/dns_random.cc aes/aescpp.h aes/aescrypt.c aes/aes.h aes/aeskey.c aes/aes_modes.c aes/aesopt.h \
+       aes/aestab.c aes/aestab.h aes/brg_endian.h aes/brg_types.h  # dbdnsseckeeper.cc
+
+zone2sql_LDFLAGS=@THREADFLAGS@
+zone2sql_LDADD= $(POLARSSL_LIBS)
+
+zone2json_SOURCES=bindparser.yy bindlexer.l bind-dnssec.schema.sqlite3.sql.h \
+       arguments.cc logger.cc zone2json.cc statbag.cc misc.cc \
+       unix_utility.cc qtype.cc zoneparser-tng.cc dnsrecords.cc \
+       dnswriter.cc dnslabeltext.cc rcpgenerator.cc dnsparser.cc base64.cc sillyrecords.cc \
+       nsecrecords.cc dnssecinfra.cc base32.cc bindparserclasses.hh
+
+zone2json_LDFLAGS=@THREADFLAGS@
+zone2json_LDADD= $(POLARSSL_LIBS)
+
+zone2ldap_SOURCES=bindparser.yy bindlexer.l bind-dnssec.schema.sqlite3.sql.h \
+       arguments.cc logger.cc zone2ldap.cc statbag.cc misc.cc \
+       unix_utility.cc qtype.cc zoneparser-tng.cc dnsrecords.cc \
+       dnswriter.cc dnslabeltext.cc rcpgenerator.cc dnsparser.cc base64.cc sillyrecords.cc \
+       nsecrecords.cc dnssecinfra.cc base32.cc bindparserclasses.hh \
+       aes/dns_random.cc aes/aescpp.h aes/aescrypt.c aes/aes.h aes/aeskey.c aes/aes_modes.c aes/aesopt.h \
+       aes/aestab.c aes/aestab.h aes/brg_endian.h aes/brg_types.h # dbdnsseckeeper.cc
+
+zone2ldap_LDFLAGS=@THREADFLAGS@
+zone2ldap_LDADD= $(POLARSSL_LIBS)
+
 if BOTAN110
 pdnssec_SOURCES += botan110signers.cc botansigners.cc
 pdnssec_LDADD += $(BOTAN110_LIBS) -lgmp -lrt
@@ -286,16 +320,6 @@ TESTS=testrunner
 dnslabeltext.cc: dnslabeltext.rl
        ragel dnslabeltext.rl -o dnslabeltext.cc
 
-bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
-       ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' bind-dnssec.schema.sqlite3.sql | sed 's/^/"/g'  ; echo ';' ) > $@
-
-backends/bind/bindlexer.c:
-       cd backends/bind && $(MAKE) bindlexer.c
-
-backends/bind/bindparser.cc:
-       cd backends/bind && $(MAKE) bindparser.cc
-
-
 build_date=$(shell LC_TIME=C date '+%Y%m%d%H%M%S')
 build_host=$(shell id -u -n)@$(shell hostname -f)
 if RELEASE_BUILD
diff --git a/pdns/backends/.gitignore b/pdns/backends/.gitignore
deleted file mode 100644 (file)
index 9ee6454..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-/Makefile.in
-/Makefile
diff --git a/pdns/backends/Makefile.am b/pdns/backends/Makefile.am
deleted file mode 100644 (file)
index 58dca58..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS=bind 
diff --git a/pdns/backends/bind/Makefile.am b/pdns/backends/bind/Makefile.am
deleted file mode 100644 (file)
index bb03083..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-noinst_LTLIBRARIES = libbind2backend.la
-AM_CPPFLAGS=-I../.. $(BOOST_CPPFLAGS) $(POLARSSL_CFLAGS) @THREADFLAGS@
-
-BUILT_SOURCES=bind-dnssec.schema.sqlite3.sql.h bindparser.h
-
-bind-dnssec.schema.sqlite3.sql.h: ../../bind-dnssec.schema.sqlite3.sql
-       ( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' ../../bind-dnssec.schema.sqlite3.sql | sed 's/^/"/g'  ; echo ';' ) > $@
-
-
-libbind2backend_la_SOURCES=bindbackend2.cc bindbackend2.hh bindparser.yy \
-bindlexer.l ../../zoneparser-tng.cc ../../misc.cc  \
-bindparserclasses.hh ../../unix_utility.cc binddnssec.cc bind-dnssec.schema.sqlite3.sql.h
-
-libbind2backend_la_CXXFLAGS=$(AM_CXXFLAGS)
-libbind2backend_la_CFLAGS=$(AM_CFLAGS)
-libbind2backend_la_LDFLAGS=-module -avoid-version
-
-bin_PROGRAMS = zone2sql zone2ldap zone2json
-
-EXTRA_DIST=dnslabeltext.cc bindparser.cc bindparser.h bind-dnssec.schema.sqlite3.sql.h
-
-zone2sql_SOURCES=bindparser.yy bindlexer.l bind-dnssec.schema.sqlite3.sql.h \
-../../arguments.cc ../../logger.cc zone2sql.cc ../../statbag.cc ../../misc.cc \
-../../unix_utility.cc ../../qtype.cc ../../dns.cc \
-../../zoneparser-tng.cc ../../dnsrecords.cc ../../sillyrecords.cc \
-../../dnswriter.cc dnslabeltext.cc ../../rcpgenerator.cc ../../dnsparser.cc ../../base64.cc \
-../../nsecrecords.cc ../../dnssecinfra.cc  ../../base32.cc ../../aes/dns_random.cc \
-../../aes/aescpp.h ../../aes/aescrypt.c ../../aes/aes.h ../../aes/aeskey.c ../../aes/aes_modes.c ../../aes/aesopt.h \
-../../aes/aestab.c ../../aes/aestab.h ../../aes/brg_endian.h ../../aes/brg_types.h  # ../../dbdnsseckeeper.cc
-
-zone2json_SOURCES=bindparser.yy bindlexer.l bind-dnssec.schema.sqlite3.sql.h \
-../../arguments.cc ../../logger.cc zone2json.cc ../../statbag.cc ../../misc.cc \
-../../unix_utility.cc ../../qtype.cc  ../../zoneparser-tng.cc ../../dnsrecords.cc \
-../../dnswriter.cc dnslabeltext.cc  ../../rcpgenerator.cc ../../dnsparser.cc ../../base64.cc ../../sillyrecords.cc \
-../../nsecrecords.cc ../../dnssecinfra.cc  ../../base32.cc 
-
-zone2ldap_SOURCES=bindparser.yy bindlexer.l bind-dnssec.schema.sqlite3.sql.h \
-../../arguments.cc ../../logger.cc zone2ldap.cc ../../statbag.cc ../../misc.cc \
-../../unix_utility.cc ../../qtype.cc  ../../zoneparser-tng.cc ../../dnsrecords.cc \
-../../dnswriter.cc dnslabeltext.cc  ../../rcpgenerator.cc ../../dnsparser.cc ../../base64.cc ../../sillyrecords.cc \
-../../nsecrecords.cc ../../dnssecinfra.cc  ../../base32.cc ../../aes/dns_random.cc \
-../../aes/aescpp.h ../../aes/aescrypt.c ../../aes/aes.h ../../aes/aeskey.c ../../aes/aes_modes.c ../../aes/aesopt.h \
-../../aes/aestab.c ../../aes/aestab.h ../../aes/brg_endian.h ../../aes/brg_types.h # ../../dbdnsseckeeper.cc
-
-zone2ldap_LDFLAGS=@THREADFLAGS@
-zone2ldap_LDADD= $(POLARSSL_LIBS)
-
-zone2sql_LDFLAGS=@THREADFLAGS@
-zone2sql_LDADD= $(POLARSSL_LIBS)
-
-zone2json_LDFLAGS=@THREADFLAGS@
-zone2json_LDADD= $(POLARSSL_LIBS)
-
-AM_LFLAGS = -s -i
-AM_YFLAGS = -d --verbose --debug
-
-dnslabeltext.cc: ../../dnslabeltext.rl
-       ragel ../../dnslabeltext.rl -o dnslabeltext.cc
-
-.hh.h:
-       cp $< $@
similarity index 99%
rename from pdns/backends/bind/bindlexer.l
rename to pdns/bindlexer.l
index 2f783eade967dc2cb365b1005de773259d0af10c..6a35dd9440fdf9f6eea4b8675006f5c82cdac7dc 100644 (file)
@@ -1,4 +1,5 @@
 %{
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 0f3633b6f7041a7fba6fdc54d8382177c288c002..ef09fbdc714ed3103e8dcf7d605f92430da120f1 100644 (file)
@@ -12,7 +12,6 @@
 #include "zoneparser-tng.hh"
 #include "signingpipe.hh"
 #include <boost/scoped_ptr.hpp>
-#include "bindbackend2.hh"
 #include "dns_random.hh"
 
 StatBag S;
@@ -1085,21 +1084,6 @@ try
   loadMainConfig(g_vm["config-dir"].as<string>());
   reportAllTypes();
 
-  if(cmds[0] == "create-bind-db") {
-    if(cmds.size() != 2) {
-      cerr << "Syntax: pdnssec create-bind-db fname"<<endl;
-      return 0;
-    }
-    try {
-      Bind2Backend::createDNSSECDB(cmds[1]);
-    }
-    catch (PDNSException& ae) {
-      cerr<<"Error: "<<ae.reason<<endl;
-      return 1;
-    }
-    return 0;
-  }
-  
   DNSSECKeeper dk;
 
   if (cmds[0] == "test-schema") {
index eb0829e7dbeb8acd9a1a234ffdfeb5db5aa04f06..8b63a688f6579e446e9711b9d18436f07088dfe6 100755 (executable)
@@ -189,8 +189,8 @@ __EOF__
 
 tosql ()
 {
-       make -C ../pdns/backends/bind zone2sql > /dev/null
-       ../pdns/backends/bind/zone2sql --transactions --$1 --named-conf=./named.conf
+       make -C ../pdns zone2sql > /dev/null
+       ../pdns/zone2sql --transactions --$1 --named-conf=./named.conf
 }
 
 bindwait ()