# HPIJS 2.1.4
# ===========
# If you're interested in upgrading HPIJS, you should go to the HPLIP howto
# instead. HP bundles HPIJS as part of HPLIP. If you install HPLIP/HPIJS,
# you should probably uninstall this version first to ensure that there are
# no old files lying around unused. Skip down to the bottom for removal
# instructions.
# Slackware 9.0's 'hpijs' package includes version 1.3.1, 9.1's includes
# 1.4.1, 10.0's includes 1.6, 10.1's and 10.2's include 1.7, and 11.0's
# includes 2.1.4
# This howto used to be part of my cups howto which put tarballs into
# ~/installed/cups/, if you installed an older version from it, run this:
test -d ~/installed/cups && mv ~/installed/cups/hpijs-* ~/installed/
test -d ~/src/cups/hpijs-* && mv ~/src/cups/hpijs-* ~/src/
cd
test -f installed/hpijs-2.1.4.tar.gz &&
mv installed/hpijs-2.1.4.tar.gz .
test ! -f hpijs-2.1.4.tar.gz &&
wget http://download.sf.net/hpinkjet/hpijs-2.1.4.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "hpijs-*" -exec rm -r {} \;
tar xzvf ~/hpijs-2.1.4.tar.gz
cd hpijs-2.1.4
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make
# Become root to install it
su
# This will remove any previous versions that were installed under the
# /usr/local prefix:
( cd /usr/local/bin ; rm -f foomatic-rip hpijs )
find /usr/local/share/doc -maxdepth 1 -type d -name "hpijs-*" \
-exec rm -r {} \;
test -d /usr/local/share/ppd/HP &&
rm -r /usr/local/share/ppd/HP
test -x /sbin/removepkg && /sbin/removepkg hpijs
find /usr/doc -maxdepth 1 -type d -name "hpijs-*" -exec rm -r {} \;
make install