- rel 2; drop seahorse-agent support (seahorse doesn't provide such binary); launch...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 6 May 2018 09:56:49 +0000 (11:56 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 24 May 2018 06:48:49 +0000 (15:48 +0900)
gnupg-agent.sh
gnupg2.spec

index 72dda0c..6b2dadb 100644 (file)
@@ -6,28 +6,8 @@ else
        CFG="${HOME}/.gnupg/options"
 fi
 
-seahorse=no
-if [ -r "${HOME}/.gnupg/gpg-agent.conf" ]; then
-       grep -qE "^[[:blank:]]*pinentry-program[[:blank:]]*.*seahorse-agent" "${HOME}/.gnupg/gpg-agent.conf" && seahorse=yes
-fi
-
 if grep -q "^[[:blank:]]*use-agent" ${CFG} 2>/dev/null; then
-       if [ -f "${HOME}/.gnupg/GPG_AGENT_INFO" ] && \
-                       pid="$(cut -d: -f2 $HOME/.gnupg/GPG_AGENT_INFO)" && \
-                       agent="$(readlink -n "/proc/$pid/exe")" && agent=${agent%% *} && \
-                       [ "$agent" = "/usr/bin/gpg-agent" -o "$agent" = "/usr/bin/seahorse-agent" ]; then
-               export GPG_AGENT_INFO="$(cat ${HOME}/.gnupg/GPG_AGENT_INFO)"
-       else
-               if [ "$seahorse" = "no" ]; then
-                       eval "$(gpg-agent --daemon)"
-               else
-                       eval "$(seahorse-agent --variables)"
-               fi
-               echo $GPG_AGENT_INFO > ~/.gnupg/GPG_AGENT_INFO
-               export GPG_AGENT_INFO
-       fi
+       /usr/bin/gpgconf --launch gpg-agent
 fi
-unset agent
-unset seahorse
+
 unset CFG
-unset pid
index e946ee3..703ef27 100644 (file)
@@ -9,9 +9,8 @@
 Summary:       GNU Privacy Guard - tool for secure communication and data storage - enhanced version
 Summary(pl.UTF-8):     GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
 Name:          gnupg2
-# 2.1.x is development version unfortunately (see gpg2 --version)
 Version:       2.2.7
-Release:       1
+Release:       2
 License:       GPL v3+
 Group:         Applications/File
 Source0:       ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
This page took 0.613917 seconds and 4 git commands to generate.