# raidtools 1.00.3
# ================
# raidtools has been deprecated in favor of mdadm
# Slackware 8.1's 'raidtools' package includes version 0.90, 9.0's, 9.1's,
# 10.0's, 10.1's, and 10.2's includes 1.00.3
cd
test -f installed/raidtools-1.00.3.tar.gz &&
mv installed/raidtools-1.00.3.tar.gz .
test ! -f raidtools-1.00.3.tar.gz &&
wget http://people.redhat.com/mingo/raidtools/raidtools-1.00.3.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "raidtools-*" -exec rm -r {} \;
tar xzvf ~/raidtools-1.00.3.tar.gz
cd raidtools-1.00.3
test $UID = 0 && chown -R root:root .
# Patch it to fix building with recent versions of gcc
wget -nc http://englanders.cc/pub/linux/patches/raidtools-1.00.3.patch &&
patch -p0 < raidtools-1.00.3.patch
./configure --prefix=/usr
make
su -c "removepkg raidtools ; make install"
cd
mkdir -p -m 0700 installed
rm -f installed/raidtools-*.tar.*
mv raidtools-1.00.3.tar.gz installed/
# If you ever need to uninstall raidtools, this should do it:
su
( cd /sbin ; rm -f arytst detect_multipath lsraid mkraid raid0run \
raidhotadd raidhotremove raidreconf raidsetfaulty raidstart raidstop )
rm -f /usr/man/man5/raidtab.5
( cd /usr/man/man8 ; rm -f ckraid.8 lsraid.8 mkraid.8 raid0run.8 raidadd.8 \
raidreconf.8 raidrun.8 raidstart.8 raidstop.8 )
exit
find ~/src -maxdepth 1 -type d -name "raidtools-*" -exec rm -r {} \;
rm -f ~/installed/raidtools-*.tar.*