2020-08-05 23:18:39 -04:00
|
|
|
systemd_config_data = configuration_data()
|
|
|
|
systemd_config_data.set('LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name()))
|
|
|
|
|
|
|
|
systemd_config_data_file = configure_file(
|
|
|
|
input: 'tufmanager.service.in',
|
|
|
|
output: 'tufmanager.service',
|
|
|
|
configuration: systemd_config_data
|
|
|
|
)
|
|
|
|
|
2021-09-28 13:58:32 -03:00
|
|
|
systemd = find_program ('systemctl', required: false)
|
2020-08-08 19:22:04 -04:00
|
|
|
|
|
|
|
if systemd.found()
|
2020-08-05 23:18:39 -04:00
|
|
|
install_data(
|
|
|
|
systemd_config_data_file,
|
|
|
|
install_dir: join_paths(get_option('prefix'), 'lib', 'systemd', 'system')
|
|
|
|
)
|
|
|
|
endif
|