Skip to content

Commit

Permalink
media-sound/pulseaudio: Minor ebuild simplifications.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.40, Repoman-2.3.9
  • Loading branch information
Lars Wendler committed Jun 22, 2018
1 parent 1fd7727 commit fa966f8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions media-sound/pulseaudio/pulseaudio-12.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit fa966f8

Please sign in to comment.