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,
# 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')),
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"
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
# etc
-install_data(sources: 'etc/root.hints', install_dir: etc_dir)
+install_data(sources: 'etc/root.hints', install_dir: config.get('etc_dir'))