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