<pre style='margin:0'>
Mihai Moldovan (Ionic) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ce526e044d46adfff3e5bef452188fe15760ccbf">https://github.com/macports/macports-ports/commit/ce526e044d46adfff3e5bef452188fe15760ccbf</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ce526e044d46adfff3e5bef452188fe15760ccbf
</span>Author: Mihai Moldovan <ionic@ionic.de>
AuthorDate: Thu Oct 12 03:48:26 2017 +0200
<span style='display:block; white-space:pre;color:#404040;'> misc gnupg: delete old 2.0 version, bump up to 2.2, drop separate gpg-agent and dirmngr ports.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Changes in detail:
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/gnupg2: copy from gnupg21, updated to version 2.2.1.
</span><span style='display:block; white-space:pre;color:#404040;'> Additionally, also installs a symlink from gpg2 to gpg in
</span><span style='display:block; white-space:pre;color:#404040;'> ${prefix}/bin/.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/: add new port gnupg1, copy of old gnupg port.
</span><span style='display:block; white-space:pre;color:#404040;'> Conflicts with gnupg2.
</span><span style='display:block; white-space:pre;color:#404040;'> Add note regarding future directions for this port.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/gnupg: make stub-port with replaced_by gnupg2.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/gnupg21: make stub-port with replaced_by gnupg2.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/gnupg: transparently upgrade users of the old gnupg port to gnupg1, otherwise recommend gnupg2.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/gnupg2: conflict with gnupg1.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - security/gpg-agent: make stub-port with replaced_by gnupg2.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/gnupg1: remove obsolete agent-via-launchd support.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/gnupg2: remove gpg-agent conflict, port is gone.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - security/dirmngr: make stub-port with replaced_by gnupg2.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - mail/gnupg2: remove dirmngr conflict, port is gone.
</span>---
mail/gnupg/Portfile | 97 +++---
mail/gnupg/files/patch-gpg_agent-launchd.diff | 21 --
mail/{gnupg => gnupg1}/Portfile | 41 ++-
mail/gnupg2/Portfile | 86 +++--
mail/gnupg2/files/patch-common-homedir.c.diff | 11 -
mail/gnupg2/files/patch-configure.diff | 11 -
mail/gnupg2/files/patch-gl_stdint__h.diff | 15 -
mail/gnupg2/files/patch-gpg_agent-launchd.diff | 114 ------
.../files/patch-tests__openpgp__Makefile.in.diff | 16 -
mail/gnupg21/Portfile | 82 +----
security/dirmngr/Portfile | 52 +--
security/dirmngr/files/patch-dirmngr-pth-fix.diff | 18 -
security/gpg-agent/Portfile | 189 +---------
security/gpg-agent/files/gpg-agent.plist.default | 55 ---
.../patch-agent_agent.h-strndup-compat-10.6.diff | 33 --
.../files/patch-agent_gpg-agent.c-launchd.diff | 384 ---------------------
security/gpg-agent/files/patch-gl_stdint__h.diff | 15 -
security/gpg-agent/files/patch-po_Makevars.diff | 11 -
18 files changed, 129 insertions(+), 1122 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg/Portfile b/mail/gnupg/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5475e25..5a4dff2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/gnupg/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,64 +2,47 @@
</span>
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Remove after 11-10-2018.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![catch {set installed [lindex [registry_active gnupg] 0]}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Old gnupg port currently active, replace with gnupg1.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ replaced_by gnupg1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup obsolete 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Old gnupg port NOT active, which means that this can't be an upgrade.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Error out and offer a sane error message.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Do NOT use replaced_by/the obsolete PortGroup here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ homepage https://www.macports.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ archive_sites
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_extract
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_fetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${subport} has been deprecated. If you absolutely\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ want to stay on the classic version, install the gnupg1\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port. All other users are recommended to install\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gnupg2."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "obsolete port"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> name gnupg
version 1.4.22
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories mail security
<span style='display:block; white-space:pre;background:#ffe0e0;'>-license GPL-3+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-installs_libs no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers ionic openmaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description GNU Privacy Guard version 1.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description GnuPG is a complete and free replacement for PGP. Because \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- it does not use the patented IDEA algorithm, it can be used \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- without any restrictions. GnuPG is a RFC4880 (OpenPGP) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compliant application.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage https://www.gnupg.org
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin freebsd sunos
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites gnupg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts gnupg21
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 570106363beacbb2bb514dcf869aa335c292dffd \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 9594a24bec63a21568424242e3f198b9d9828dea5ff0c335e47b06f835f930b4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 4bad84fba712626cbbd5adf20988788028c5a5a6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --infodir=${prefix}/share/info \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --disable-asm \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-libiconv-prefix=${prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-libintl-prefix=${prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-zlib=${prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-bzip2=${prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-libusb=${prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-ldap=${prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-libcurl=${prefix}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:libiconv \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gettext \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:readline \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:zlib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:bzip2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libusb-compat \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:openldap \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:curl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.dir ${worksrcpath}/checks
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target check
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# clang defaults to c99, and gnupg doesn't play nicely
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {[string match *clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.cflags-append -std=gnu89
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-gpg_agent-launchd.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platform sunos {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-delete --disable-asm
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {jann @roederja} {ionic @ionic} openmaintainer
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url https://www.gnupg.org/ftp/gcrypt/gnupg/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex ${name}-(1\\.\\d+\\.\\d+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Obsolete port, choose either gnupg1 or gnupg2.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description This port is obsolete. If an old gnupg port has been \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ previously installed, it will upgrade you to the gnupg1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port. Otherwise, please install gnupg2.
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg/files/patch-gpg_agent-launchd.diff b/mail/gnupg/files/patch-gpg_agent-launchd.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 08e3374..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg/files/patch-gpg_agent-launchd.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,21 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- g10/passphrase.c.old 2016-04-22 09:30:18.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ g10/passphrase.c 2016-08-30 03:16:32.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -324,6 +324,7 @@ agent_open (int try, const char *orig_co
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infostr = xstrdup ( infostr );
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifndef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if ( !(p = strchr (infostr, PATHSEP_C)) || p == infostr)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (!try)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -343,6 +344,10 @@ agent_open (int try, const char *orig_co
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- while (*p && *p != PATHSEP_C)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- p++;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- prot = *p? atoi (p+1) : 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pid = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ prot = 1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (prot != 1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (!try)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg/Portfile b/mail/gnupg1/Portfile
</span>similarity index 60%
copy from mail/gnupg/Portfile
copy to mail/gnupg1/Portfile
<span style='display:block; white-space:pre;color:#808080;'>index 5475e25..3c793a5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/gnupg1/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,12 +2,13 @@
</span>
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-name gnupg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set my_name gnupg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name ${my_name}1
</span> version 1.4.22
categories mail security
license GPL-3+
installs_libs no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers ionic openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {ionic @ionic} openmaintainer
</span> description GNU Privacy Guard version 1.4
long_description GnuPG is a complete and free replacement for PGP. Because \
it does not use the patented IDEA algorithm, it can be used \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,14 +16,15 @@ long_description GnuPG is a complete and free replacement for PGP. Because \
</span> compliant application.
homepage https://www.gnupg.org
platforms darwin freebsd sunos
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites gnupg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts gnupg21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${my_name}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ${my_name}:${my_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts ${my_name}2
</span>
use_bzip2 yes
checksums rmd160 570106363beacbb2bb514dcf869aa335c292dffd \
sha256 9594a24bec63a21568424242e3f198b9d9828dea5ff0c335e47b06f835f930b4 \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 4bad84fba712626cbbd5adf20988788028c5a5a6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 3746546
</span>
configure.args --infodir=${prefix}/share/info \
--disable-asm \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,14 +54,31 @@ if {[string match *clang* ${configure.compiler}]} {
</span> configure.cflags-append -std=gnu89
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-gpg_agent-launchd.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> platform sunos {
configure.args-delete --disable-asm
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+notes {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ This port is the legacy 1.4 release of GnuPG.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ While this release is still maintained, it is also deprecated\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and less useful than it was before, since agent and dirmngr\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ support have been removed.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Basic functionality like signature checking or encryption\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and decryption might still work, if the algorithms employed\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ are supported, but users are highly recommended to switch to\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the modern version of GnuPG, provided by the gnupg2 port.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ This port will be made co-installable with the modern version\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ in mid-October 2018. All binaries will be postfixed with "1"\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and dependents switched over to pull in modern GnuPG,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ eventually forcing an upgrade. After this date, this port will\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ still be provided for users that need to work on old data,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ which is not supported by the modern version any longer, but\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ not used within MacPorts.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> livecheck.type regex
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url https://www.gnupg.org/ftp/gcrypt/gnupg/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex ${name}-(1\\.\\d+\\.\\d+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url https://www.gnupg.org/ftp/gcrypt/${my_name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex ${my_name}-(1(?:\\.\\d+)+)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg2/Portfile b/mail/gnupg2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 26e2bb4..abdbc9f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/gnupg2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,86 +2,82 @@
</span>
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# When updating gnupg2, update gpg-agent also if applicable.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-name gnupg2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.0.30
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set my_name gnupg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name ${my_name}2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.2.1
</span> categories mail security
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers ionic openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {jann @roederja} {ionic @ionic} openmaintainer
</span> license GPL-3+
installs_libs no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-description GNU Privacy Guard version 2.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description GNU Privacy Guard
</span> long_description GnuPG is a complete and free replacement for PGP. Because \
it does not use the patented IDEA algorithm, it can be used \
without any restrictions. GnuPG is a RFC4880 (OpenPGP) \
compliant application.
homepage https://www.gnupg.org
platforms darwin freebsd sunos
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname gnupg-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites gnupg:gnupg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts gnupg21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts ${my_name}1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${my_name}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ${my_name}:${my_name}
</span>
use_bzip2 yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 7d682c3e0e1c188d026519b0511ecde6a0cc6bd7 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 4e7f2b75d2aaaee0ea2afe982361460733e68eea \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 34d70cd65b9c95f3f2f90a9f5c1e0b6a0fe039a8d685e2d66d69c33d1cbf62fb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 6537959
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# gpg-agent is built separately from the rest of gnupg2 to enable gnupg 1.x
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# users to use gpg-agent as well.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# gnupg2, however, requires gpg-agent to run, and so gnupg2 depends on gpg-agent.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --disable-agent \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --without-adns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset pinentry] && ![variant_isset pinentry_mac]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Automatically switch between pinentry and pinentry-mac, with pinentry-mac being
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # preferred.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # 10.7 and below are not supported by pinentry-mac, though, and will default to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # pinentry. Just like pure darwin without OS X will.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.subplatform} ne "macosx" ||
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${xcodeversion} eq "none" ||
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [vercmp ${xcodeversion} {5.0}] < 0 ||
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${os.major} < 12 || (![catch {registry_active pinentry}] &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [catch {registry_active pinentry-mac}])} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +pinentry
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +pinentry_mac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
depends_lib port:libiconv \
port:gettext \
port:zlib \
port:bzip2 \
port:bison \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gpg-agent \
</span> port:libassuan \
port:libksba \
port:libgcrypt \
port:libgpg-error \
port:openldap \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:pth \
</span> port:readline \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:curl \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libusb-compat
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-common-homedir.c.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-configure.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-tests__openpgp__Makefile.in.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Recent clang versions include the system stdint.h header
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# and we don't need quirks for "esoteric" systems, so
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# we simply include the system header.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-gl_stdint__h.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gnutls \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libusb-compat \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:npth
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-gpg_agent-launchd.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/bin/gpg ${destroot}${prefix}/bin/gpg2
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/common/homedir.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant pinentry conflicts pinentry_mac description {Handle user input via pinentry.} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:pinentry
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-pinentry-pgm=${prefix}/bin/pinentry
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${destroot}${prefix}/share/man/man1/gpg-zip.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant pinentry_mac conflicts pinentry description {Handle user input via pinentry-mac. Only compatible with OS X 10.8+.} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:pinentry-mac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-pinentry-pgm=${applications_dir}/pinentry-mac.app/Contents/MacOS/pinentry-mac
</span> }
test.run yes
test.dir ${worksrcpath}/tests
test.target check
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# See also the post-patch above.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Apparently we have no way of forcing gnupg2 to build without DirMngr support,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# so we have to just hope we don't run into any problems.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant dirmngr description {Enable the use of DirMngr by gpgsm} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:dirmngr
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.type regex
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url https://gnupg.org/ftp/gcrypt/gnupg/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex gnupg-(2\\.0\\.\\d+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url https://gnupg.org/ftp/gcrypt/${my_name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg2/files/patch-common-homedir.c.diff b/mail/gnupg2/files/patch-common-homedir.c.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 5b5d393..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg2/files/patch-common-homedir.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- common/homedir.c.old 2015-02-24 20:45:39.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ common/homedir.c 2015-02-24 20:47:12.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -472,7 +472,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return name;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #else /*!HAVE_W32_SYSTEM*/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- return "/var/run/dirmngr/socket";
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return "@PREFIX@/var/run/dirmngr/socket";
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif /*!HAVE_W32_SYSTEM*/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg2/files/patch-configure.diff b/mail/gnupg2/files/patch-configure.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 8967c89..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg2/files/patch-configure.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- configure.old 2016-03-31 12:48:08.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ configure 2016-06-02 07:08:54.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -578,7 +578,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- MAKEFLAGS=
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Identity of this package.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--PACKAGE_NAME='gnupg'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+PACKAGE_NAME='gnupg2'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PACKAGE_TARNAME='gnupg'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PACKAGE_VERSION='2.0.30'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PACKAGE_STRING='gnupg 2.0.30'
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg2/files/patch-gl_stdint__h.diff b/mail/gnupg2/files/patch-gl_stdint__h.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 1d1c7c0..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg2/files/patch-gl_stdint__h.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,15 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- gl/stdint_.h.orig 2015-02-17 06:00:57.000000000 -0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ gl/stdint_.h 2015-06-15 11:47:56.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -38,11 +38,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- diagnostics. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # define __STDINT_H__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- /* Other systems may have an incomplete or buggy <stdint.h>.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- Include it before <inttypes.h>, since any "#include <stdint.h>"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- in <inttypes.h> would reinclude us, skipping our contents because
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- _GL_STDINT_H is defined. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--# include @ABSOLUTE_STDINT_H@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# include_next <stdint.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* <sys/types.h> defines some of the stdint.h types as well, on glibc,
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg2/files/patch-gpg_agent-launchd.diff b/mail/gnupg2/files/patch-gpg_agent-launchd.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index bf7758b..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg2/files/patch-gpg_agent-launchd.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,114 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- agent/gpg-agent.c.old 2016-03-31 12:46:07.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ agent/gpg-agent.c 2016-06-02 07:26:26.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -2505,6 +2505,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infostr = xstrdup (infostr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifndef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if ( !(p = strchr (infostr, PATHSEP_C)) || p == infostr)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xfree (infostr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -2530,6 +2531,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return 0; /* Okay, its running on the standard socket. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ // Currently unused by assuan.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pid = (pid_t) (-1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ prot = 1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else /* MODE != 0 */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- common/asshelp.c.old 2016-03-24 17:32:51.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ common/asshelp.c 2016-06-02 07:26:26.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -398,6 +398,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int pid;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infostr = xstrdup (infostr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifndef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if ( !(p = strchr (infostr, PATHSEP_C)) || p == infostr)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- log_error (_("malformed GPG_AGENT_INFO environment variable\n"));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -418,6 +419,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- force_pipe_server = 1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- goto restart;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ // Currently unused by assuan.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pid = (pid_t) (-1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ prot = 1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- err = assuan_socket_connect (ctx, infostr, pid, 0);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xfree (infostr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- common/simple-pwquery.c.old 2016-03-24 17:32:51.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ common/simple-pwquery.c 2016-06-02 07:26:26.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -345,19 +345,27 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- strcpy (p, infostr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infostr = p;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifndef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if ( !(p = strchr ( infostr, PATHSEP_C)) || p == infostr
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- || (p-infostr)+1 >= sizeof client_addr.sun_path )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (((p-infostr) + 1) >= sizeof (client_addr.sun_path))
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef SPWQ_USE_LOGGING
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- log_error ( _("malformed GPG_AGENT_INFO environment variable\n"));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return SPWQ_NO_AGENT;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifndef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *p++ = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- while (*p && *p != PATHSEP_C)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- p++;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- prot = *p? atoi (p+1) : 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ prot = 1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if ( prot != 1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef SPWQ_USE_LOGGING
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- tools/gpg-connect-agent.c.old 2016-03-24 17:32:51.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ tools/gpg-connect-agent.c 2016-06-02 07:26:26.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -2163,6 +2163,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int pid;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infostr = xstrdup (infostr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifndef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if ( !(p = strchr (infostr, PATHSEP_C)) || p == infostr)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- log_error (_("malformed GPG_AGENT_INFO environment variable\n"));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -2174,6 +2175,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- while (*p && *p != PATHSEP_C)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- p++;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- prot = *p? atoi (p+1) : 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ // Currently unused by assuan.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pid = (pid_t) (-1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ prot = 1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (prot != 1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- log_error (_("gpg-agent protocol version %d is not supported\n"),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- tools/gpgconf.c.old 2016-03-24 17:32:51.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ tools/gpgconf.c 2016-06-02 07:26:26.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -317,6 +317,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- char *tmp;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infostr = xstrdup (infostr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifndef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- tmp = strchr (infostr, PATHSEP_C);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (!tmp || tmp == infostr)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -325,6 +326,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *tmp = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fprintf (outfp, "agent-socket:%s\n",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- infostr? gc_percent_escape (infostr) : "");
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg2/files/patch-tests__openpgp__Makefile.in.diff b/mail/gnupg2/files/patch-tests__openpgp__Makefile.in.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index e57ab57..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg2/files/patch-tests__openpgp__Makefile.in.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,16 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- tests/openpgp/Makefile.in.old 2015-02-24 20:53:44.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ tests/openpgp/Makefile.in 2015-02-24 20:54:20.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -378,11 +378,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Programs required before we can run these tests.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--required_pgms = ../../g10/gpg2 ../../agent/gpg-agent \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+required_pgms = ../../g10/gpg2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ../../tools/gpg-connect-agent
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) GPG_AGENT_INFO= LC_ALL=C \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- ../../agent/gpg-agent --quiet --daemon sh
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ gpg-agent --quiet --daemon sh
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- TESTS = version.test mds.test \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- decrypt.test decrypt-dsa.test \
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/gnupg21/Portfile b/mail/gnupg21/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d7aa57e..b7e2f90 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/gnupg21/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/gnupg21/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,82 +2,12 @@
</span>
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Remove after 11-10-2018.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+replaced_by gnupg2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup obsolete 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> name gnupg21
version 2.1.23
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories mail security
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers jann ionic openmaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license GPL-3+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-installs_libs no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description GNU Privacy Guard version 2.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description GnuPG is a complete and free replacement for PGP. Because \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- it does not use the patented IDEA algorithm, it can be used \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- without any restrictions. GnuPG is a RFC4880 (OpenPGP) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compliant application.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage https://www.gnupg.org
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin freebsd sunos
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts gnupg2 gnupg gpg-agent dirmngr
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname gnupg-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites gnupg:gnupg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 622eef6554d77c2e0a2c04bd16dcebfbee2265ad \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 a94476391595e9351f219188767a9d6ea128e83be5ed3226a7890f49aa2d0d77 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 c470777eaa9657ef3258068507065c9a7caef9eb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-notes "GPG 2.1 uses a new format for its key files. Therefore you cannot\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- use it together with any earlier version of GPG. Neither can you easily go\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- back to an older version as the old version cannot read the new format."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset pinentry] && ![variant_isset pinentry_mac]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Automatically switch between pinentry and pinentry-mac, with pinentry-mac being
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # preferred.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # 10.7 and below are not supported by pinentry-mac, though, and will default to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # pinentry. Just like pure darwin without OS X will.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.subplatform} ne "macosx" ||
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${xcodeversion} eq "none" ||
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [vercmp ${xcodeversion} {5.0}] < 0 ||
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${os.major} < 12 || (![catch {registry_active pinentry}] &&
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [catch {registry_active pinentry-mac}])} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants-append +pinentry
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants-append +pinentry_mac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:libiconv \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gettext \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:zlib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:bzip2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:bison \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libassuan \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libksba \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libgcrypt \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libgpg-error \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:openldap \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:readline \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gnutls \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libusb-compat \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:npth
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant pinentry conflicts pinentry_mac description {Handle user input via pinentry.} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:pinentry
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-pinentry-pgm=${prefix}/bin/pinentry
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant pinentry_mac conflicts pinentry description {Handle user input via pinentry-mac. Only compatible with OS X 10.8+.} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:pinentry-mac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-pinentry-pgm=${applications_dir}/pinentry-mac.app/Contents/MacOS/pinentry-mac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.dir ${worksrcpath}/tests
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target check
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url https://gnupg.org/ftp/gcrypt/gnupg/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex gnupg-(2\\.1\\.\\d+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {jann @roederja} {ionic @ionic} openmaintainer
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/dirmngr/Portfile b/security/dirmngr/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index bdfd93a..147cd09 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/dirmngr/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/dirmngr/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,52 +2,12 @@
</span>
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Remove after 11-10-2018.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+replaced_by gnupg2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup obsolete 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> name dirmngr
version 1.1.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span> categories security mail
<span style='display:block; white-space:pre;background:#ffe0e0;'>-license GPL-2+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description X.509 certificate directory manager for GnuPG
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description Dirmngr is a server for managing and downloading certificate \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- revocation lists (CRLs) for X.509 certificates and for downloading \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- the certificates themselves. Dirmngr also handles OCSP requests as \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- an alternative to CRLs. Dirmngr is either invoked internaly by \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- gpgsm (from gnupg 1.9) or when running as a system daemon through \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- the dirmngr-client tool.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://www.gnupg.org
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites gnupg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts gnupg21
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 f376b6cc874e275a11093dac0db6f9dc1c78d548 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 d2280b8c314db80cdaf101211a47826734443436f5c3545cc1b614c50eaae6ff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-dirmngr-pth-fix.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:libiconv \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gettext \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libassuan \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libksba \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libgcrypt \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libgpg-error \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:pth \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:openldap
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.dir ${worksrcpath}/tests
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target check
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Get around the fact that Darwin linker complains about multiply defined
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# symbols since DirMngr doesn't currently test for presence strcasecmp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.cflags-append -DHAVE_STRCASECMP=1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Do something to fix the fact that, for some reason, -llber is required
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.env-append LDAPLIBS="-lldap -llber"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url https://gnupg.org/ftp/gcrypt/${name}/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {ionic @ionic} openmaintainer
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/dirmngr/files/patch-dirmngr-pth-fix.diff b/security/dirmngr/files/patch-dirmngr-pth-fix.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 6f064b2..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/dirmngr/files/patch-dirmngr-pth-fix.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,18 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://bugs.g10code.com/gnupg/issue1590
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Index: src/dirmngr.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-===================================================================
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/dirmngr.c (revision 348)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/dirmngr.c (working copy)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -665,8 +665,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- the option parsing may need services of the libraries. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* Libgcrypt requires us to register the threading model first.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- Note that this will also do the pth_init. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Note that this will also do the pth_init for libgcrypt < 1.6 */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if GCRYPT_VERSION_NUMBER >= 0x010600
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pth_init ();
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* Init Libgcrypt. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rc = gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pth);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (rc)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/gpg-agent/Portfile b/security/gpg-agent/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b2aa4bd..3a47e7a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/gpg-agent/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/gpg-agent/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,189 +2,12 @@
</span>
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# When updating gpg-agent, update gnupg2 also if applicable.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Remove after 11-10-2018.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+replaced_by gnupg2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup obsolete 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> name gpg-agent
version 2.0.30
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories security mail
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers ionic openmaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license GPL-3+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-installs_libs no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description GPG key agent
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description gpg-agent is a key management agent similar \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- in function to ssh-agent.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://www.gnupg.org
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin freebsd sunos
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname gnupg-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dist_subdir gnupg2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites gnupg:gnupg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts gnupg21
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 7d682c3e0e1c188d026519b0511ecde6a0cc6bd7 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-startupitem.location \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LaunchAgents
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set launchd_dir ${prefix}/etc/${startupitem.location}/${startupitem.uniquename}/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --enable-agent-only
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:libiconv \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gettext \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:zlib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:bzip2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:bison \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libassuan \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libksba \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libgcrypt \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libgpg-error \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:pth
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-po_Makevars.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Recent clang versions include the system stdint.h header
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# and we don't need quirks for "esoteric" systems, so just
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# we simply include the system header.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-gl_stdint__h.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# DO NOT USE. Maintainer-only helper for debugging purposes. DO NOT USE.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#configure.cflags-append -g3 -ggdb3 -gdwarf-2 -O0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset pinentry] && ![variant_isset pinentry_mac]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Automatically switch between pinentry and pinentry-mac, with pinentry-mac being
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # preferred.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # 10.7 and below are not supported by pinentry-mac, though, and will default to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # pinentry. Just like pure darwin without OS X will.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.subplatform} ne "macosx" ||
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${xcodeversion} eq "none" ||
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [vercmp ${xcodeversion} {5.0}] < 0 ||
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${os.major} < 12 || (![catch {registry_active pinentry}] &&
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [catch {registry_active pinentry-mac}])} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants-append +pinentry
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants-append +pinentry_mac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-agent_gpg-agent.c-launchd.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.cflags-append -F/System/Library/Frameworks/CoreFoundation.framework \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -D__APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-agent_agent.h-strndup-compat-10.6.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [tbool startupitem.install] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- notes-append "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- A startup item has been installed that will aid in\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- starting ${name} with launchd. It is disabled by\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default. Execute the following command to launch\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${name} at user login:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- launchctl load -w /Library/${startupitem.location}/${startupitem.plist}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- To actually start ${name}, log out and back in.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- notes-append "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- A startup item was not installed for ${name}.\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Some programs which depend on ${name} might not\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- function properly, most notably eMail clients.\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Execute the following command to launch ${name} at user login:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- launchctl load -w ${launchd_dir}/${startupitem.plist}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- To actually start ${name}, log out and back in.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-extract {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 -W ${filespath} gpg-agent.plist.default ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W "${worksrcpath}" "s|@PREFIX@|${prefix}|g" gpg-agent.plist.default
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W "${worksrcpath}" "s|@LABEL@|${startupitem.uniquename}|g" gpg-agent.plist.default
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.platform} eq "darwin"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset ssh_agent]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Remove lines with @SSH_SUPPORT@ in them.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Uncomments sections.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W "${worksrcpath}" "/@SSH_SUPPORT@/d" gpg-agent.plist.default
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Simply remove all @SSH_SUPPORT@ strings to comment out these sections.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W "${worksrcpath}" "s|@SSH_SUPPORT@||g" gpg-agent.plist.default
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Prevent conflict with gnupg2 port.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${destroot}${prefix}/share/doc/gnupg/README
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.platform} eq "darwin"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${launchd_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 444 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/gpg-agent.plist.default \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${launchd_dir}${startupitem.plist}.default
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-activate {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.platform} eq "darwin"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${launchd_dir}${startupitem.plist}.default \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${launchd_dir}${startupitem.plist}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # install the plist, if startupitem.install is set
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[tbool startupitem.install]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -sf "${launchd_dir}${startupitem.plist}" "/Library/${startupitem.location}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-deactivate {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.platform} eq "darwin"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${launchd_dir}${startupitem.plist}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [tbool startupitem.install] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete "/Library/${startupitem.location}/${startupitem.plist}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant pinentry conflicts pinentry_mac description {Handle user input via pinentry.} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:pinentry
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-pinentry-pgm=${prefix}/bin/pinentry
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant pinentry_mac conflicts pinentry description {Handle user input via pinentry-mac. Only compatible with OS X 10.8+.} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:pinentry-mac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-pinentry-pgm=${applications_dir}/pinentry-mac.app/Contents/MacOS/pinentry-mac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant ssh_agent description {Enables SSH agent support.} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- notes-append "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- You have enabled the optional SSH agent feature.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- This only has an effect on Darwin-based platforms.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- It is your responsiblity to disable any other SSH agent\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- so that this feature has a chance to actually work.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Please note that this feature is untested.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url https://gnupg.org/ftp/gcrypt/gnupg/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex gnupg-(2\\.0\\.\\d+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {ionic @ionic} openmaintainer
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/gpg-agent/files/gpg-agent.plist.default b/security/gpg-agent/files/gpg-agent.plist.default
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 2cc0093..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/gpg-agent/files/gpg-agent.plist.default
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,55 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-<?xml version="1.0" encoding="UTF-8"?>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-<plist version="1.0">
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-<dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>Label</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>@LABEL@</string>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <!-- Please uncomment on 10.4; OnDemand doesn't work properly there. -->
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <!--
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>OnDemand</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <false />
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -->
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>ProgramArguments</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <array>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>@PREFIX@/bin/gpg-agent</string>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>--write-env-file</string>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>--no-use-standard-socket</string>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>--launchd</string>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <!--@SSH_SUPPORT@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>--enable-ssh-support</string>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- @SSH_SUPPORT@-->
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- </array>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>RunAtLoad</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <true/>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <!-- Restart the job, should it crash. -->
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>KeepAlive</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>SuccessfulExit</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <false />
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- </dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>ServiceIPC</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <true/>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>Sockets</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>Listeners_agent</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>SecureSocketWithKey</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>GPG_AGENT_INFO</string>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- </dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <!--@SSH_SUPPORT@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>Listeners_ssh</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <key>SecureSocketWithKey</key>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>SSH_AUTH_SOCK</string>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- </dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- @SSH_SUPPORT@-->
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- </dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-</dict>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-</plist>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/gpg-agent/files/patch-agent_agent.h-strndup-compat-10.6.diff b/security/gpg-agent/files/patch-agent_agent.h-strndup-compat-10.6.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0536d9e..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/gpg-agent/files/patch-agent_agent.h-strndup-compat-10.6.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,33 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- agent/agent.h.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ agent/agent.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -35,6 +35,30 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "../common/sysutils.h" /* (gnupg_fd_t) */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "../common/session-env.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+/* strndup is not available on 10.6 and below, define a compat version here. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+/* shameless copy from libiberty. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <stddef.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+static inline char *strndup (const char *s, size_t n) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ char *result;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ size_t len = strlen (s);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (n < len)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ len = n;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ result = (char *) malloc (len + 1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!result)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ result[len] = '\0';
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return (char *) memcpy (result, s, len);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* To convey some special hash algorithms we use algorithm numbers
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reserved for application use. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifndef GCRY_MODULE_ID_USER
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/gpg-agent/files/patch-agent_gpg-agent.c-launchd.diff b/security/gpg-agent/files/patch-agent_gpg-agent.c-launchd.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index f598788..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/gpg-agent/files/patch-agent_gpg-agent.c-launchd.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,384 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- agent/gpg-agent.c.old 2016-01-10 07:26:21.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ agent/gpg-agent.c 2016-01-10 07:28:04.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -47,6 +47,79 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <unistd.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <signal.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <pth.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# include <launch.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+extern char **environ;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# define GPG_ENV_SOCKET_AGENT "GPG_AGENT_INFO"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# define GPG_ENV_SOCKET_SSH "SSH_AUTH_SOCK"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# define GPG_ENV_PID_SSH "SSH_AGENT_PID"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# define GPG_SOCKET_NAME_AGENT "Listeners_agent"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# define GPG_SOCKET_NAME_SSH "Listeners_ssh"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# define PASS_ENV_VAR_TO_LAUNCHD(KEY, VALUE) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+do \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ { \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_t resp, msg, tmp, tmp_value; \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ msg = launch_data_alloc (LAUNCH_DATA_DICTIONARY); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ tmp = launch_data_alloc (LAUNCH_DATA_DICTIONARY); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!VALUE || !KEY || (strlen (KEY) == 0)) { \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("invalid key or value given: `" #KEY "', `" #VALUE "'.\n"); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ } \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ char *value_start = strchr (VALUE, '='); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!value_start) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ value_start = VALUE; \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ else \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ++value_start; \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ tmp_value = launch_data_new_string (value_start); /* Skip variable name \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * and equal sign */ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_dict_insert (tmp, tmp_value, KEY); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_dict_insert (msg, tmp, "SetUserEnvironment"); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ resp = launch_msg (msg); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!resp) { \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("failed to pass environment variable `" KEY "' to launchd: %s\n", \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ strerror (errno)); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ } \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_free (resp); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_free (msg); /* Do NOT launch_data_free() neither on tmp, nor tmp_value */ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ } \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+while (0)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# define REMOVE_ENV_VAR_FROM_LAUNCHD(ENV_VAR_NAME) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+do \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ { \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_t resp, msg, tmp; \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ msg = launch_data_alloc (LAUNCH_DATA_DICTIONARY); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!ENV_VAR_NAME || (strlen (ENV_VAR_NAME) == 0)) { \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("invalid environment variable name given: `" #ENV_VAR_NAME "'.\n"); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ } \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ tmp = launch_data_new_string (ENV_VAR_NAME); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_dict_insert (msg, tmp, "UnsetUserEnvironment"); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ resp = launch_msg (msg); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!resp) { \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("failed to remove environment variable `" ENV_VAR_NAME "' from launchd: %s\n", \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ strerror (errno)); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ } \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_free (resp); \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_free (msg); /* Do NOT launch_data_free() on tmp */ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ } \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+while (0)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif // __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define JNLIB_NEED_LOG_LOGV
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define JNLIB_NEED_AFLOCAL
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -85,6 +158,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- oLogFile,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- oServer,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- oDaemon,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ oLaunchd,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- oBatch,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- oPinentryProgram,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -134,6 +210,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- { 301, NULL, 0, N_("@Options:\n ") },
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- { oDaemon, "daemon", 0, N_("run in daemon mode (background)") },
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ { oLaunchd, "launchd", 0, N_("run controlled by launchd (foreground)") },
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- { oServer, "server", 0, N_("run in server mode (foreground)") },
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- { oVerbose, "verbose", 0, N_("verbose") },
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- { oQuiet, "quiet", 0, N_("be somewhat more quiet") },
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -478,6 +557,19 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- remove_socket (socket_name);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- remove_socket (socket_name_ssh);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* Remove environment variables from launchd. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* launchd handles this. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /*
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ REMOVE_ENV_VAR_FROM_LAUNCHD (GPG_ENV_SOCKET_AGENT);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ REMOVE_ENV_VAR_FROM_LAUNCHD (GPG_ENV_SOCKET_SSH);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ REMOVE_ENV_VAR_FROM_LAUNCHD (GPG_ENV_PID_SSH);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif // __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -603,6 +695,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int nogreeting = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int pipe_server = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int is_daemon = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ int launchd_child = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int nodetach = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int csh_style = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- char *logfile = NULL;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -823,6 +918,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case oSh: csh_style = 0; break;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case oServer: pipe_server = 1; break;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case oDaemon: is_daemon = 1; break;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ case oLaunchd: launchd_child = 1; break;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case oDisplay: default_display = xstrdup (pargs.r.ret_str); break;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case oTTYname: default_ttyname = xstrdup (pargs.r.ret_str); break;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -865,6 +963,19 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default : pargs.err = configfp? 1:2; break;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* When running under launchd control, only start for real users, i.e., UID >= 500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ *
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * Do this check early to avoid filling logs. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (launchd_child && geteuid () < 500)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("launchd only supported for real users - i.e., UID >= 500.\nTrying to start for user ID %d\n", geteuid ());
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (configfp)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fclose( configfp );
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -992,7 +1103,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* If this has been called without any options, we merely check
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- whether an agent is already running. We do this here so that we
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- don't clobber a logfile but print it directly to stderr. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!pipe_server && !is_daemon && !launchd_child)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (!pipe_server && !is_daemon)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- log_set_prefix (NULL, JNLIB_LOG_WITH_PREFIX);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- check_for_running_agent (0, 0);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1054,6 +1169,209 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- agent_deinit_default_ctrl (ctrl);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xfree (ctrl);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ else if (launchd_child)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ { /* launchd-compatible mode */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ gnupg_fd_t fd, fd_ssh = GNUPG_INVALID_FD;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pid_t pid;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* Remove the DISPLAY variable so that a pinentry does not
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * default to a specific display. There is still a default
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * display when gpg-agent was started using --display or a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * client requested this using an OPTION command. Note, that we
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * don't do this when running in reverse daemon mode (i.e., when
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * execcuting the program given as arguments). */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!opt.keep_display && !argc)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ unsetenv ("DISPLAY");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fflush (NULL);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pid = getpid ();
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* Must leave SSH support enabled - #46113. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* opt.ssh_support = 0; */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* Fetch socket from launchd. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_t checkin_request, checkin_response;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* EHLO launchd */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if ((checkin_request = launch_data_new_string (LAUNCH_KEY_CHECKIN)) == NULL) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("unable to create launchd checkin string.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* any answer */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if ((checkin_response = launch_msg (checkin_request)) == NULL) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("unable to obtain launchd checkin answer.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* not 250 :( */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (LAUNCH_DATA_ERRNO == launch_data_get_type (checkin_response)) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ int cur_errno = errno;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("launchd checkin failed: %s\n", strerror (cur_errno));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* 250 */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_t socket_dict = launch_data_dict_lookup (checkin_response, LAUNCH_JOBKEY_SOCKETS);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (socket_dict == NULL) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("no sockets returned by launchd.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ size_t need_sockets = 1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ++need_sockets;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ size_t got_sockets = launch_data_dict_get_count (socket_dict);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (got_sockets < need_sockets) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("launchd returned less sockets than necessary. "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ "needed: %zu, given: %zu.\n", need_sockets, got_sockets);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (got_sockets > need_sockets)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_info ("launchd returned more sockets than needed - ignoring extraneous ones.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* Fetch FD array. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_t data_array_agent, data_array_ssh;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if ((data_array_agent = launch_data_dict_lookup (socket_dict, GPG_SOCKET_NAME_AGENT)) == NULL) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("No agent socket defined in launchd plist file.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support &&
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ((data_array_ssh = launch_data_dict_lookup (socket_dict, GPG_SOCKET_NAME_SSH)) == NULL)) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("No ssh socket defined in launchd plist file.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ size_t fd_count_agent, fd_count_ssh;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if ((fd_count_agent = launch_data_array_get_count (data_array_agent)) > 1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_info ("launchd returned more than one file descriptor for the agent socket - ignoring extraneous ones.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ else if (fd_count_agent == 0) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("No file descriptor returned for the agent socket.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* This scope is merely here to easily get rid of "cur". */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_t cur = launch_data_array_get_index (data_array_agent, 0);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fd = launch_data_get_fd (cur);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if ((fd_count_ssh = launch_data_array_get_count (data_array_ssh)) > 1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_info ("launchd returned more than one file descriptor for the SSH socket - ignoring extraneous ones.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ else if (fd_count_ssh == 0) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("No file descriptor returned for the SSH socket.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* This scope is merely here to easily get rid of "cur". */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_t cur = launch_data_array_get_index (data_array_ssh, 0);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fd_ssh = launch_data_get_fd (cur);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ char *gpg_socket = getenv (GPG_ENV_SOCKET_AGENT);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!gpg_socket) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("No agent socket environment variable defined by launchd.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ char *ssh_socket = getenv (GPG_ENV_SOCKET_SSH);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support && !ssh_socket) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("No SSH socket environment variable defined by launchd.\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ socket_name = strndup (gpg_socket, strlen (gpg_socket));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ socket_name_ssh = strndup (ssh_socket, strlen (ssh_socket));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* Remove internal environment variables from launchd. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* launchd handles this. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /*
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ REMOVE_ENV_VAR_FROM_LAUNCHD (GPG_ENV_SOCKET_AGENT);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ REMOVE_ENV_VAR_FROM_LAUNCHD (GPG_ENV_SOCKET_SSH);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_free (checkin_response);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ launch_data_free (checkin_request);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ char *infostr, *infostr_ssh_sock, *infostr_ssh_pid;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* Create the info string: <name>:<pid>:<protocol_version> */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (asprintf (&infostr, GPG_ENV_SOCKET_AGENT "=%s:%lu:1",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ socket_name, (ulong)pid ) < 0) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("out of core\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ kill (pid, SIGTERM);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (asprintf (&infostr_ssh_sock, GPG_ENV_SOCKET_SSH "=%s",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ socket_name_ssh) < 0) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("out of core\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (asprintf (&infostr_ssh_pid, GPG_ENV_PID_SSH "=%u",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pid) < 0) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error ("out of core\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ exit (1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (env_file_name) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ FILE *fp;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fp = fopen (env_file_name, "w");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!fp)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error (_("error creating `%s': %s\n"),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ env_file_name, strerror (errno));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fputs (infostr, fp);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ putc ('\n', fp);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fputs (infostr_ssh_sock, fp);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ putc ('\n', fp);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fputs (infostr_ssh_pid, fp);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ putc ('\n', fp);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fclose (fp);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* Pass environment variables back to launchd. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* launchd handles this. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* PASS_ENV_VAR_TO_LAUNCHD (GPG_ENV_SOCKET_AGENT, infostr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (opt.ssh_support) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ PASS_ENV_VAR_TO_LAUNCHD (GPG_ENV_SOCKET_SSH, infostr_ssh_sock);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ PASS_ENV_VAR_TO_LAUNCHD (GPG_ENV_PID_SSH, infostr_ssh_pid);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ struct sigaction sa;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ sa.sa_handler = SIG_IGN;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ sigemptyset (&sa.sa_mask);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ sa.sa_flags = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ sigaction (SIGPIPE, &sa, NULL);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ handle_connections (fd, fd_ssh);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif // __APPLE_LAUNCHD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else if (!is_daemon)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ; /* NOTREACHED */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/gpg-agent/files/patch-gl_stdint__h.diff b/security/gpg-agent/files/patch-gl_stdint__h.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 1d1c7c0..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/gpg-agent/files/patch-gl_stdint__h.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,15 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- gl/stdint_.h.orig 2015-02-17 06:00:57.000000000 -0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ gl/stdint_.h 2015-06-15 11:47:56.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -38,11 +38,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- diagnostics. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # define __STDINT_H__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- /* Other systems may have an incomplete or buggy <stdint.h>.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- Include it before <inttypes.h>, since any "#include <stdint.h>"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- in <inttypes.h> would reinclude us, skipping our contents because
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- _GL_STDINT_H is defined. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--# include @ABSOLUTE_STDINT_H@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# include_next <stdint.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* <sys/types.h> defines some of the stdint.h types as well, on glibc,
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/gpg-agent/files/patch-po_Makevars.diff b/security/gpg-agent/files/patch-po_Makevars.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 926f521..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/gpg-agent/files/patch-po_Makevars.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- po/Makevars 2006-06-20 16:32:59.000000000 +0000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ po/Makevars.gpg-agent 2007-02-20 01:36:11.000000000 +0000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Makefile variables for PO directory in any package using GNU gettext.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Usually the message domain is the same as the package name.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--DOMAIN = gnupg2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+DOMAIN = gpg-agent
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # These two variables depend on the location of this directory.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- subdir = po
</span></pre><pre style='margin:0'>
</pre>