# PulseAudio 0.9.10
# =================
cd
test -f installed/pulseaudio-0.9.10.tar.gz &&
mv installed/pulseaudio-0.9.10.tar.gz .
test ! -f pulseaudio-0.9.10.tar.gz &&
wget http://0pointer.de/lennart/projects/pulseaudio/\
pulseaudio-0.9.10.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "pulseaudio-*" -exec rm -r {} \;
tar xzvf ~/pulseaudio-0.9.10.tar.gz
cd pulseaudio-0.9.10
test $UID = 0 && chown -R root:root .
# Apply this patch from Gentoo:
# https://bugs.gentoo.org/attachment.cgi?id=147967
wget -O pulseaudio-0.9.10-signature.patch \
'http://bugs.gentoo.org/attachment.cgi?id=147967' &&
patch -p1 < pulseaudio-0.9.10-signature.patch
# The default user for running the PulseAudio daemon system-wide is 'pulse',
# the default group is 'pulse'. The group for users that are allowed to
# start it with realtime scheduling is 'pulse-rt'. The group that is
# allowed access to a system-wide daemon is 'pulse-access'. You'll need to
# create the user and groups. If you want to change the user or groups, see
# the configure options.
./configure
make
# Become root to install it
su
( cd /usr/local/lib ; rm -f libpulse.* libpulse-mainloop-glib.* \
libpulse-simple.* libpulsedsp.* libpulsecore.* )
make install
ldconfig
# If you ever want to uninstall libasyncns and PulseAudio, this should do
# it ('make uninstall' in each should do it if you have the configure'd
# source):
cd
su
test -d src/libasyncns-* && ( cd src/libasyncns-* ; make uninstall )
test -d src/pulseaudio-* && ( cd src/pulseaudio-* ; make uninstall )
( cd /usr/local/bin ; rm -f esdcompat pacat pacmd pactl padsp paplay \
pax11publish pulseaudio )
test -d /usr/local/etc/pulse && rm -r /usr/local/etc/pulse
rm -f /usr/local/include/asyncns.h
test -d /usr/local/include/pulse && rm -r /usr/local/include/pulse
test -d /usr/local/include/pulsecore && rm -r /usr/local/include/pulsecore
( cd /usr/local/lib ; rm -f libasyncns.* libpulse.* \
libpulse-mainloop-glib.* libpulse-simple.* libpulsedsp.* libpulsecore.* )
( cd /usr/local/lib/pkgconfig ; rm -f libasyncns.pc libpulse.pc \
libpulse-mainloop-glib.pc libpulse-simple.pc )
find /usr/local/lib -maxdepth 1 -type d -name "pulse-*" -exec rm -r {} \;
test -d /usr/local/libexec/pulse && rm -r /usr/local/libexec/pulse
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libasyncns-*" -exec rm -r {} \;
find ~/src -maxdepth 1 -type d -name "pulseaudio-*" -exec rm -r {} \;
rm -f ~/installed/libasyncns-*.tar.* ~/installed/pulseaudio-*.tar.*