@@ -24,5 +24,8 @@ if bashcompletiondir != 'no'
install_data('ndctl', rename : 'cxl', install_dir : bashcompletiondir)
endif
-modprobedatadir = get_option('sysconfdir') + '/modprobe.d/'
+modprobedatadir = get_option('modprobedatadir')
+if modprobedatadir == ''
+ modprobedatadir = get_option('modprobedatadir')
+endif
install_data('nvdimm-security.conf', install_dir : modprobedatadir)
@@ -23,3 +23,5 @@ option('pkgconfiglibdir', type : 'string', value : '',
description : 'directory for standard pkg-config files')
option('bashcompletiondir', type : 'string',
description : '''${datadir}/bash-completion/completions''')
+option('modprobedatadir', type : 'string',
+ description : '''${sysconfdir}/modprobe.d/''')
The modprobe.d directory location is hardcoded. Fixes: 4e5faa1 ("build: Add meson build infrastructure") Signed-off-by: Michal Suchanek <msuchanek@suse.de> --- contrib/meson.build | 5 ++++- meson_options.txt | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-)