From: Tomas Krizek Date: Thu, 24 Oct 2019 14:40:20 +0000 (+0200) Subject: meson: enable root keys installation to keyfile_default location X-Git-Tag: v4.3.0~10^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe7ea4e3e4f045628996f44b388899c32680c754;p=thirdparty%2Fknot-resolver.git meson: enable root keys installation to keyfile_default location --- diff --git a/etc/meson.build b/etc/meson.build index 04bd9b7f2..dadb9ef99 100644 --- a/etc/meson.build +++ b/etc/meson.build @@ -11,7 +11,19 @@ if managed_ta endif if install_root_keys - etc_files += 'root.keys' + root_keys_path = keyfile_default.split('/') + root_keys_filename = root_keys_path[-1] + root_keys_dir = [] + foreach el : root_keys_path + if el != root_keys_filename + root_keys_dir += el + endif + endforeach + install_data( + sources: 'root.keys', + rename: root_keys_filename, + install_dir: '/'.join(root_keys_dir) + ) endif diff --git a/meson.build b/meson.build index 6431f2b3e..05946d270 100644 --- a/meson.build +++ b/meson.build @@ -63,11 +63,7 @@ if keyfile_default == join_paths(etc_dir, 'root.keys') install_root_keys = true managed_ta = managed_ta or get_option('managed_ta') == 'auto' else - install_root_keys = false - if managed_ta - warning('Using managed_ta along with non-standard keyfile_default. ' + - 'Ensure keyfile_default directory will be writable by kresd.') - endif + install_root_keys = managed_ta endif ## Root hints