fef6b25033
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.
18 lines
330 B
Bash
Executable File
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
|