mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
meson: add -Dsystemd-units-dir=<path> meson command line option
This allows package maintainers to override the location to which our
systemd service files are installed.
It’s value is an *absolute* path, and *not* relative ${prefix}.
The default is ${systemduserunitdir}.
This commit is contained in:
parent
56e5855fff
commit
62fe452cc2
4 changed files with 22 additions and 10 deletions
|
|
@ -252,7 +252,13 @@ if systemd.found()
|
|||
configuration = configuration_data()
|
||||
configuration.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
|
||||
|
||||
systemd_units_dir = systemd.get_variable('systemduserunitdir')
|
||||
custom_units_dir = get_option('systemd-units-dir')
|
||||
if (custom_units_dir == '')
|
||||
systemd_units_dir = systemd.get_variable('systemduserunitdir')
|
||||
else
|
||||
systemd_units_dir = custom_units_dir
|
||||
endif
|
||||
|
||||
configure_file(
|
||||
configuration: configuration,
|
||||
input: 'foot-server@.service.in',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue