# cdrtools
# ========
# Slackware 10.0's 'cdrtools' package includes version 2.00.3, 10.1,
# 10.2, and 11.0's include 2.01, 12.0's includes 2.01.01a23
# If you ever want to uninstall cdrtools, or remove files from an old
# version before installing a new one, skip down to the bottom for
# instructions.
# cdrtools 2.01
# =============
cd
test -f installed/cdrtools-2.01.tar.bz2 &&
mv installed/cdrtools-2.01.tar.bz2 .
test ! -f cdrtools-2.01.tar.bz2 &&
wget ftp://ftp.berlios.de/pub/cdrecord/cdrtools-2.01.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cdrtools-*" -exec rm -r {} \;
tar xjvf ~/cdrtools-2.01.tar.bz2
cd cdrtools-2.01
test $UID = 0 && chown -R root:root .
make INS_BASE=/usr
chmod -R u+w .
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg cdrtools
make install INS_BASE=/usr
chown -R $USER .
# cdrtools 2.01.01a35
# ===================
# Occasionally when a kernel is released after the cdrtools development
# version, I've been unable to build a certain development version with a
# certain kernel's headers (/usr/src/linux/include). I was unable to
# build a03 with kernel 2.6.14.3 for example. a14 and kernel 2.6.17.3 were
# just fine.
cd
test -f installed/cdrtools-2.01.01a35.tar.bz2 &&
mv installed/cdrtools-2.01.01a35.tar.bz2 .
test ! -f cdrtools-2.01.01a35.tar.bz2 &&
wget ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-2.01.01a35.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cdrtools-*" -exec rm -r {} \;
tar xjvf ~/cdrtools-2.01.01a35.tar.bz2
cd cdrtools-2.01.01
test $UID = 0 && chown -R root:root .
chmod -R u+w .
make INS_BASE=/usr
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg cdrtools
make install INS_BASE=/usr
chown -R $USER .