mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
kde-apps/kwalletcli: new package, add 3.03
Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
This commit is contained in:
1
kde-apps/kwalletcli/Manifest
Normal file
1
kde-apps/kwalletcli/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST kwalletcli-3_03.tar.gz 64973 BLAKE2B f0c0bc8e031bbff2025eae46bc1392f3b18cfe6f79b25a92398e01a7317116e2323e32cd5678c1b4c91d5d7fbfe31db2e2eaba20eb8cb5629b9d92a84adef150 SHA512 799466dd98cb0d2b9ce66282ecbc972b70eaa8b2434ebe45d8c9f4f6cacd8940b44c4f86b9424587f26f5b69ef02e6e962df3fbbd09d9e10e44f3c969975c1bc
|
||||
33
kde-apps/kwalletcli/files/pinentry-qt-interaction-3.03.patch
Normal file
33
kde-apps/kwalletcli/files/pinentry-qt-interaction-3.03.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
From 38d7f23378bb6212b4975fc195af09743bb88199 Mon Sep 17 00:00:00 2001
|
||||
From: Naoaki Iwakiri <naokiri@gmail.com>
|
||||
Date: Tue, 6 Aug 2019 21:40:15 +0900
|
||||
Subject: [PATCH] Wait the passcode skipping additional informations if any.
|
||||
|
||||
This is a fix to use pinentry-kwallet with rather new pinentry-qt which tells whether the passcode is from input or a cached one before sending the actual passcode.
|
||||
It yet still ignores the 'allow-external-cache' option and try to store in kwallet always.
|
||||
---
|
||||
pinentry-kwallet | 11 ++++++-----
|
||||
1 file changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/pinentry-kwallet b/pinentry-kwallet
|
||||
index 11665d7..8768272 100644
|
||||
--- a/pinentry-kwallet
|
||||
+++ b/pinentry-kwallet
|
||||
@@ -219,11 +219,12 @@ function getit {
|
||||
io_s_out GETPIN
|
||||
io_s_in resp
|
||||
pw=
|
||||
- #XXX normally, read until OK|ERR
|
||||
- if [[ $resp = @(D )* ]]; then
|
||||
- pw=${resp#D }
|
||||
- io_s_in resp
|
||||
- fi
|
||||
+ while [[ $resp != @(OK|ERR)@(| *) ]]; do
|
||||
+ if [[ $resp = @(D )* ]]; then
|
||||
+ pw=${resp#D }
|
||||
+ fi
|
||||
+ io_s_in resp
|
||||
+ done
|
||||
[[ $resp = OK@(| *) ]] && tw=1
|
||||
fi
|
||||
(( tw && !blst )) && if kwalletcli_getpin -q -b \
|
||||
52
kde-apps/kwalletcli/kwalletcli-3.03.ebuild
Normal file
52
kde-apps/kwalletcli/kwalletcli-3.03.ebuild
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PV="$(ver_cut 1)_$(ver_cut 2)"
|
||||
|
||||
DESCRIPTION="CLI for the KDE Wallet"
|
||||
HOMEPAGE="http://www.mirbsd.org/kwalletcli.htm"
|
||||
SRC_URI="https://github.com/MirBSD/kwalletcli/archive/refs/tags/kwalletcli-$MY_PV.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${PN}-${MY_PV}"
|
||||
|
||||
LICENSE="MirOS"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/ki18n:5
|
||||
kde-frameworks/kwallet:5
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
app-shells/mksh
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/pinentry-qt-interaction-${PV}.patch" )
|
||||
|
||||
src_compile() {
|
||||
append-flags "-fPIC"
|
||||
append-ldflags "-fPIC"
|
||||
emake KDE_VER=5
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mkdir -p "${ED}/usr/bin" || die
|
||||
mkdir -p "${ED}/usr/share/man/man1" || die
|
||||
emake DESTDIR="${ED}" INSTALL_STRIP= install
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "To use pinentry-kwallet with GnuPG, add/change the line:"
|
||||
elog " pinentry-program /usr/bin/pinentry-kwallet"
|
||||
elog "to ~/.gnupg/gpg-agent.conf"
|
||||
elog "then restart your gnupg-agent with"
|
||||
elog " gpg-connect-agent reloadagent /bye"
|
||||
}
|
||||
11
kde-apps/kwalletcli/metadata.xml
Normal file
11
kde-apps/kwalletcli/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Adel Kara Slimane</name>
|
||||
<email>adel.ks@zegrapher.com</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">MirBSD/kwalletcli</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user