From: Emil Velikov Date: Thu, 7 Nov 2024 15:28:28 +0000 (+0000) Subject: meson: install the configuration directories X-Git-Tag: v34~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b1b5e413088060092a8d75247df1c7f93779dcc;p=thirdparty%2Fkmod.git meson: install the configuration directories Install the /{etc,usr/lib}/{depmod,modprobe}.d/ configuration directories as part of out install action. Currently a handful of distros (Debian, Gentoo, Fedora, Arch) do that manually, where we can have it in the upstream project instead. As a pie in the sky idea, in the future we may choose to enforce particular permissions, ownership, etc and this should make it a little less fragile across the ecosystem. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/231 Signed-off-by: Lucas De Marchi --- diff --git a/meson.build b/meson.build index 483d7afa..c7ae6fbd 100644 --- a/meson.build +++ b/meson.build @@ -221,6 +221,11 @@ foreach tuple : _customdirs set_variable(dir_option, customdir) endforeach +foreach confdir : [sysconfdir, distconfdir] + install_emptydir(confdir / 'depmod.d') + install_emptydir(confdir / 'modprobe.d') +endforeach + _completiondirs = [ ['bash', 'bash-completion', 'bash-completion' / 'completions', '@0@'], ['fish', 'fish', 'fish' / 'vendor_functions.d', '@0@.fish'],