pinentry: reworked pinentry wrapper and cleaned optional dependencies

This commit is contained in:
Tim Biermann 2023-09-14 21:21:37 +02:00
parent de10b2260d
commit 97ef40cbc6
Signed by: tb
GPG Key ID: 42F8B4E30B673606
4 changed files with 25 additions and 21 deletions

View File

@ -2,3 +2,4 @@ drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/pinentry
-rwxr-xr-x root/root usr/bin/pinentry-curses
-rwxr-xr-x root/root usr/bin/pinentry-tty

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/SbG9oAbSXpftPhXHLWbaAerEIlR/4EvWSTWEacda5bx2BW7fsbtXm2iVdNTKx3of0pyd4ffyxfN2a3swnV+FQQ=
SHA256 (Pkgfile) = f9d2ed3a8ceceecaef3dbc7fdfbcbf802825ca771cffd0a6d0b9bd1f2994872e
SHA256 (.footprint) = 90a052392c9a78dda118f9df4ffa7ef56194deb45bcf671d89e09571f87d967d
RWSE3ohX2g5d/d6mj7D+ydkz6LojoC7SsyKnczbRSzw54JImXMAXAtK752rWxMHGfBgWTEu7+cgLcY7U6LCIAltaRvxaXJvhGQE=
SHA256 (Pkgfile) = a4e4be66e0777f333e847afe8c24f0888ae8346ac0ed5d6756ca65a8d0d564a8
SHA256 (.footprint) = 81d30e315a62fba39149c68563feb60b35e5bcdb3bac7e7b96431dace10705b4
SHA256 (pinentry-1.2.1.tar.bz2) = 457a185e5a85238fb945a955dc6352ab962dc8b48720b62fc9fa48c7540a4067
SHA256 (pinentry) = 4f1b90a40d2cdf8a96cd3f988b6059ada0cf07c0008469e5a4951cbbeb5cf660
SHA256 (pinentry) = e3e3544c4786704b5d443ff45f8ff4399460c816508029d20adc98ada86f7199

View File

@ -2,21 +2,26 @@
# URL: https://gnupg.org/related_software/pinentry/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libassuan libcap util-linux
# Optional: libsecret
# Optional: gcr3 gtk libsecret qt5
name=pinentry
version=1.2.1
release=1
release=2
source=(https://gnupg.org/ftp/gcrypt/$name/$name-$version.tar.bz2
pinentry)
build() {
cd $name-$version
./configure \
prt-get isinst gcr3 || PKGMK_PINENTRY+=' --disable-gnome3'
prt-get isinst gtk || PKGMK_PINENTRY+=' --disable-gtk2'
prt-get isinst qt5 || PKGMK_PINENTRY+=' --disable-pinentry-qt5'
./configure $PKGMK_PINENTRY \
--prefix=/usr \
--disable-pinentry-{gtk2,qt,qt5} \
--enable-pinentry-curses
--enable-pinentry-curses \
--enable-pinentry-tty \
--disable-pinentry-qt4
make
make DESTDIR=$PKG install

View File

@ -1,19 +1,17 @@
#!/bin/sh
# pinentry wrapper
## pinentry wrapper
## alternatively, you can force a specific frontend
## by adding:
# pinentry-program /usr/bin/pinentry-curses
## to ~/.gnupg/gpg-agent.conf
if [ -x /usr/bin/pinentry-qt5 ];then
exec /usr/bin/pinentry-qt5 "$@"
fi
if [ -x /usr/bin/pinentry-qt ];then
if [ -x /usr/bin/pinentry-qt ]; then
exec /usr/bin/pinentry-qt "$@"
fi
if [ -x /usr/bin/pinentry-gtk-2 ];then
elif [ -x /usr/bin/pinentry-gnome3 ]; then
exec /usr/bin/pinentry-gnome3 "$@"
elif [ -x /usr/bin/pinentry-gtk-2 ]; then
exec /usr/bin/pinentry-gtk-2 "$@"
fi
if [ -x /usr/bin/pinentry-curses ];then
elif [ -x /usr/bin/pinentry-curses ]; then
exec /usr/bin/pinentry-curses "$@"
else
echo "no pinentry binary available" > /dev/stderr