Linux HOWTOs

About | Home | Search


HOWTO: pinentry
Description: PIN or passphrase entry dialogs
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# PIN Entry 0.7.2
# ===============
# Prerequisites:
# ncurses
# GLib >= 1.2.0
# GTK+ >= 1.2.0
# iconv
# pkg-config
# GTK+-2 >= 2.4.0
# X.org or XFree86
# Qt

cd
test -f installed/pinentry-0.7.2.tar.gz &&
 mv installed/pinentry-0.7.2.tar.gz .
test ! -f pinentry-0.7.2.tar.gz &&
 wget ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-0.7.2.tar.gz

# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "55626ce13ed76d82ec5330d19bdf3ab4  pinentry-0.7.2.tar.gz" | md5sum -c

# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "aa113b08e315d22b6f70a634f459fdfbaa4dcaba  pinentry-0.7.2.tar.gz" | \
 sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 1CE0C630 > /dev/null 2>&1 || gpg --recv-keys 1CE0C630 ) &&
 wget -nc ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-0.7.2.tar.gz.sig &&
  gpg --verify pinentry-0.7.2.tar.gz.sig && rm pinentry-0.7.2.tar.gz.sig

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "pinentry-*" -exec rm -r {} \;
tar xzvf ~/pinentry-0.7.2.tar.gz
cd pinentry-0.7.2
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/pinentry-*.tar.*
mv pinentry-0.7.2.tar.gz installed/


# If you ever need to uninstall pinentry, this should do it:
test -d ~/src/pinentry-* && ( cd ~/src/pinentry-* ; make uninstall )
su
( cd /usr/local/bin ; rm -f pinentry-curses pinentry-gtk pinentry-gtk-2 \
 pinentry-qt )
rm -f /usr/local/info/pinentry.info
exit
find ~/src -maxdepth 1 -type d -name "pinentry-*" -exec rm -r {} \;
rm -f ~/installed/pinentry-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>