diff options
author | Sam James <sam@gentoo.org> | 2023-01-28 05:51:58 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-28 05:57:09 +0000 |
commit | d57212c76019f8da0a61d6f33a16cf996d66f00b (patch) | |
tree | 02b1836b704ed97d6e0efaf83a88f2ef4a4b2700 /media-video | |
parent | acct-user/pipewire: add 1 (diff) | |
download | gentoo-d57212c76019f8da0a61d6f33a16cf996d66f00b.tar.gz gentoo-d57212c76019f8da0a61d6f33a16cf996d66f00b.tar.bz2 gentoo-d57212c76019f8da0a61d6f33a16cf996d66f00b.zip |
media-video/pipewire: use tmpfiles for system-service
Closes: https://bugs.gentoo.org/832785
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/pipewire/pipewire-0.3.63-r3.ebuild (renamed from media-video/pipewire/pipewire-0.3.63-r2.ebuild) | 9 | ||||
-rw-r--r-- | media-video/pipewire/pipewire-0.3.65-r2.ebuild (renamed from media-video/pipewire/pipewire-0.3.65-r1.ebuild) | 9 | ||||
-rw-r--r-- | media-video/pipewire/pipewire-9999.ebuild | 9 |
3 files changed, 24 insertions, 3 deletions
diff --git a/media-video/pipewire/pipewire-0.3.63-r2.ebuild b/media-video/pipewire/pipewire-0.3.63-r3.ebuild index a43956977dc6..e91c865b5b7e 100644 --- a/media-video/pipewire/pipewire-0.3.63-r2.ebuild +++ b/media-video/pipewire/pipewire-0.3.63-r3.ebuild @@ -15,7 +15,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit flag-o-matic meson-multilib optfeature prefix python-any-r1 systemd udev +inherit flag-o-matic meson-multilib optfeature prefix python-any-r1 systemd tmpfiles udev if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git" @@ -301,6 +301,12 @@ multilib_src_install_all() { echo "bluez_monitor.enabled = true" > "${ED}"/etc/wireplumber/bluetooth.lua.d/89-gentoo-sound-server-enable-bluez-monitor.lua || die fi + if use system-service; then + newtmpfiles - pipewire.conf <<-EOF || die + d /run/pipewire 0755 pipewire pipewire - - + EOF + fi + if ! use systemd; then insinto /etc/xdg/autostart newins "${FILESDIR}"/pipewire.desktop-r1 pipewire.desktop @@ -323,6 +329,7 @@ pkg_postrm() { pkg_postinst() { use udev && udev_reload + use system-service && tmpfiles_process pipewire.conf elog "It is recommended to raise RLIMIT_MEMLOCK to 256 for users" elog "using PipeWire. Do it either manually or add yourself" diff --git a/media-video/pipewire/pipewire-0.3.65-r1.ebuild b/media-video/pipewire/pipewire-0.3.65-r2.ebuild index a97ab7ef8c55..7e07410dfab4 100644 --- a/media-video/pipewire/pipewire-0.3.65-r1.ebuild +++ b/media-video/pipewire/pipewire-0.3.65-r2.ebuild @@ -15,7 +15,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit flag-o-matic meson-multilib optfeature prefix python-any-r1 systemd udev +inherit flag-o-matic meson-multilib optfeature prefix python-any-r1 systemd tmpfiles udev if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git" @@ -309,6 +309,12 @@ multilib_src_install_all() { echo "bluez_monitor.enabled = true" > "${ED}"/etc/wireplumber/bluetooth.lua.d/89-gentoo-sound-server-enable-bluez-monitor.lua || die fi + if use system-service; then + newtmpfiles - pipewire.conf <<-EOF || die + d /run/pipewire 0755 pipewire pipewire - - + EOF + fi + if ! use systemd; then insinto /etc/xdg/autostart newins "${FILESDIR}"/pipewire.desktop-r1 pipewire.desktop @@ -331,6 +337,7 @@ pkg_postrm() { pkg_postinst() { udev_reload + use system-service && tmpfiles_process pipewire.conf elog "It is recommended to raise RLIMIT_MEMLOCK to 256 for users" elog "using PipeWire. Do it either manually or add yourself" diff --git a/media-video/pipewire/pipewire-9999.ebuild b/media-video/pipewire/pipewire-9999.ebuild index a97ab7ef8c55..7e07410dfab4 100644 --- a/media-video/pipewire/pipewire-9999.ebuild +++ b/media-video/pipewire/pipewire-9999.ebuild @@ -15,7 +15,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit flag-o-matic meson-multilib optfeature prefix python-any-r1 systemd udev +inherit flag-o-matic meson-multilib optfeature prefix python-any-r1 systemd tmpfiles udev if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git" @@ -309,6 +309,12 @@ multilib_src_install_all() { echo "bluez_monitor.enabled = true" > "${ED}"/etc/wireplumber/bluetooth.lua.d/89-gentoo-sound-server-enable-bluez-monitor.lua || die fi + if use system-service; then + newtmpfiles - pipewire.conf <<-EOF || die + d /run/pipewire 0755 pipewire pipewire - - + EOF + fi + if ! use systemd; then insinto /etc/xdg/autostart newins "${FILESDIR}"/pipewire.desktop-r1 pipewire.desktop @@ -331,6 +337,7 @@ pkg_postrm() { pkg_postinst() { udev_reload + use system-service && tmpfiles_process pipewire.conf elog "It is recommended to raise RLIMIT_MEMLOCK to 256 for users" elog "using PipeWire. Do it either manually or add yourself" |