From d52be73cbb90642e2d0724f7555c9fb86c0499f1 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Thu, 9 Sep 2021 16:41:21 -0600 Subject: [PATCH] package/pipewire: install systemd services when using systemd Also create a pipewire user, which is used for systemd service. There is no sysvinit start script at the moment, but if there were, it should also take care of changing the uid to pipewire before starting the daemon. Signed-off-by: James Hilliard Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/pipewire/pipewire.mk | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/package/pipewire/pipewire.mk b/package/pipewire/pipewire.mk index e4ea60c39c..d088710827 100644 --- a/package/pipewire/pipewire.mk +++ b/package/pipewire/pipewire.mk @@ -49,10 +49,16 @@ PIPEWIRE_CONF_OPTS += -Dgstreamer=disabled endif ifeq ($(BR2_PACKAGE_SYSTEMD),y) -PIPEWIRE_CONF_OPTS += -Dsystemd=enabled +PIPEWIRE_CONF_OPTS += \ + -Dsystemd=enabled \ + -Dsystemd-system-service=enabled \ + -Dsystemd-user-service=enabled PIPEWIRE_DEPENDENCIES += systemd else -PIPEWIRE_CONF_OPTS += -Dsystemd=disabled +PIPEWIRE_CONF_OPTS += \ + -Dsystemd=disabled \ + -Dsystemd-system-service=disabled \ + -Dsystemd-user-service=disabled endif ifeq ($(BR2_PACKAGE_ALSA_LIB),y) @@ -150,4 +156,8 @@ else PIPEWIRE_CONF_OPTS += -Decho-cancel-webrtc=disabled endif +define PIPEWIRE_USERS + pipewire -1 pipewire -1 * - - - PipeWire System Daemon +endef + $(eval $(meson-package)) -- 2.30.2