]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
meson: install the configuration directories
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 7 Nov 2024 15:28:28 +0000 (15:28 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 11 Nov 2024 22:12:09 +0000 (16:12 -0600)
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 <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/231
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
meson.build

index 483d7afa7408bb72a2f5895b2726a66ea23d20aa..c7ae6fbdfed49d40b3365169d0f7911b01e9ec0d 100644 (file)
@@ -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'],