media-sound/pulseaudio: Minor ebuild simplifications.

Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Lars Wendler
2018-06-22 12:09:40 +02:00
parent 1fd7727eeb
commit fa966f8dc2

View File

@@ -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
}