<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9a0e665739d62c6263db5fce78969700013014a5">https://github.com/macports/macports-ports/commit/9a0e665739d62c6263db5fce78969700013014a5</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 9a0e665739d openfortivpn: update to 1.22.0, fix for older systems
</span>9a0e665739d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9a0e665739d62c6263db5fce78969700013014a5
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Fri Jun 7 23:53:58 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> openfortivpn: update to 1.22.0, fix for older systems
</span>---
net/openfortivpn/Portfile | 24 ++++++++---
net/openfortivpn/files/patch-fix-configure.diff | 32 ++++++++++++++
net/openfortivpn/files/patch-vdprintf.diff | 57 +++++++++++++++++++++++++
3 files changed, 107 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/openfortivpn/Portfile b/net/openfortivpn/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 15ee51f2918..2891f3ab119 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/openfortivpn/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/openfortivpn/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,8 +2,13 @@
</span>
PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup legacysupport 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup openssl 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup adrienverge openfortivpn 1.20.5 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# memmem
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup adrienverge openfortivpn 1.22.0 v
</span> revision 0
categories net
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,11 +21,18 @@ long_description openfortivpn is a client for PPP+SSL VPN tunnel services. \
</span> between the gateway and this process. It is compatible \
with Fortinet VPNs.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build port:pkgconfig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib path:lib/libssl.dylib:openssl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:bin/pkg-config:pkgconfig
</span>
use_autoreconf yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 b6857267be103437cf96ca783822d7a879e7ce14 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 2c56025983059e879080723180fd41d399c8fbb0ddbdc9b1b86c461edac940d3 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 169453
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 179a94554c7350ae278515f86086de6444438f40 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 473b31d643ecbd227f5cabd800a7bf75b44d262170957418edaa72d64df8fef4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 171460
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fixes from upstream, to be dropped in the next update:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/adrienverge/openfortivpn/commit/371edb5cdbdc53ca1c952cfc180318634e396015
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/adrienverge/openfortivpn/commit/ad9dd8dc1a41af734a3dae4b6ff0e38821227959
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix-configure.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-vdprintf.diff
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/openfortivpn/files/patch-fix-configure.diff b/net/openfortivpn/files/patch-fix-configure.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cf3991beb01
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/openfortivpn/files/patch-fix-configure.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 371edb5cdbdc53ca1c952cfc180318634e396015 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 4 Jun 2024 03:17:44 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] configure.ac: fix header checks for macOS (#1224)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Co-authored-by: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ac | 4 ++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 2 insertions(+), 2 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/configure.ac b/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 9ab62e88..81ed3247 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -58,7 +58,6 @@ fcntl.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ getopt.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifaddrs.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ netdb.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-net/if.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ netinet/in.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ netinet/tcp.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pthread.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -74,7 +73,8 @@ unistd.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [], AC_MSG_ERROR([Required header not found]))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Checks for header files with prerequisites of other headers.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-AC_CHECK_HEADERS([net/route.h], [], AC_MSG_ERROR([Required header not found]), [#include <net/if.h>])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++AC_CHECK_HEADERS([net/if.h], [], AC_MSG_ERROR([Required header not found]), [#include <sys/socket.h>])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++AC_CHECK_HEADERS([net/route.h], [], AC_MSG_ERROR([Required header not found]), [#include <sys/socket.h>], [#include <net/if.h>])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Checks for optional header files.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([ \
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/openfortivpn/files/patch-vdprintf.diff b/net/openfortivpn/files/patch-vdprintf.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..08f345c9f31
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/openfortivpn/files/patch-vdprintf.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,57 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From ad9dd8dc1a41af734a3dae4b6ff0e38821227959 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Dimitri Papadopoulos
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <3234522+DimitriPapadopoulos@users.noreply.github.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Mon, 3 Jun 2024 22:01:42 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Support older mac0S versions that lack vdprintf()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Define and call an alternative vdprintf(), only
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if the genuine vdprintf() does not exist.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ac | 6 +++++-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/userinput.c | 16 ++++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 21 insertions(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/configure.ac b/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 81ed3247..f031aa7a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -166,7 +166,11 @@ write \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [], AC_MSG_ERROR([Required function not found]))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Checks for optional functions.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-AC_CHECK_FUNCS([pthread_mutexattr_setrobust])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++AC_CHECK_FUNCS([ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++pthread_mutexattr_setrobust \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++vdprintf \
</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;'>+ # Use PKG_CHECK_MODULES compiler/linker flags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ save_openssl_CPPFLAGS="${CPPFLAGS}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ save_openssl_LIBS="${LIBS}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/userinput.c b/src/userinput.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index ec19dbe2..53a50255 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/userinput.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/userinput.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -167,6 +167,22 @@ static int pinentry_read(int from, char **retstr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -1;
</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;'>++#ifndef HAVE_VDPRINTF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static int vdprintf(int fd, const char *format, va_list ap)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char buffer[2049];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int size = vsnprintf(buffer, sizeof(buffer), format, ap);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (size < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return size;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (size >= sizeof(buffer)) // silently discard beyond the buffer size
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ size = sizeof(buffer) - 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return (int) write(fd, buffer, size);
</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;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int pinentry_exchange(int to, int from, char **retstr,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char *format, ...)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span></pre><pre style='margin:0'>
</pre>