look for an init system and auto install based on what is found
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
runit = get_option('runit')
|
||||
|
||||
runit_config_data = configuration_data()
|
||||
runit_config_data.set('LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name()))
|
||||
|
||||
@@ -9,7 +7,9 @@ runit_config_data_file = configure_file(
|
||||
configuration: runit_config_data
|
||||
)
|
||||
|
||||
if runit
|
||||
runit = find_program ('runit', required: false)
|
||||
|
||||
if runit.found()
|
||||
install_data(
|
||||
runit_config_data_file,
|
||||
install_dir: join_paths(get_option('sysconfdir'), 'runit', 'sv', 'tufmanager')
|
||||
|
Reference in New Issue
Block a user