John Wedig | 2f18734 | 2022-04-20 12:47:03 -0700 | [diff] [blame] | 1 | systemd_dep = dependency('systemd') |
| 2 | |
| 3 | systemd_system_unitdir = systemd_dep.get_variable( |
Patrick Williams | 0ff7100 | 2023-04-12 08:01:25 -0500 | [diff] [blame] | 4 | 'systemdsystemunitdir') |
John Wedig | 2f18734 | 2022-04-20 12:47:03 -0700 | [diff] [blame] | 5 | |
| 6 | conf_data = configuration_data() |
| 7 | conf_data.set('BINDIR', get_option('prefix') / get_option('bindir')) |
| 8 | |
| 9 | configure_file( |
| 10 | configuration: conf_data, |
| 11 | input: 'xyz.openbmc_project.eStoraged.service.in', |
| 12 | output: 'xyz.openbmc_project.eStoraged.service', |
| 13 | install: true, |
| 14 | install_dir: systemd_system_unitdir, |
| 15 | ) |