1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
bashcompletiondir = get_option('bashcompletiondir')
if bashcompletiondir == ''
bash_completion = dependency('bash-completion', required : false)
if bash_completion.found()
bashcompletiondir = bash_completion.get_pkgconfig_variable('completionsdir')
else
bashcompletiondir = datadir / 'bash-completion/completions'
endif
endif
if bashcompletiondir != 'no'
install_data('ndctl', install_dir : bashcompletiondir)
# TODO Switch to symlinks once 0.61.0 is more widely available
# install_symlink('daxctl',
# install_dir : bashcompletiondir,
# pointing_to : 'ndctl'
# )
# install_symlink('cxl',
# install_dir : bashcompletiondir,
# pointing_to : 'ndctl'
# )
install_data('ndctl', rename : 'daxctl', install_dir : bashcompletiondir)
install_data('ndctl', rename : 'cxl', install_dir : bashcompletiondir)
endif
modprobedatadir = get_option('modprobedatadir')
if modprobedatadir == ''
modprobedatadir = sysconfdir + '/modprobe.d/'
endif
install_data('nvdimm-security.conf', install_dir : modprobedatadir)
|