[128052] trunk/dports/mail/gnupg

ionic at macports.org ionic at macports.org
Tue Nov 11 18:40:18 PST 2014


Revision: 128052
          https://trac.macports.org/changeset/128052
Author:   ionic at macports.org
Date:     2014-11-11 18:40:18 -0800 (Tue, 11 Nov 2014)
Log Message:
-----------
gnupg: apply patch to support gpg-agent started via launchd. #43584

Modified Paths:
--------------
    trunk/dports/mail/gnupg/Portfile

Added Paths:
-----------
    trunk/dports/mail/gnupg/files/
    trunk/dports/mail/gnupg/files/patch-gpg_agent-launchd.diff

Modified: trunk/dports/mail/gnupg/Portfile
===================================================================
--- trunk/dports/mail/gnupg/Portfile	2014-11-12 02:40:12 UTC (rev 128051)
+++ trunk/dports/mail/gnupg/Portfile	2014-11-12 02:40:18 UTC (rev 128052)
@@ -5,6 +5,7 @@
 
 name                gnupg
 version             1.4.18
+revision            1
 categories          mail security
 license             GPL-3+
 installs_libs       no
@@ -70,6 +71,10 @@
     }
 }
 
+platform darwin {
+    patchfiles-append   patch-gpg_agent-launchd.diff
+}
+
 platform sunos {
     configure.args-delete --disable-asm
 }

Added: trunk/dports/mail/gnupg/files/patch-gpg_agent-launchd.diff
===================================================================
--- trunk/dports/mail/gnupg/files/patch-gpg_agent-launchd.diff	                        (rev 0)
+++ trunk/dports/mail/gnupg/files/patch-gpg_agent-launchd.diff	2014-11-12 02:40:18 UTC (rev 128052)
@@ -0,0 +1,21 @@
+--- g10/passphrase.c.old	2014-07-08 05:19:44.000000000 +0200
++++ g10/passphrase.c		2014-07-08 05:26:05.000000000 +0200
+@@ -315,6 +315,7 @@
+       infostr = xstrdup ( infostr );
+     }
+ 
++#ifndef __APPLE__
+   if ( !(p = strchr (infostr, PATHSEP_C)) || p == infostr)
+     {
+       if (!try)
+@@ -334,6 +335,10 @@
+   while (*p && *p != PATHSEP_C)
+     p++;
+   prot = *p? atoi (p+1) : 0;
++#else
++  pid = 0;
++  prot = 1;
++#endif
+   if (prot != 1)
+     {
+       if (!try)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141111/e857cf8d/attachment.html>


More information about the macports-changes mailing list