]> granicus.if.org Git - pdns/commitdiff
move mysql/pgsql/sqlite3 .sql files to backend directories
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 13 Nov 2013 09:01:12 +0000 (10:01 +0100)
committermind04 <mind04@monshouwer.org>
Thu, 14 Nov 2013 14:30:00 +0000 (15:30 +0100)
12 files changed:
modules/gmysqlbackend/Makefile.am
modules/gmysqlbackend/dnssec.schema.mysql.sql [moved from pdns/dnssec.schema.mysql.sql with 100% similarity]
modules/gmysqlbackend/no-dnssec.schema.mysql.sql [moved from pdns/no-dnssec.schema.mysql.sql with 100% similarity]
modules/gpgsqlbackend/Makefile.am
modules/gpgsqlbackend/dnssec.schema.pgsql.sql [moved from pdns/dnssec.schema.pgsql.sql with 100% similarity]
modules/gpgsqlbackend/no-dnssec.schema.pgsql.sql [moved from pdns/no-dnssec.schema.pgsql.sql with 100% similarity]
modules/gsqlite3backend/Makefile.am
modules/gsqlite3backend/dnssec.schema.sqlite3.sql [moved from pdns/dnssec.schema.sqlite3.sql with 100% similarity]
modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql [moved from pdns/no-dnssec.schema.sqlite3.sql with 100% similarity]
pdns/Makefile.am
pdns/docs/pdns.xml
regression-tests/start-test-stop

index a754f3887870346767098f59374e46694b5f3a78..1f7d8e3e8a5ec446452c496067fa2b865e40e870 100644 (file)
@@ -1,15 +1,10 @@
 AM_CPPFLAGS=@MYSQL_inc@ @THREADFLAGS@ $(BOOST_CPPFLAGS)
 lib_LTLIBRARIES = libgmysqlbackend.la
 
-EXTRA_DIST=OBJECTFILES OBJECTLIBS
+EXTRA_DIST=OBJECTFILES OBJECTLIBS \
+       dnssec.schema.mysql.sql no-dnssec.schema.mysql.sql
 
 libgmysqlbackend_la_SOURCES=gmysqlbackend.cc gmysqlbackend.hh \
-               smysql.hh smysql.cc
-
+       smysql.hh smysql.cc
 
 libgmysqlbackend_la_LDFLAGS=-module -avoid-version $(MYSQL_lib)
-
-#      -Wl,-Bstatic -lpq++ -lpq -Wl,-Bdynamic -lssl -lcrypt -lcrypto
-
-
-       
index 344e162ceccaa85b7e951899b8e5cc0062570fc5..be98d629ba72b0cd003c9163bd42e3afa4e3a152 100644 (file)
@@ -1,10 +1,11 @@
 AM_CPPFLAGS=-I@PGSQL_incdir@ @THREADFLAGS@
 lib_LTLIBRARIES = libgpgsqlbackend.la
 
-EXTRA_DIST=OBJECTFILES OBJECTLIBS
+EXTRA_DIST=OBJECTFILES OBJECTLIBS \
+       dnssec.schema.pgsql.sql no-dnssec.schema.pgsql.sql
 
 libgpgsqlbackend_la_SOURCES=gpgsqlbackend.cc gpgsqlbackend.hh \
-               spgsql.hh spgsql.cc
+       spgsql.hh spgsql.cc
 
 ## Filter out known build breakers for Mac OS X
 ## Don't remove the empty lines between if and endif or tabs will screw up your makefile
@@ -17,4 +18,3 @@ libgpgsqlbackend_la_LDFLAGS=-module -avoid-version @PGSQL_lib@ -Wl,-Bstatic -lpq
 endif
 
 libgpgsqlbackend_la_LIBADD=-lssl @LIBCRYPT@ -lcrypto
-
index 0c9f3b1e532fac4f4ff00026d866af4a586726ad..bd4d93960fbd246a3cc1a9d2c36d82136dcb5e6b 100644 (file)
@@ -1,7 +1,8 @@
 AM_CPPFLAGS=@THREADFLAGS@ $(BOOST_CPPFLAGS)
 lib_LTLIBRARIES = libgsqlite3backend.la
 
-EXTRA_DIST=OBJECTFILES OBJECTLIBS
+EXTRA_DIST=OBJECTFILES OBJECTLIBS \
+       dnssec.schema.sqlite3.sql no-dnssec.schema.sqlite3.sql
 
 libgsqlite3backend_la_SOURCES=gsqlite3backend.cc gsqlite3backend.hh
 
index 8e88cc7726a0a0621bd0614bc73f54131e279aeb..b5edd32fc2c1d07db5a439266d50d45a26e0e017 100644 (file)
@@ -16,8 +16,6 @@ endif
 EXTRA_DIST = dnslabeltext.rl dnslabeltext.cc mtasker.cc inflighter.cc docs/pdns_control.8  \
        docs/pdns_server.8 docs/zone2sql.8 docs/zone2ldap.8 docs/pdnssec.8 \
        docs/dnsreplay.8 docs/dnsscope.8 docs/dnswasher.8 docs/pdnssec.8 docs/zone2ldap.8 \
