opt/pinentry/pinentry
Thomas Penteker fef6b25033 [notify] pinentry: 0.7.5 -> 0.8.0
The pinentry port was split into:
  pinentry
  pinentry-gtk2
  pinentry-qt4

whereas the -gtk2 and -qt4 ports depend on pinentry. This allows you to have
pinentry without it's usual X dependencies installed.
The pinentry port now only contains the curses-based interface and a wrapper
to automatically select the interface.
2010-03-27 01:33:37 +01:00

18 lines
330 B
Bash
Executable File

#!/bin/sh
# pinentry wrapper
if [ -x /usr/bin/pinentry-qt4 ];then
exec /usr/bin/pinentry-qt4 "$@"
fi
if [ -x /usr/bin/pinentry-gtk-2 ];then
exec /usr/bin/pinentry-gtk-2 "$@"
fi
if [ -x /usr/bin/pinentry-curses ];then
exec /usr/bin/pinentry-curses "$@"
else
echo "no pinentry binary available" > /dev/stderr
exit 1
fi