]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
meson: move etc_dir to config
authorTomas Krizek <tomas.krizek@nic.cz>
Fri, 25 Jan 2019 13:22:36 +0000 (14:22 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:41:49 +0000 (10:41 +0100)
daemon/lua/trust_anchors.lua.in
daemon/meson.build
doc/build.rst
meson.build

index 6fe8d477534da92bdc8338a5494c93b42b5539ae..324c65c766e41ac00f8ad4ad881531091204d131 100644 (file)
@@ -622,7 +622,7 @@ trust_anchors = {
        keep_removed = 0,
 
        bootstrap_url = 'https://data.iana.org/root-anchors/root-anchors.xml',
-       bootstrap_ca = '@ETCDIR@/icann-ca.pem',
+       bootstrap_ca = '@etc_dir@/icann-ca.pem',
        -- change empty string to nil
        keyfile_default = ('@keyfile_default@' ~= '' and '@keyfile_default@') or nil,
 
index cefd0bfbf5bc193af1cf2955c2f94832e75e197b..89d9e2c523b04b4ed769be9cb00166abf7d140e8 100644 (file)
@@ -31,7 +31,7 @@ luajit_has_setfuncs = run_command(
 # daemon CFLAGS
 c_args = [
   '-fPIE',  # TODO pie=true since 0.49.0
-  '-DROOTHINTS="@0@/root.hints"'.format(etc_dir),
+  '-DROOTHINTS="@0@/root.hints"'.format(config.get('etc_dir')),
   '-DLIBEXT="@0@"'.format(lib_suffix),
   '-Dlibzscanner_SONAME="@0@"'.format(libzscanner.get_pkgconfig_variable('soname')),
   '-Dlibknot_SONAME="@0@"'.format(libknot.get_pkgconfig_variable('soname')),
index c7e6e02944c4580881f79849148a5db33493d535..a4e49e54c4d943c890d262b301ddb68f7d905655 100644 (file)
@@ -188,6 +188,8 @@ Default paths
 The default installation follows FHS with several custom paths for configuration and modules.
 All paths are prefixed with ``PREFIX`` variable by default if not specified otherwise.
 
+TODO: rewrite/update entire section
+
   .. csv-table::
    :header: "Component", "Variable", "Default", "Notes"
 
index 734d7c9740ff7d5f37fabdfde6b13141f619d326..b13fb0ab03fcf2fbbbde85ada9e686307032c524 100644 (file)
@@ -15,10 +15,10 @@ else
 endif
 message('modules_dir: ' + modules_dir)
 
-etc_dir = join_paths(get_option('prefix'), get_option('sysconfdir'), 'knot-resolver')
-
 config = configuration_data()
 config.set('keyfile_default', get_option('keyfile_default'))
+config.set('etc_dir',
+  join_paths(get_option('prefix'), get_option('sysconfdir'), 'knot-resolver'))
 
 # Project-wide dependencies
 
@@ -188,4 +188,4 @@ install_data(
 
 # etc
 
-install_data(sources: 'etc/root.hints', install_dir: etc_dir)
+install_data(sources: 'etc/root.hints', install_dir: config.get('etc_dir'))