-       dnssec.schema.mysql.sql dnssec.schema.pgsql.sql dnssec.schema.sqlite3.sql \
-       no-dnssec.schema.mysql.sql no-dnssec.schema.pgsql.sql no-dnssec.schema.sqlite3.sql \
        bind-dnssec.schema.sqlite3.sql bindparser.h
 
 SUBDIRS= $(POLARSSL_SUBDIR) ext/yahttp
index be93af1faaebd002b0e632e30176867e7603238f..3964a26788dcd4e1fa7f14dc4080450af2f5e48f 100755 (executable)
@@ -11398,7 +11398,7 @@ name         IN            A        192.0.2.4
     <sect1 id="configuring-mysql"><title>Example: configuring MySQL</title>
       <para>
        Connect to MySQL as a user with sufficient privileges and issue the following commands:
-   <programlisting><xi:include  href="../no-dnssec.schema.mysql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+   <programlisting><xi:include  href="../../modules/gmysqlbackend/no-dnssec.schema.mysql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
        <screen>
 
 GRANT SELECT ON supermasters TO pdns;
@@ -17523,14 +17523,14 @@ authoritative).
        </para>
        <para>
          The default setup conforms to the following schema:
-         <programlisting><xi:include  href="../no-dnssec.schema.mysql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+         <programlisting><xi:include  href="../../modules/gmysqlbackend/no-dnssec.schema.mysql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
        </para>
        <para>
          Zone2sql with the --gmysql flag also assumes this layout is in place.
        </para>
        <para>
        To support or migrate to DNSSEC, the following SQL statements must be executed:
-          <programlisting><xi:include  href="../dnssec.schema.mysql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>  
+          <programlisting><xi:include  href="../../modules/gmysqlbackend/dnssec.schema.mysql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting> 
        </para>
        <para>
          For full migration notes, please see <xref linkend="dnssec-migration"/>.
@@ -17559,7 +17559,7 @@ REFERENCES `domains` (`id`) ON DELETE CASCADE;
       <sect2><title>PostgreSQL specifics</title>
       <para>
        The default setup conforms to the following schema, which you should add to a PostgreSQL database.
-       <programlisting><xi:include  href="../no-dnssec.schema.pgsql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+       <programlisting><xi:include  href="../../modules/gpgsqlbackend/no-dnssec.schema.pgsql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
       </para>
       <para>
        Zone2sql with the --gpgsql flag also assumes this layout is in place.
@@ -17570,7 +17570,7 @@ REFERENCES `domains` (`id`) ON DELETE CASCADE;
       </para>
       <para>
       To support DNSSEC or to migrate to DNSSEC, the following statements have to be issued:
-        <programlisting><xi:include  href="../dnssec.schema.pgsql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>  
+        <programlisting><xi:include  href="../../modules/gpgsqlbackend/dnssec.schema.pgsql.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>  
 </para>
        <para>
          For full migration notes, please see <xref linkend="dnssec-migration"/>.
@@ -19093,7 +19093,7 @@ VALUES (:zoneid, :ip)
                Before you can use this backend you first have to set it up and fill it with data.              
                The default setup conforms to the following schema:
                
-               <programlisting><xi:include  href="../no-dnssec.schema.sqlite3.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+               <programlisting><xi:include  href="../../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
              </para>
              <para>
                This schema contains all elements needed for master, slave and superslave operation.      
@@ -19102,7 +19102,7 @@ VALUES (:zoneid, :ip)
                To support DNSSEC, or to migrate to DNSSEC, the following statements must be issued:
              </para>
              <para>
-                     <programlisting><xi:include  href="../dnssec.schema.sqlite3.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+                     <programlisting><xi:include  href="../../modules/gsqlite3backend/dnssec.schema.sqlite3.sql"  parse="text"  xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
              </para>
              <para>
                For full migration notes, please see <xref linkend="dnssec-migration"/>.
index 24e2d1ae8ee5770ee1e72ceb007c42e369dde493..088de45f6765348bfda292b29fd800af60285e03 100755 (executable)
@@ -492,7 +492,7 @@ case $context in
                                || echo ignoring mysqladmin drop failure
                        mysqladmin --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" create "$GMYSQLDB"
                        mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
-                               "$GMYSQLDB" < ../pdns/no-dnssec.schema.mysql.sql
+                               "$GMYSQLDB" < ../modules/gmysqlbackend/no-dnssec.schema.mysql.sql
 
                        tosql gmysql | mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
                                "$GMYSQLDB"
@@ -565,9 +565,9 @@ __EOF__
                                || echo ignoring mysqladmin drop failure
                        mysqladmin --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" create "$GMYSQLDB"
                        mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
-                               "$GMYSQLDB" < ../pdns/no-dnssec.schema.mysql.sql
+                               "$GMYSQLDB" < ../modules/gmysqlbackend/no-dnssec.schema.mysql.sql
                        mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
