aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-05-01 20:47:11 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-05 19:06:52 +0000
commit8a8cf569dbe8e8e7aaf06de4e8cdf88a9709eafd (patch)
tree671f0e5463b60782f16ac92c0a84a3d8c2936e6c
parent5a61d74337f3c6e4993a4a9b00581f554f6d1308 (diff)
downloadaports-8a8cf569dbe8e8e7aaf06de4e8cdf88a9709eafd.tar.gz
aports-8a8cf569dbe8e8e7aaf06de4e8cdf88a9709eafd.tar.bz2
aports-8a8cf569dbe8e8e7aaf06de4e8cdf88a9709eafd.tar.xz
main/pinentry: add pinentry-gnome, use libsecret
pinentry-gnome is useful when used in GNOME environments for better integration. Use libsecret to save secrets in the keychain.
-rw-r--r--main/pinentry/APKBUILD19
-rw-r--r--main/pinentry/pinentry-gnome.post-deinstall8
-rw-r--r--main/pinentry/pinentry-gnome.post-install4
3 files changed, 26 insertions, 5 deletions
diff --git a/main/pinentry/APKBUILD b/main/pinentry/APKBUILD
index e90b5f46fd..5d36e9eb78 100644
--- a/main/pinentry/APKBUILD
+++ b/main/pinentry/APKBUILD
@@ -2,15 +2,15 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pinentry
pkgver=1.1.0
-pkgrel=0
+pkgrel=1
pkgdesc="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
url="http://www.gnupg.org/aegypten2"
arch="all"
license="GPL-2.0-or-later"
-depends=""
install="pinentry.post-install pinentry.post-deinstall"
-makedepends="ncurses-dev libcap-dev gtk+-dev libgpg-error-dev libassuan-dev"
-subpackages="$pkgname-doc $pkgname-gtk"
+makedepends="ncurses-dev libcap-dev gtk+-dev libgpg-error-dev libassuan-dev
+ gcr-dev libsecret-dev"
+subpackages="$pkgname-doc $pkgname-gtk $pkgname-gnome"
source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver
@@ -24,7 +24,9 @@ build () {
--enable-pinentry-gtk2 \
--disable-pinentry-qt \
--enable-pinentry-curses \
- --enable-fallback-curses
+ --enable-fallback-curses \
+ --enable-pinentry-gnome3 \
+ --enable-libsecret
make
}
@@ -47,4 +49,11 @@ gtk() {
"$subpkgdir"/usr/bin/
}
+gnome() {
+ install="pinentry-gnome.post-install pinentry-gnome.post-deinstall"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/pinentry-gnome3 \
+ "$subpkgdir"/usr/bin/
+}
+
sha512sums="5012672925bcb5f683358c259e55e4b87c67cf063ad52c759308933733025c33f7ce08e5b8019ffc101cbf7ef30499040ef2fd34a7611698e65e1593f80948cd pinentry-1.1.0.tar.bz2"
diff --git a/main/pinentry/pinentry-gnome.post-deinstall b/main/pinentry/pinentry-gnome.post-deinstall
new file mode 100644
index 0000000000..887ef798ae
--- /dev/null
+++ b/main/pinentry/pinentry-gnome.post-deinstall
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -f /usr/bin/pinentry-curses ]; then
+ ln -sf pinentry-curses /usr/bin/pinentry
+else
+ rm -f /usr/bin/pinentry
+fi
+
diff --git a/main/pinentry/pinentry-gnome.post-install b/main/pinentry/pinentry-gnome.post-install
new file mode 100644
index 0000000000..291dba7517
--- /dev/null
+++ b/main/pinentry/pinentry-gnome.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+ln -sf pinentry-gnome3 /usr/bin/pinentry
+