]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2133] Provide reasonable default for data_sources
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 1 Aug 2012 12:32:16 +0000 (14:32 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 1 Aug 2012 12:32:16 +0000 (14:32 +0200)
Include the default sqlite3 database as well. This is easier than
documenting everything and it would just work.

src/bin/cfgmgr/plugins/Makefile.am
src/bin/cfgmgr/plugins/datasrc.spec.pre.in

index eb7809c02a074f4198be3484f1a386405d33c365..e6ed1275c814f8298fc7c9c0d676307aade9fa52 100644 (file)
@@ -3,7 +3,7 @@ SUBDIRS = tests
 EXTRA_DIST = README logging.spec tsig_keys.spec
 
 datasrc.spec: datasrc.spec.pre
-       $(SED) -e "s|@@PKGDATADIR@@|$(pkgdatadir)|" datasrc.spec.pre >$@
+       $(SED) -e "s|@@PKGDATADIR@@|$(pkgdatadir)|;s|@@LOCALSTATEDIR@@|$(localstatedir)|" datasrc.spec.pre >$@
 
 config_plugindir = @prefix@/share/@PACKAGE@/config_plugins
 config_plugin_DATA = logging.spec tsig_keys.spec datasrc.spec
index 5bd20bb55915a10b2b7d93fa823c6d266781abe0..f2c6a974a2d52e0241ab9178239bdaf294b1b0af 100644 (file)
@@ -8,6 +8,14 @@
                 "item_type": "named_set",
                 "item_optional": false,
                 "item_default": {
+                    "IN": [
+                        {
+                            "type": "sqlite3",
+                            "params": {
+                                "database_file": "@@LOCALSTATEDIR@@/@PACKAGE@/zone.sqlite3"
+                            }
+                        }
+                    ],
                     "CH": [
                         {
                             "type": "static",