cd
test -f installed/pinepg-1.02.tgz && mv installed/pinepg-1.02.tgz .
test ! -f pinepg-1.02.tgz &&
wget http://quantumlab.net/pine_privacy_guard/pinepg-1.02.tgz
# Become root to install and configure it
su
find /usr/local -maxdepth 1 -type d -name "pinepg-*" -exec rm -r {} \;
tar xzvf pinepg-1.02.tgz -C /usr/local
ln -sf /usr/local/pinepg-1.02 /usr/local/pinepg
cd /usr/local/pinepg
# In pine's configuration in pine (M -> S -> C) or in pinerc.conf, set
# display-filters to (all on one line, not including the "# " at the
# beginning of the line):
# _LEADING("-----BEGIN PGP MESSAGE-----")_ /usr/local/pinepg/decrypt _RESULTFILE_ _DATAFILE_ _PREPENDKEY_, _LEADING("-----BEGIN PGP SIGNED MESSAGE-----")_ /usr/local/pinepg/verify _TMPFILE_ _RESULTFILE_
# and set sending-filters to:
# /usr/local/pinepg/clearsign _RESULTFILE_ _DATAFILE_ _PREPENDKEY_, /usr/local/pinepg/encrypt _RECIPIENTS_ _RESULTFILE_ _DATAFILE_ _PREPENDKEY_