2020-08-05 21:15:32 -04:00
|
|
|
openrc_config_data = configuration_data()
|
|
|
|
openrc_config_data.set('SBINDIR', join_paths(get_option('prefix'), get_option('sbindir')))
|
|
|
|
openrc_config_data.set('LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name()))
|
|
|
|
|
|
|
|
openrc_config_data_file = configure_file(
|
|
|
|
input: 'tufmanager.in',
|
|
|
|
output: 'tufmanager',
|
|
|
|
configuration: openrc_config_data
|
|
|
|
)
|
|
|
|
|
2020-08-08 19:22:04 -04:00
|
|
|
openrc = find_program ('openrc', required: false)
|
|
|
|
|
|
|
|
if openrc.found()
|
2020-08-05 21:15:32 -04:00
|
|
|
install_data(
|
|
|
|
openrc_config_data_file,
|
|
|
|
install_dir: join_paths(get_option('sysconfdir'), 'init.d')
|
|
|
|
)
|
|
|
|
endif
|