pipewire: move system service to /usr/share/examples/PKGNAME/sv/

remove pipewire-pulse service. this should be launched by pipewire
config if desired
This commit is contained in:
classabbyamp 2023-05-29 15:24:46 -04:00 committed by classabbyamp
parent 5655844ff5
commit abc072b678
5 changed files with 12 additions and 15 deletions

View File

@ -8,6 +8,9 @@ Optional dependencies:
* `libspa-v4l2` for video camera support
* `rtkit` for realtime priority acquisition
The system services /etc/sv/pipewire and /etc/sv/pipewire-pulse are
experimental and only needed in rare cases so using them should be
avoided in most setups.
The example system service /usr/share/examples/pipewire/sv/pipewire is
experimental and only needed in rare cases, so using it should be avoided
in most setups. To use it, pipewire needs to be configured to launch
pipewire-pulse and wireplumber as documented at
https://docs.voidlinux.org/config/media/pipewire.html

View File

@ -1,8 +0,0 @@
#!/bin/sh
exec 2>&1
# this service is experimental and most setups should start pipewire as a user,
# for further information, please refer to the handbook
! [ -d /run/pulse ] && install -m 755 -g _pipewire -o _pipewire -d /run/pulse
umask 002
export PULSE_RUNTIME_PATH=/run/pulse
exec chpst -u _pipewire:_pipewire pipewire-pulse

View File

@ -0,0 +1,2 @@
#!/bin/sh
[ -r supervise/pid ] && kill -TERM -$(cat supervise/pid)

2
srcpkgs/pipewire/files/pipewire/run Normal file → Executable file
View File

@ -6,4 +6,4 @@ exec 2>&1
umask 002
export PIPEWIRE_RUNTIME_DIR=/run/pipewire
export XDG_STATE_HOME=/var/lib
exec chpst -u _pipewire:_pipewire:audio:video pipewire
exec chpst -P -u _pipewire:_pipewire:audio:video dbus-run-session pipewire

View File

@ -1,7 +1,7 @@
# Template file for 'pipewire'
pkgname=pipewire
version=0.3.71
revision=2
revision=3
build_style=meson
configure_args="
--auto-features=enabled
@ -56,8 +56,8 @@ fi
post_install() {
vlicense LICENSE
vdoc "${FILESDIR}/README.voidlinux"
vsv pipewire
vsv pipewire-pulse
vmkdir usr/share/examples/sv
vcopy ${FILESDIR}/pipewire usr/share/examples/sv/
vinstall "${FILESDIR}/pipewire.desktop" 644 usr/share/applications
vinstall "${FILESDIR}/pipewire-pulse.desktop" 644 usr/share/applications
vsconf "${FILESDIR}/20-pipewire-pulse.conf"