From a054e088a3675090738511992b66db25044f442c Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Mon, 26 Nov 2018 17:12:09 +0700 Subject: [PATCH] meson: Install systemd user service Signed-off-by: Arnaud Rebillout --- src/daemon/meson.build | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/daemon/meson.build b/src/daemon/meson.build index 1a6b07192..59bf0a2c3 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