# Pan 0.14.2
# ==========
# The latest stable version is 0.14.2 which was released August 31, 2003.
# There's also a beta version, currently at 0.127 as I write this. That
# was last updated on April 12, 2007.
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "pan-*" -exec rm -r {} \;
tar xjvf ~/pan-0.14.2.tar.bz2
cd pan-0.14.2
test $UID = 0 && chown -R root:root .
# Apply this patch if you use gcc 4.x:
wget -O - http://www.linuxfromscratch.org/patches/downloads/pan/\
pan-0.14.2-gcc4-1.patch | patch -p1
./configure --prefix=/usr --localstatedir=/var/lib --enable-html
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg pan
make install
# I live in the US and only read/write English (well), so I don't need
# these:
find /usr/share/locale -type f -name "pan.mo" -exec rm {} \; 2> /dev/null
# /usr/share/pixmaps/pan.png can be used as a desktop icon
# If you ever want to uninstall Pan, this should do it:
cd
su
test -d src/pan-* && ( cd src/pan-* ; make uninstall )
rm -f /usr/bin/pan /usr/share/gnome/apps/Internet/pan.desktop \
/usr/share/pixmaps/pan.png
find /usr/share/locale -type f -name "pan.mo" -exec rm {} \; 2> /dev/null
exit
find ~/src -maxdepth 1 -type d -name "pan-*" -exec rm -r {} \;
rm -f ~/installed/pan-*.tar.*