# cdparanoia III 9.8
# ==================
# Slackware 9.0, 9.1, 10.0, 10.1, and 10.2's 'cdparanoia' packages include
# version III 9.8
cd
test -f installed/cdparanoia-III-alpha9.8.src.tgz &&
mv installed/cdparanoia-III-alpha9.8.src.tgz .
test ! -f cdparanoia-III-alpha9.8.src.tgz &&
wget http://downloads.xiph.org/releases/cdparanoia/\
cdparanoia-III-alpha9.8.src.tgz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cdparanoia-III-alpha*" -exec rm -r {} \;
tar xzvf ~/cdparanoia-III-alpha9.8.src.tgz
cd cdparanoia-III-alpha9.8
test $UID = 0 && chown -R root:root .
# If you use gcc 3.4.x (run 'gcc --version' to check), apply this patch:
wget -nc http://englanders.cc/pub/linux/patches/\
cdparanoia-III-alpha9.8-gcc34.patch &&
patch -p0 < cdparanoia-III-alpha9.8-gcc34.patch
./configure --prefix=/usr
make
# Become root to install it
su
removepkg cdparanoia
( cd /usr/lib ; rm -f libcdda_interface.* libcdda_paranoia.* )
make install
ldconfig
# If you ever want to uninstall cdparanoia, this should do it:
cd
su
test -d src/cdparanoia-III-alpha9.8 &&
( cd src/cdparanoia-III-alpha9.8 ; make uninstall )
rm -f /usr/bin/cdparanoia /usr/man/man1/cdparanoia.1
( cd /usr/include ; rm -f cdda_interface.h cdda_paranoia.h utils.h )
rm -f /usr/lib/libcdda_paranoia.* /usr/lib/libcdda_interface.*
exit
find ~/src -maxdepth 1 -type d -name "cdparanoia-III-*" -exec rm -r {} \;
rm -f ~/installed/cdparanoia-III-*.tar.*