# mtools 3.9.10
# =============
# Slackware has the 'floppy' package which includes mtools and fdutils.
# If you follow this howto and remove 'floppy', you should continue to the
# fdutils howto to re-install it.
# Slackware 8.1, 9.0, 9.1, 10.0, 10.1, and 10.2's 'floppy' packages include
# mtools 3.9.8
cd
test -f installed/mtools-3.9.10.tar.gz && mv installed/mtools-3.9.10.tar.gz .
test ! -f mtools-3.9.10.tar.gz &&
wget http://mtools.linux.lu/mtools-3.9.10.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "mtools-*" -exec rm -r {} \;
tar xzvf ~/mtools-3.9.10.tar.gz
cd mtools-3.9.10
test $UID = 0 && chown -R root:root .
chmod -R u+w .
# Apply this patch to 3.9.10 from the author:
wget -nc http://mtools.linux.lu/mtools-3.9.10-20051011.diff.gz &&
zcat mtools-3.9.10-20051011.diff.gz | patch -p1
./configure --prefix=/usr --sysconfdir=/etc
make
# Become root to backup files and to install it
su
# Back up mtools configuration (because 'removepkg floppy' will remove it):
test -f /etc/mtools.conf &&
( mkdir -p -m 0700 ~/backup ; cp /etc/mtools.conf ~/backup/ )
test -x /sbin/removepkg && /sbin/removepkg floppy
make install
chown -R $USER .
# Either restore your existing mtools.conf from ~/backup/ (if you have one)
# or copy over the sample mtools.conf You must open this up and change a few
# things before it'll be used (comment out line 3, etc.):
test ! -f /etc/mtools.conf && cp mtools.conf /etc/