summaryrefslogtreecommitdiff
path: root/data/gnupg2
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-08-15 10:39:44 -1000
committerSam Bingner <sam@bingner.com>2018-08-15 10:39:44 -1000
commita026ae99562291a2a72fdfbfef969df80277e827 (patch)
treecfa0f66857d9733004002ac9fe7412ca795b53a1 /data/gnupg2
parent597e1a4044999195bcdbf5bc62bf8bcbdb31990b (diff)
Use gnupg2 instead of gnupg everywhere and have a gnupg2 compatibility package
Diffstat (limited to 'data/gnupg2')
l---------data/gnupg2/_metadata/gcrypt.dep1
l---------data/gnupg2/_metadata/gnupg.dep1
-rw-r--r--data/gnupg2/_metadata/gnupg.ver.iphoneos-arm1
-rw-r--r--data/gnupg2/_metadata/gnupg.ver.iphoneos-arm641
l---------data/gnupg2/_metadata/gnutls.dep1
l---------data/gnupg2/_metadata/libassuan.dep1
l---------data/gnupg2/_metadata/libksba.dep1
l---------data/gnupg2/_metadata/npth.dep1
-rw-r--r--data/gnupg2/extern.diff328
-rw-r--r--data/gnupg2/gnupg-2.2.9.tar.bz2bin6659547 -> 0 bytes
-rw-r--r--data/gnupg2/make.sh6
11 files changed, 5 insertions, 337 deletions
diff --git a/data/gnupg2/_metadata/gcrypt.dep b/data/gnupg2/_metadata/gcrypt.dep
deleted file mode 120000
index 0a21c7b07..000000000
--- a/data/gnupg2/_metadata/gcrypt.dep
+++ /dev/null
@@ -1 +0,0 @@
-../../gcrypt \ No newline at end of file
diff --git a/data/gnupg2/_metadata/gnupg.dep b/data/gnupg2/_metadata/gnupg.dep
new file mode 120000
index 000000000..277e892bf
--- /dev/null
+++ b/data/gnupg2/_metadata/gnupg.dep
@@ -0,0 +1 @@
+../../gnupg \ No newline at end of file
diff --git a/data/gnupg2/_metadata/gnupg.ver.iphoneos-arm b/data/gnupg2/_metadata/gnupg.ver.iphoneos-arm
new file mode 100644
index 000000000..cd5ac039d
--- /dev/null
+++ b/data/gnupg2/_metadata/gnupg.ver.iphoneos-arm
@@ -0,0 +1 @@
+2.0
diff --git a/data/gnupg2/_metadata/gnupg.ver.iphoneos-arm64 b/data/gnupg2/_metadata/gnupg.ver.iphoneos-arm64
new file mode 100644
index 000000000..cd5ac039d
--- /dev/null
+++ b/data/gnupg2/_metadata/gnupg.ver.iphoneos-arm64
@@ -0,0 +1 @@
+2.0
diff --git a/data/gnupg2/_metadata/gnutls.dep b/data/gnupg2/_metadata/gnutls.dep
deleted file mode 120000
index 2dbb733a2..000000000
--- a/data/gnupg2/_metadata/gnutls.dep
+++ /dev/null
@@ -1 +0,0 @@
-../../gnutls \ No newline at end of file
diff --git a/data/gnupg2/_metadata/libassuan.dep b/data/gnupg2/_metadata/libassuan.dep
deleted file mode 120000
index faf83d0e8..000000000
--- a/data/gnupg2/_metadata/libassuan.dep
+++ /dev/null
@@ -1 +0,0 @@
-../../libassuan \ No newline at end of file
diff --git a/data/gnupg2/_metadata/libksba.dep b/data/gnupg2/_metadata/libksba.dep
deleted file mode 120000
index af0be215f..000000000
--- a/data/gnupg2/_metadata/libksba.dep
+++ /dev/null
@@ -1 +0,0 @@
-../../libksba \ No newline at end of file
diff --git a/data/gnupg2/_metadata/npth.dep b/data/gnupg2/_metadata/npth.dep
deleted file mode 120000
index ba035bc31..000000000
--- a/data/gnupg2/_metadata/npth.dep
+++ /dev/null
@@ -1 +0,0 @@
-../../npth \ No newline at end of file
diff --git a/data/gnupg2/extern.diff b/data/gnupg2/extern.diff
deleted file mode 100644
index 883324693..000000000
--- a/data/gnupg2/extern.diff
+++ /dev/null
@@ -1,328 +0,0 @@
-diff -ur gnupg-2.2.9/agent/agent.h gnupg-2.2.9+iPhone/agent/agent.h
---- gnupg-2.2.9/agent/agent.h 2018-06-12 01:25:39.000000000 -1000
-+++ gnupg-2.2.9+iPhone/agent/agent.h 2018-08-15 08:34:08.000000000 -1000
-@@ -55,6 +55,7 @@
-
-
- /* A large struct name "opt" to keep global flags */
-+EXTERN_UNLESS_MAIN_MODULE
- struct
- {
- unsigned int debug; /* Debug flags (DBG_foo_VALUE) */
-diff -ur gnupg-2.2.9/agent/gpg-agent.c gnupg-2.2.9+iPhone/agent/gpg-agent.c
---- gnupg-2.2.9/agent/gpg-agent.c 2018-06-06 06:29:59.000000000 -1000
-+++ gnupg-2.2.9+iPhone/agent/gpg-agent.c 2018-08-14 22:16:12.000000000 -1000
-@@ -50,9 +50,11 @@
- #include <npth.h>
-
- #define GNUPG_COMMON_NEED_AFLOCAL
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "agent.h"
- #include <assuan.h> /* Malloc hooks and socket wrappers. */
-
-+#include "../common/iobuf.h"
- #include "../common/i18n.h"
- #include "../common/sysutils.h"
- #include "../common/gc-opt-flags.h"
-diff -ur gnupg-2.2.9/agent/preset-passphrase.c gnupg-2.2.9+iPhone/agent/preset-passphrase.c
---- gnupg-2.2.9/agent/preset-passphrase.c 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/agent/preset-passphrase.c 2018-08-14 22:16:12.000000000 -1000
-@@ -44,6 +44,7 @@
- # include <windows.h> /* To initialize the sockets. fixme */
- #endif
-
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "agent.h"
- #include "../common/simple-pwquery.h"
- #include "../common/i18n.h"
-diff -ur gnupg-2.2.9/agent/protect-tool.c gnupg-2.2.9+iPhone/agent/protect-tool.c
---- gnupg-2.2.9/agent/protect-tool.c 2018-03-26 20:13:47.000000000 -1000
-+++ gnupg-2.2.9+iPhone/agent/protect-tool.c 2018-08-14 22:22:40.000000000 -1000
-@@ -38,7 +38,9 @@
- #include <fcntl.h> /* for setmode() */
- #endif
-
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "agent.h"
-+#include "../common/iobuf.h"
- #include "../common/i18n.h"
- #include "../common/get-passphrase.h"
- #include "../common/sysutils.h"
-diff -ur gnupg-2.2.9/agent/t-protect.c gnupg-2.2.9+iPhone/agent/t-protect.c
---- gnupg-2.2.9/agent/t-protect.c 2017-12-07 20:40:06.000000000 -1000
-+++ gnupg-2.2.9+iPhone/agent/t-protect.c 2018-08-14 22:16:12.000000000 -1000
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <assert.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "agent.h"
-
-
-diff -ur gnupg-2.2.9/common/iobuf.h gnupg-2.2.9+iPhone/common/iobuf.h
---- gnupg-2.2.9/common/iobuf.h 2018-06-12 01:25:39.000000000 -1000
-+++ gnupg-2.2.9+iPhone/common/iobuf.h 2018-08-14 22:16:12.000000000 -1000
-@@ -250,7 +250,7 @@
- };
-
- #ifndef EXTERN_UNLESS_MAIN_MODULE
--#if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
-+#if (defined (__riscos__) || defined (__APPLE__)) && !defined (INCLUDED_BY_MAIN_MODULE)
- #define EXTERN_UNLESS_MAIN_MODULE extern
- #else
- #define EXTERN_UNLESS_MAIN_MODULE
-diff -ur gnupg-2.2.9/common/t-iobuf.c gnupg-2.2.9+iPhone/common/t-iobuf.c
---- gnupg-2.2.9/common/t-iobuf.c 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/common/t-iobuf.c 2018-08-14 22:16:12.000000000 -1000
-@@ -4,6 +4,7 @@
- #include <assert.h>
- #include <stdlib.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "iobuf.h"
- #include "stringhelp.h"
-
-diff -ur gnupg-2.2.9/common/t-name-value.c gnupg-2.2.9+iPhone/common/t-name-value.c
---- gnupg-2.2.9/common/t-name-value.c 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/common/t-name-value.c 2018-08-14 22:16:12.000000000 -1000
-@@ -25,6 +25,8 @@
- #include <unistd.h>
- #include <sys/stat.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
-+#include "iobuf.h"
- #include "util.h"
- #include "name-value.h"
-
-diff -ur gnupg-2.2.9/common/t-strlist.c gnupg-2.2.9+iPhone/common/t-strlist.c
---- gnupg-2.2.9/common/t-strlist.c 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/common/t-strlist.c 2018-08-14 22:16:12.000000000 -1000
-@@ -31,6 +31,8 @@
- #include <config.h>
- #include <string.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
-+#include "iobuf.h"
- #include "strlist.h"
-
- #include "t-support.h"
-diff -ur gnupg-2.2.9/common/util.h gnupg-2.2.9+iPhone/common/util.h
---- gnupg-2.2.9/common/util.h 2018-06-12 01:25:39.000000000 -1000
-+++ gnupg-2.2.9+iPhone/common/util.h 2018-08-15 08:24:16.000000000 -1000
-@@ -55,6 +55,13 @@
- # define GPG_ERR_DNS_TIMEOUT 718
- #endif
-
-+#ifndef EXTERN_UNLESS_MAIN_MODULE
-+#if (defined (__riscos__) || defined (__APPLE__)) && !defined (INCLUDED_BY_MAIN_MODULE)
-+#define EXTERN_UNLESS_MAIN_MODULE extern
-+#else
-+#define EXTERN_UNLESS_MAIN_MODULE
-+#endif
-+#endif
-
- /* Hash function used with libksba. */
- #define HASH_FNC ((void (*)(void *, const void*,size_t))gcry_md_write)
-diff -ur gnupg-2.2.9/dirmngr/dirmngr.c gnupg-2.2.9+iPhone/dirmngr/dirmngr.c
---- gnupg-2.2.9/dirmngr/dirmngr.c 2018-06-12 01:25:39.000000000 -1000
-+++ gnupg-2.2.9+iPhone/dirmngr/dirmngr.c 2018-08-14 22:28:37.000000000 -1000
-@@ -56,10 +56,12 @@
-
-
- #define GNUPG_COMMON_NEED_AFLOCAL
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "dirmngr.h"
-
- #include <assuan.h>
-
-+#include "../common/iobuf.h"
- #include "certcache.h"
- #include "crlcache.h"
- #include "crlfetch.h"
-diff -ur gnupg-2.2.9/dirmngr/dirmngr.h gnupg-2.2.9+iPhone/dirmngr/dirmngr.h
---- gnupg-2.2.9/dirmngr/dirmngr.h 2017-12-11 00:30:45.000000000 -1000
-+++ gnupg-2.2.9+iPhone/dirmngr/dirmngr.h 2018-08-15 08:35:31.000000000 -1000
-@@ -75,6 +75,7 @@
-
-
- /* A large struct named "opt" to keep global flags. */
-+EXTERN_UNLESS_MAIN_MODULE
- struct
- {
- unsigned int debug; /* debug flags (DBG_foo_VALUE) */
-diff -ur gnupg-2.2.9/g10/options.h gnupg-2.2.9+iPhone/g10/options.h
---- gnupg-2.2.9/g10/options.h 2018-06-12 01:25:39.000000000 -1000
-+++ gnupg-2.2.9+iPhone/g10/options.h 2018-08-15 08:31:23.000000000 -1000
-@@ -30,15 +30,6 @@
- #include "../common/session-env.h"
- #include "../common/compliance.h"
-
--#ifndef EXTERN_UNLESS_MAIN_MODULE
--/* Norcraft can't cope with common symbols */
--#if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
--#define EXTERN_UNLESS_MAIN_MODULE extern
--#else
--#define EXTERN_UNLESS_MAIN_MODULE
--#endif
--#endif
--
- /* Declaration of a keyserver spec type. The definition is found in
- ../common/keyserver.h. */
- struct keyserver_spec;
-diff -ur gnupg-2.2.9/kbx/kbxutil.c gnupg-2.2.9+iPhone/kbx/kbxutil.c
---- gnupg-2.2.9/kbx/kbxutil.c 2018-06-12 01:25:39.000000000 -1000
-+++ gnupg-2.2.9+iPhone/kbx/kbxutil.c 2018-08-14 22:16:12.000000000 -1000
-@@ -29,6 +29,8 @@
- #include <assert.h>
-
- #include <gpg-error.h>
-+#define INCLUDED_BY_MAIN_MODULE 1
-+#include "../common/iobuf.h"
- #include "../common/logging.h"
- #include "../common/argparse.h"
- #include "../common/stringhelp.h"
-diff -ur gnupg-2.2.9/scd/scdaemon.c gnupg-2.2.9+iPhone/scd/scdaemon.c
---- gnupg-2.2.9/scd/scdaemon.c 2018-03-21 08:43:33.000000000 -1000
-+++ gnupg-2.2.9+iPhone/scd/scdaemon.c 2018-08-14 22:25:31.000000000 -1000
-@@ -38,12 +38,14 @@
- #include <npth.h>
-
- #define GNUPG_COMMON_NEED_AFLOCAL
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "scdaemon.h"
- #include <ksba.h>
- #include <gcrypt.h>
-
- #include <assuan.h> /* malloc hooks */
-
-+#include "../common/iobuf.h"
- #include "../common/i18n.h"
- #include "../common/sysutils.h"
- #include "app-common.h"
-diff -ur gnupg-2.2.9/scd/scdaemon.h gnupg-2.2.9+iPhone/scd/scdaemon.h
---- gnupg-2.2.9/scd/scdaemon.h 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/scd/scdaemon.h 2018-08-15 08:35:05.000000000 -1000
-@@ -44,6 +44,7 @@
-
-
- /* A large struct name "opt" to keep global flags. */
-+EXTERN_UNLESS_MAIN_MODULE
- struct
- {
- unsigned int debug; /* Debug flags (DBG_foo_VALUE). */
-diff -ur gnupg-2.2.9/sm/gpgsm.c gnupg-2.2.9+iPhone/sm/gpgsm.c
---- gnupg-2.2.9/sm/gpgsm.c 2018-06-12 01:25:39.000000000 -1000
-+++ gnupg-2.2.9+iPhone/sm/gpgsm.c 2018-08-14 22:16:12.000000000 -1000
-@@ -28,6 +28,7 @@
- #include <fcntl.h>
- /*#include <mcheck.h>*/
-
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "gpgsm.h"
- #include <gcrypt.h>
- #include <assuan.h> /* malloc hooks */
-diff -ur gnupg-2.2.9/sm/gpgsm.h gnupg-2.2.9+iPhone/sm/gpgsm.h
---- gnupg-2.2.9/sm/gpgsm.h 2018-06-12 01:25:39.000000000 -1000
-+++ gnupg-2.2.9+iPhone/sm/gpgsm.h 2018-08-15 08:36:03.000000000 -1000
-@@ -52,6 +52,7 @@
-
-
- /* A large struct named "opt" to keep global flags. */
-+EXTERN_UNLESS_MAIN_MODULE
- struct
- {
- unsigned int debug; /* debug flags (DBG_foo_VALUE) */
-diff -ur gnupg-2.2.9/tools/gpg-check-pattern.c gnupg-2.2.9+iPhone/tools/gpg-check-pattern.c
---- gnupg-2.2.9/tools/gpg-check-pattern.c 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/tools/gpg-check-pattern.c 2018-08-15 08:26:34.000000000 -1000
-@@ -40,6 +40,8 @@
- #include <regex.h>
- #include <ctype.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
-+#include "../common/iobuf.h"
- #include "../common/util.h"
- #include "../common/i18n.h"
- #include "../common/sysutils.h"
-diff -ur gnupg-2.2.9/tools/gpg-connect-agent.c gnupg-2.2.9+iPhone/tools/gpg-connect-agent.c
---- gnupg-2.2.9/tools/gpg-connect-agent.c 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/tools/gpg-connect-agent.c 2018-08-15 08:22:21.000000000 -1000
-@@ -29,6 +29,8 @@
- #include <unistd.h>
- #include <assert.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
-+#include "../common/iobuf.h"
- #include "../common/i18n.h"
- #include "../common/util.h"
- #include "../common/asshelp.h"
-diff -ur gnupg-2.2.9/tools/gpg-wks-client.c gnupg-2.2.9+iPhone/tools/gpg-wks-client.c
---- gnupg-2.2.9/tools/gpg-wks-client.c 2018-02-20 04:09:35.000000000 -1000
-+++ gnupg-2.2.9+iPhone/tools/gpg-wks-client.c 2018-08-15 08:26:19.000000000 -1000
-@@ -23,6 +23,8 @@
- #include <stdlib.h>
- #include <string.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
-+#include "../common/iobuf.h"
- #include "../common/util.h"
- #include "../common/status.h"
- #include "../common/i18n.h"
-diff -ur gnupg-2.2.9/tools/gpg-wks.h gnupg-2.2.9+iPhone/tools/gpg-wks.h
---- gnupg-2.2.9/tools/gpg-wks.h 2018-02-20 04:06:52.000000000 -1000
-+++ gnupg-2.2.9+iPhone/tools/gpg-wks.h 2018-08-14 22:16:12.000000000 -1000
-@@ -30,6 +30,7 @@
-
-
- /* We keep all global options in the structure OPT. */
-+EXTERN_UNLESS_MAIN_MODULE
- struct
- {
- int verbose;
-diff -ur gnupg-2.2.9/tools/gpgconf.c gnupg-2.2.9+iPhone/tools/gpgconf.c
---- gnupg-2.2.9/tools/gpgconf.c 2018-04-09 02:40:19.000000000 -1000
-+++ gnupg-2.2.9+iPhone/tools/gpgconf.c 2018-08-14 22:29:44.000000000 -1000
-@@ -25,7 +25,9 @@
- #include <string.h>
- #include <unistd.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
- #include "gpgconf.h"
-+#include "../common/iobuf.h"
- #include "../common/i18n.h"
- #include "../common/sysutils.h"
- #include "../common/init.h"
-diff -ur gnupg-2.2.9/tools/gpgconf.h gnupg-2.2.9+iPhone/tools/gpgconf.h
---- gnupg-2.2.9/tools/gpgconf.h 2017-12-18 06:07:27.000000000 -1000
-+++ gnupg-2.2.9+iPhone/tools/gpgconf.h 2018-08-15 08:32:29.000000000 -1000
-@@ -23,6 +23,7 @@
- #include "../common/util.h"
-
- /* We keep all global options in the structure OPT. */
-+EXTERN_UNLESS_MAIN_MODULE
- struct
- {
- int verbose; /* Verbosity level. */
-diff -ur gnupg-2.2.9/tools/gpgtar.c gnupg-2.2.9+iPhone/tools/gpgtar.c
---- gnupg-2.2.9/tools/gpgtar.c 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/tools/gpgtar.c 2018-08-15 08:25:45.000000000 -1000
-@@ -34,6 +34,8 @@
- #include <string.h>
- #include <assert.h>
-
-+#define INCLUDED_BY_MAIN_MODULE 1
-+#include "../common/iobuf.h"
- #include "../common/util.h"
- #include "../common/i18n.h"
- #include "../common/sysutils.h"
-diff -ur gnupg-2.2.9/tools/gpgtar.h gnupg-2.2.9+iPhone/tools/gpgtar.h
---- gnupg-2.2.9/tools/gpgtar.h 2017-08-28 00:22:54.000000000 -1000
-+++ gnupg-2.2.9+iPhone/tools/gpgtar.h 2018-08-15 08:31:48.000000000 -1000
-@@ -24,6 +24,7 @@
- #include "../common/strlist.h"
-
- /* We keep all global options in the structure OPT. */
-+EXTERN_UNLESS_MAIN_MODULE
- struct
- {
- int verbose;
diff --git a/data/gnupg2/gnupg-2.2.9.tar.bz2 b/data/gnupg2/gnupg-2.2.9.tar.bz2
deleted file mode 100644
index 26298670f..000000000
--- a/data/gnupg2/gnupg-2.2.9.tar.bz2
+++ /dev/null
Binary files differ
diff --git a/data/gnupg2/make.sh b/data/gnupg2/make.sh
index e733d6568..a26dde533 100644
--- a/data/gnupg2/make.sh
+++ b/data/gnupg2/make.sh
@@ -1,4 +1,2 @@
-pkg:setup
-pkg:configure --with-ksba-prefix="$(PKG_DEST_ libksba)/usr" --with-libassuan-prefix="$(PKG_DEST_ libassuan)/usr" --with-npth-prefix="$(PKG_DEST_ npth)/usr" --sysconfdir=/etc --with-gpg-error-prefix="$(PKG_DEST_ libgpg-error)/usr" --with-libgcrypt-prefix="$(PKG_DEST_ gcrypt)/usr"
-make -j8
-pkg:install
+mkdir -p "$(PKG_DEST_ gnupg2)/usr/bin"
+ln -s gnupg "$(PKG_DEST_ gnupg2)/usr/bin/gnupg2"