systemd: Add systemd-system-unit-dir override

This commit is contained in:
Timo Gurr 2022-01-06 12:17:10 +00:00 committed by Wim Taymans
parent af11fb4804
commit 814d409501
2 changed files with 6 additions and 0 deletions

View file

@ -1,4 +1,7 @@
systemd_system_services_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir', pkgconfig_define : [ 'rootprefix', prefix])
if get_option('systemd-system-unit-dir') != ''
systemd_system_services_dir = get_option('systemd-system-unit-dir')
endif
install_data(sources : 'pipewire.socket',
install_dir : systemd_system_services_dir)