<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fa4afc1440213f01b68e861608957048758dcf66">https://github.com/macports/macports-ports/commit/fa4afc1440213f01b68e861608957048758dcf66</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new fa4afc1 aircrack-ng: Don't use dprintf on 10.6 or earlier
</span>fa4afc1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fa4afc1440213f01b68e861608957048758dcf66
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sat Dec 28 22:56:22 2019 -0600
<span style='display:block; white-space:pre;color:#404040;'> aircrack-ng: Don't use dprintf on 10.6 or earlier
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/47301
</span>---
security/aircrack-ng/Portfile | 3 +++
security/aircrack-ng/files/dprintf.patch | 33 ++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/aircrack-ng/Portfile b/security/aircrack-ng/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f5cee0f..ca32522 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/aircrack-ng/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/aircrack-ng/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup compiler_blacklist_versions 1.0
</span> PortGroup github 1.0
# strnlen, getline
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/aircrack-ng/aircrack-ng/issues/1682
</span> PortGroup legacysupport 1.0
legacysupport.newest_darwin_requires_legacy 10
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,6 +47,7 @@ depends_lib port:libpcap \
</span> port:sqlite3
patchfiles-append aircrack_ng_mac.m4.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append dprintf.patch
</span>
patchfiles-append VERSION.patch
post-patch {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,6 +55,7 @@ post-patch {
</span> }
# cpuid, cpuid_count, get_cpuid_max
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/aircrack-ng/aircrack-ng/issues/1717
</span> compiler.blacklist-append {clang < 503}
# No configure script in tarball.
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/aircrack-ng/files/dprintf.patch b/security/aircrack-ng/files/dprintf.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..d84457f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/aircrack-ng/files/dprintf.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,33 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Don't use dprintf when the deployment target is 10.6 or earlier; dprintf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+was introduced in 10.7.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/airodump-ng.c.orig 2018-12-09 16:53:44.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/airodump-ng.c 2019-12-28 22:48:14.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -67,6 +67,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pcre.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "version.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "pcap.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "uniqueiv.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6251,7 +6255,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ alarm(1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ G.do_exit = 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ signal(SIGALRM, sighandler);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__sun__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__sun__) || (defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED < 1070)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fprintf(stdout, "\n");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dprintf(STDOUT_FILENO, "\n");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6270,7 +6274,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (signum == SIGALRM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__sun__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__sun__) || (defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED < 1070)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fprintf(stdout,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dprintf(STDERR_FILENO,
</span></pre><pre style='margin:0'>
</pre>