cd
test -f installed/xloadimage.4.1.tar.gz &&
mv installed/xloadimage.4.1.tar.gz .
test ! -f xloadimage.4.1.tar.gz &&
wget ftp://ftp.x.org/R5contrib/xloadimage.4.1.tar.gz
cd /usr/local/src
find -type d -maxdepth 1 -name "xloadimage.*" -exec rm -r {} \;
tar xzvf ~/xloadimage.4.1.tar.gz
cd xloadimage.4.1
chown -R root.root .
# Apply this patch or you won't even come close to building it (xloadimage
# hasn't been updated in a long time). This is one big patch from about
# six that I found using Google and several other changes I had to make to
# get it to build.
wget -nc http://englanders.cc/pub/linux/patches/xloadimage.4.1.patch &&
patch -p1 < xloadimage.4.1.patch
make
# Here it will ask you for some configuration options, the defaults should
# be fine
make install
cd
mkdir -p -m 0700 installed
rm -f installed/xloadimage-*.tar.*
mv xloadimage.4.1.tar.gz installed/
# If you ever wanted to uninstall xloadimage, run this:
rm -f /usr/lib/X11/Xloadimage /usr/local/bin/uufilter \
/usr/local/bin/xloadimage /usr/local/bin/xsetbg /usr/local/bin/xview