diff options
author | Arnaud Rebillout <arnaud.rebillout@collabora.com> | 2018-11-26 17:12:09 +0700 |
---|---|---|
committer | Arun Raghavan <arun@arunraghavan.net> | 2019-06-08 11:57:00 +0200 |
commit | a054e088a3675090738511992b66db25044f442c (patch) | |
tree | c70fa2b6dfa497784fc1d5b37f807ace87ba6b27 | |
parent | d71708921829936f34e28a7b6789aed8ac3d0e15 (diff) | |
download | pulseaudio-a054e088a3675090738511992b66db25044f442c.tar.gz |
meson: Install systemd user service
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
-rw-r--r-- | src/daemon/meson.build | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/daemon/meson.build b/src/daemon/meson.build index 1a6b0719..59bf0a2c 100644 --- a/src/daemon/meson.build +++ b/src/daemon/meson.build @@ -134,3 +134,20 @@ if dbus_dep.found() install_dir : join_paths(sysconfdir, 'dbus-1', 'system.d') ) endif + +if systemd_dep.found() + sd_user_service_conf = configuration_data() + sd_user_service_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY')) + + sd_user_service_file = configure_file( + input : 'systemd/user/pulseaudio.service.in', + output : 'pulseaudio.service', + configuration : sd_user_service_conf, + install : true, + install_dir : systemduserunitdir, + ) + + install_data('systemd/user/pulseaudio.socket', + install_dir: systemduserunitdir, + ) +endif |