From: Michal 'vorner' Vaner Date: Wed, 1 Aug 2012 12:32:16 +0000 (+0200) Subject: [2133] Provide reasonable default for data_sources X-Git-Tag: trac2351_base~135^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a9addc70d264708dc92a328d5ccf02465fcbb15;p=thirdparty%2Fkea.git [2133] Provide reasonable default for data_sources Include the default sqlite3 database as well. This is easier than documenting everything and it would just work. --- diff --git a/src/bin/cfgmgr/plugins/Makefile.am b/src/bin/cfgmgr/plugins/Makefile.am index eb7809c02a..e6ed1275c8 100644 --- a/src/bin/cfgmgr/plugins/Makefile.am +++ b/src/bin/cfgmgr/plugins/Makefile.am @@ -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 diff --git a/src/bin/cfgmgr/plugins/datasrc.spec.pre.in b/src/bin/cfgmgr/plugins/datasrc.spec.pre.in index 5bd20bb559..f2c6a974a2 100644 --- a/src/bin/cfgmgr/plugins/datasrc.spec.pre.in +++ b/src/bin/cfgmgr/plugins/datasrc.spec.pre.in @@ -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",