[Buildroot] [git commit] package/pipewire: install systemd services when using systemd
Arnout Vandecappelle (Essensium/Mind)
arnout at mind.be
Tue Sep 21 19:06:25 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=d52be73cbb90642e2d0724f7555c9fb86c0499f1
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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 <james.hilliard1 at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
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))
More information about the buildroot
mailing list