-                               "$GMYSQLDB" < ../pdns/dnssec.schema.mysql.sql
+                               "$GMYSQLDB" < ../modules/gmysqlbackend/dnssec.schema.mysql.sql
 
                        tosql gmysql | mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
                                "$GMYSQLDB"
@@ -631,8 +631,8 @@ __EOF__
 
                        dropdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring dropdb failure
                        createdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring createdb failure # FIXME
-                       psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../pdns/no-dnssec.schema.pgsql.sql
-                       psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../pdns/dnssec.schema.pgsql.sql
+                       psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../modules/gpgsqlbackend/no-dnssec.schema.pgsql.sql
+                       psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../modules/gpgsqlbackend/dnssec.schema.pgsql.sql
 
                        tosql gpgsql | psql --user="$GPGSQLUSER" "$GPGSQLDB" 2>&1 | uniq -c
 
@@ -683,7 +683,7 @@ __EOF__
 
                        dropdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring mysqladmin drop failure
                        createdb --user="$GPGSQLUSER" "$GPGSQLDB"       || echo ignoring mysqladmin drop failure
-                       psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../pdns/no-dnssec.schema.pgsql.sql
+                       psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../modules/gpgsqlbackend/no-dnssec.schema.pgsql.sql
 
                        tosql gpgsql | psql --user="$GPGSQLUSER" "$GPGSQLDB" 2>&1 | uniq -c
 
@@ -711,7 +711,7 @@ __EOF__
 
                gsqlite3-nodnssec)
                        rm -f pdns.sqlite3
-                       sqlite3 pdns.sqlite3 < ../pdns/no-dnssec.schema.sqlite3.sql
+                       sqlite3 pdns.sqlite3 < ../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql
                        tosql gsqlite | sqlite3 pdns.sqlite3
                        echo ANALYZE\; | sqlite3 pdns.sqlite3
 
@@ -735,7 +735,7 @@ __EOF__
                        ;;
                opendbx-sqlite3)
                        rm -f pdns-opendbx.sqlite3
-                       sqlite3 pdns-opendbx.sqlite3 < ../pdns/no-dnssec.schema.sqlite3.sql
+                       sqlite3 pdns-opendbx.sqlite3 < ../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql
                        tosql gsqlite | sqlite3 pdns-opendbx.sqlite3
                        sqlite3 pdns-opendbx.sqlite3 "ALTER TABLE domains ADD status CHARACTER(1) NOT NULL DEFAULT 'A'; \
                                ALTER TABLE domains ADD auto_serial INTEGER DEFAULT 0;"
@@ -752,8 +752,8 @@ __EOF__
                        ;;
                gsqlite3 | gsqlite3-nsec3 | gsqlite3-nsec3-optout)
                        rm -f pdns.sqlite3
-                       sqlite3 pdns.sqlite3 < ../pdns/no-dnssec.schema.sqlite3.sql
-                       sqlite3 pdns.sqlite3 < ../pdns/dnssec.schema.sqlite3.sql
+                       sqlite3 pdns.sqlite3 < ../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql
+                       sqlite3 pdns.sqlite3 < ../modules/gsqlite3backend/dnssec.schema.sqlite3.sql
                        tosql gsqlite | sqlite3 pdns.sqlite3
                        echo ANALYZE\; | sqlite3 pdns.sqlite3
 
@@ -936,9 +936,9 @@ startslave ()
                        || echo ignoring mysqladmin drop failure
                mysqladmin --user="$GMYSQL2USER" --password="$GMYSQL2PASSWD" --host="$GMYSQL2HOST" create "$GMYSQL2DB"
                mysql --user="$GMYSQL2USER" --password="$GMYSQL2PASSWD" --host="$GMYSQL2HOST" \
-                       "$GMYSQL2DB" < ../pdns/no-dnssec.schema.mysql.sql
+                       "$GMYSQL2DB" < ../modules/gmysqlbackend/no-dnssec.schema.mysql.sql
                mysql --user="$GMYSQL2USER" --password="$GMYSQL2PASSWD" --host="$GMYSQL2HOST" \
-                       "$GMYSQL2DB" < ../pdns/dnssec.schema.mysql.sql
+                       "$GMYSQL2DB" < ../modules/gmysqlbackend/dnssec.schema.mysql.sql
 
                for zone in $(grep zone named.conf  | cut -f2 -d\" | tac)
                do
@@ -989,8 +989,8 @@ startslave ()
        then
                context=${context}-presigned
                rm -f pdns.sqlite31
-               sqlite3 pdns.sqlite31 < ../pdns/no-dnssec.schema.sqlite3.sql
-               sqlite3 pdns.sqlite31 < ../pdns/dnssec.schema.sqlite3.sql
+               sqlite3 pdns.sqlite31 < ../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql
+               sqlite3 pdns.sqlite31 < ../modules/gsqlite3backend/dnssec.schema.sqlite3.sql
 
                for zone in $(grep zone named.conf  | cut -f2 -d\" | tac)
                do