mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-06 16:09:43 +00:00
systemd: Add systemd-system-unit-dir override
This commit is contained in:
parent
af11fb4804
commit
814d409501
|
@ -179,6 +179,9 @@ option('udev',
|
||||||
option('udevrulesdir',
|
option('udevrulesdir',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
description : 'Directory for udev rules (defaults to /lib/udev/rules.d)')
|
description : 'Directory for udev rules (defaults to /lib/udev/rules.d)')
|
||||||
|
option('systemd-system-unit-dir',
|
||||||
|
type : 'string',
|
||||||
|
description : 'Directory for system systemd units (defaults to /usr/lib/systemd/system)')
|
||||||
option('systemd-user-unit-dir',
|
option('systemd-user-unit-dir',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
description : 'Directory for user systemd units (defaults to /usr/lib/systemd/user)')
|
description : 'Directory for user systemd units (defaults to /usr/lib/systemd/user)')
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
systemd_system_services_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir', pkgconfig_define : [ 'rootprefix', prefix])
|
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_data(sources : 'pipewire.socket',
|
||||||
install_dir : systemd_system_services_dir)
|
install_dir : systemd_system_services_dir)
|
||||||
|
|
Loading…
Reference in a new issue