[evolution] [Flatpak] Build also pinentry, to be able to use gpg with password prompts



commit 3997c5445b6bb422050eda87d6315b4025f66e7f
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 25 18:53:21 2019 +0200

    [Flatpak] Build also pinentry, to be able to use gpg with password prompts
    
    Closes https://github.com/flathub/org.gnome.Evolution/issues/12

 flatpak/org.gnome.Evolution-master.json | 26 ++++++++++++++++++++++++++
 flatpak/org.gnome.Evolution-stable.json | 26 ++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)
---
diff --git a/flatpak/org.gnome.Evolution-master.json b/flatpak/org.gnome.Evolution-master.json
index fbb091a6cb..d04d63197c 100644
--- a/flatpak/org.gnome.Evolution-master.json
+++ b/flatpak/org.gnome.Evolution-master.json
@@ -35,6 +35,7 @@
                "--talk-name=ca.desrt.dconf",
                "--talk-name=org.freedesktop.Notifications",
                "--talk-name=org.freedesktop.secrets",
+               "--talk-name=org.gnome.keyring.SystemPrompter",
                "--talk-name=org.gnome.OnlineAccounts"
        ],
        "modules": [
@@ -226,6 +227,29 @@
                        ]
                },
 
+               {
+                       "name": "pinentry",
+                       "config-opts": [
+                               "--enable-pinentry-gnome3",
+                               "--disable-ncurses",
+                               "--disable-fallback-curses",
+                               "--disable-pinentry-curses",
+                               "--disable-pinentry-emacs",
+                               "--disable-pinentry-gtk2",
+                               "--disable-pinentry-qt5",
+                               "--disable-pinentry-tty",
+                               "--disable-pinentry-tqt",
+                               "--disable-pinentry-fltk"
+                       ],
+                       "sources": [
+                               {
+                                       "type": "archive",
+                                       "url": 
"https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.1.0.tar.bz2";,
+                                       "sha256": 
"68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570"
+                               }
+                       ]
+               },
+
                {
                        "name": "evolution",
                        "buildsystem": "cmake-ninja",
@@ -268,6 +292,8 @@
                                                "       export GIO_USE_NETWORK_MONITOR=base",
                                                "       gsettings reset org.gnome.evolution-data-server 
network-monitor-gio-name",
                                                "",
+                                               "       gpg-agent --homedir ~/.gnupg --daemon 
--pinentry-program=/app/bin/pinentry",
+                                               "",
                                                "       LINES=$(gdbus call --session --dest 
org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep 
@SOURCES_SERVICE@ | wc -l)",
                                                "       if [ \"${LINES}\" = \"0\" ]; then",
                                                "               /app/libexec/evolution-source-registry &",
diff --git a/flatpak/org.gnome.Evolution-stable.json b/flatpak/org.gnome.Evolution-stable.json
index 33df4b1e65..7c9cd64cd9 100644
--- a/flatpak/org.gnome.Evolution-stable.json
+++ b/flatpak/org.gnome.Evolution-stable.json
@@ -34,6 +34,7 @@
                "--talk-name=ca.desrt.dconf",
                "--talk-name=org.freedesktop.Notifications",
                "--talk-name=org.freedesktop.secrets",
+               "--talk-name=org.gnome.keyring.SystemPrompter",
                "--talk-name=org.gnome.OnlineAccounts"
        ],
        "modules": [
@@ -222,6 +223,29 @@
                        ]
                },
 
+               {
+                       "name": "pinentry",
+                       "config-opts": [
+                               "--enable-pinentry-gnome3",
+                               "--disable-ncurses",
+                               "--disable-fallback-curses",
+                               "--disable-pinentry-curses",
+                               "--disable-pinentry-emacs",
+                               "--disable-pinentry-gtk2",
+                               "--disable-pinentry-qt5",
+                               "--disable-pinentry-tty",
+                               "--disable-pinentry-tqt",
+                               "--disable-pinentry-fltk"
+                       ],
+                       "sources": [
+                               {
+                                       "type": "archive",
+                                       "url": 
"https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.1.0.tar.bz2";,
+                                       "sha256": 
"68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570"
+                               }
+                       ]
+               },
+
                {
                        "name": "evolution",
                        "buildsystem": "cmake-ninja",
@@ -264,6 +288,8 @@
                                                "       export GIO_USE_NETWORK_MONITOR=base",
                                                "       gsettings reset org.gnome.evolution-data-server 
network-monitor-gio-name",
                                                "",
+                                               "       gpg-agent --homedir ~/.gnupg --daemon 
--pinentry-program=/app/bin/pinentry",
+                                               "",
                                                "       LINES=$(gdbus call --session --dest 
org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep 
@SOURCES_SERVICE@ | wc -l)",
                                                "       if [ \"${LINES}\" = \"0\" ]; then",
                                                "               /app/libexec/evolution-source-registry &",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]