# dvd+rw-tools 7.0
# ================
# Slackware 9.1's 'dvd+rw-tools' package includes version 5.12.4.7.4, 10.0's
# includes 5.19-1.4.9.7, 10.1 and 10.2's include 5.21.4.10.8, and 11.0's
# includes 6.1
cd
test -f installed/dvd+rw-tools-7.0.tar.gz &&
mv installed/dvd+rw-tools-7.0.tar.gz .
test ! -f dvd+rw-tools-7.0.tar.gz &&
wget http://fy.chalmers.se/~appro/linux/DVD+RW/tools/\
dvd+rw-tools-7.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "dvd+rw-tools-*" -exec rm -r {} \;
tar xzvf ~/dvd+rw-tools-7.0.tar.gz
cd dvd+rw-tools-7.0
test $UID = 0 && chown -R root:root .
chmod -R u+w .
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg dvd+rw-tools
make install prefix=/usr
# If you ever want to uninstall dvd+rw-tools, this should do it:
cd
su
test -d src/dvd+rw-tools-* && ( cd src/dvd+rw-tools-* ; make uninstall )
( cd /usr/bin ; rm -f btcflash dvd+rw-booktype dvd+rw-format \
dvd+rw-mediainfo dvd-ram-control growisofs )
rm -f /usr/man/man1/growisofs.1* /usr/share/man/man1/growisofs.1*
exit
find ~/src -maxdepth 1 -type d -name "dvd+rw-tools-*" -exec rm -r {} \;
rm -f ~/installed/dvd+rw-tools-*.tar.*