From: James Hilliard Date: Thu, 9 Sep 2021 22:41:21 +0000 (-0600) Subject: package/pipewire: install systemd services when using systemd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d52be73cbb90642e2d0724f7555c9fb86c0499f1;p=buildroot.git 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) --- 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))