<pre style='margin:0'>
Zero King (l2dy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e8576a4a5e862013890087a49955be4887b67dc6">https://github.com/macports/macports-ports/commit/e8576a4a5e862013890087a49955be4887b67dc6</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 e8576a4 openntpd: update to 6.2p2
</span>e8576a4 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e8576a4a5e862013890087a49955be4887b67dc6
</span>Author: Zero King <l2dy@macports.org>
AuthorDate: Sat Sep 9 06:32:06 2017 +0000
<span style='display:block; white-space:pre;color:#404040;'> openntpd: update to 6.2p2
</span>---
net/openntpd/Portfile | 8 ++--
.../files/patch-support-SOCK_CLOEXEC-on-macOS.diff | 43 ++++++++++++++++++++++
2 files changed, 48 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/openntpd/Portfile b/net/openntpd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fc507fb..00d6292 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/openntpd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/openntpd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,7 +3,7 @@
</span> PortSystem 1.0
name openntpd
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 6.0p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 6.2p2
</span> categories net
license ISC BSD
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,8 +21,10 @@ conflicts ntp
</span> homepage http://www.openntpd.org/
master_sites openbsd:OpenNTPD
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 a07b4c96d843c206550a20f839485c04771916b8 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 b1ab80094788912adb12b33cb1f251cc58db39294c1b5c6376972f5f7ba577e8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 e3293d6e3815dfd0269ce819cf5d0a4aa0bfdbb1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5808a4137b008a4db20907e1a482f474734b120f254e3c5feb90db15e0820fb2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-support-SOCK_CLOEXEC-on-macOS.diff
</span>
startupitem.create yes
startupitem.netchange yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/openntpd/files/patch-support-SOCK_CLOEXEC-on-macOS.diff b/net/openntpd/files/patch-support-SOCK_CLOEXEC-on-macOS.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..1cd5f05
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/openntpd/files/patch-support-SOCK_CLOEXEC-on-macOS.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,43 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/openntpd-portable/openntpd-portable/pull/42
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- compat/socket.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ compat/socket.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,4 +26,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return s;
</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;'>++int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++_socketpair(int domain, int type, int protocol, int socket_vector[2])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int rc = socketpair(domain, type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK), protocol, socket_vector);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int flags, i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (rc == -1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return rc;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for (i = 0; i < 2; i++) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (type & SOCK_CLOEXEC) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ flags = fcntl(socket_vector[i], F_GETFD);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fcntl(socket_vector[i], F_SETFD, flags | FD_CLOEXEC);
</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;'>++ if (type & SOCK_NONBLOCK) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ flags = fcntl(socket_vector[i], F_GETFL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fcntl(socket_vector[i], F_SETFL, flags | O_NONBLOCK);
</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;'>++ return rc;
</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;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/sys/socket.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/sys/socket.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -16,8 +16,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if !defined(SOCK_NONBLOCK) || !defined(SOCK_CLOEXEC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define NEED_SOCKET_FLAGS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int _socket(int domain, int type, int protocol);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int _socketpair(int domain, int type, int protocol, int socket_vector[2]);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef SOCKET_FLAGS_PRIV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define socket(d, t, p) _socket(d, t, p)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define socketpair(d, t, p, s) _socketpair(d, t, p, s)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>