cd
test -f installed/rte-0.5.6.tar.bz2 && mv installed/rte-0.5.6.tar.bz2 .
test ! -f rte-0.5.6.tar.bz2 &&
wget http://easynews.dl.sourceforge.net/sourceforge/zapping/\
rte-0.5.6.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "rte-*" -exec rm -r {} \;
tar xjvf ~/rte-0.5.6.tar.bz2
cd rte-0.5.6
test $UID = 0 && chown -R root:root .
./configure --disable-nls
make
su -c "make install ; ldconfig"
cd
mkdir -p -m 0700 installed
rm -f installed/rte-*.tar.*
mv rte-0.5.6.tar.bz2 installed/
# If you ever want to uninstall rte, this should do it:
cd
su
test -d src/rte-* && ( cd src/rte-* ; make uninstall )
rm -f /usr/local/lib/librte.* /usr/local/include/librte.h
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "rte-*" -exec rm -r {} \;
rm -f ~/installed/rte-*.tar.*