mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
media-sound/pulseaudio: Minor ebuild simplifications.
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -277,6 +277,12 @@ multilib_src_install_all() {
|
||||
doinitd "${T}/pulseaudio"
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
# We need /var/run/pulse, bug #442852
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
|
||||
else
|
||||
# Prevent warnings when system-wide is not used, bug #447694
|
||||
rm "${ED%/}"/etc/dbus-1/system.d/pulseaudio-system.conf || die
|
||||
fi
|
||||
|
||||
if use zeroconf ; then
|
||||
@@ -289,14 +295,6 @@ multilib_src_install_all() {
|
||||
# Create the state directory
|
||||
use prefix || diropts -o pulse -g pulse -m0755
|
||||
|
||||
# We need /var/run/pulse, bug #442852
|
||||
use system-wide && systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
|
||||
|
||||
# Prevent warnings when system-wide is not used, bug #447694
|
||||
if ! use system-wide ; then
|
||||
rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf || die
|
||||
fi
|
||||
|
||||
find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user