<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9731c2d8f6813602f8ee7cc4e48390d125bae71d">https://github.com/macports/macports-ports/commit/9731c2d8f6813602f8ee7cc4e48390d125bae71d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 9731c2d8f6813602f8ee7cc4e48390d125bae71d
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Thu Aug 1 04:15:58 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    transmission-qt: backport patch for updated miniupnpc
</span>---
 net/transmission-qt/Portfile                      |  5 ++++-
 net/transmission-qt/files/patch-miniupnpc-18.diff | 20 ++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/transmission-qt/Portfile b/net/transmission-qt/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f3cbc63e3c3..6a9b4db793d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/transmission-qt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/transmission-qt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,7 +14,7 @@ openssl.branch      1.1
</span> # Support for Qt4 has been removed in v. 3.0. It might be possible to restore it though. Until then, 2.94 builds and works.
 name                transmission-qt
 github.setup        transmission transmission 2.94
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> conflicts           transmission-x11
 categories          net p2p
 license             {GPL-2 OpenSSLException}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,6 +43,9 @@ depends_lib-append  port:curl \
</span>                     port:miniupnpc \
                     port:zlib
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Backport of https://github.com/transmission/transmission/commit/febfe49ca3ecab1a7142ecb34012c1f0b2bcdee8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   patch-miniupnpc-18.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append \
                     -DENABLE_CLI=ON \
                     -DENABLE_DAEMON=ON \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/transmission-qt/files/patch-miniupnpc-18.diff b/net/transmission-qt/files/patch-miniupnpc-18.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..827a143e6de
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/transmission-qt/files/patch-miniupnpc-18.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libtransmission/upnp.c 2018-05-02 01:18:29.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libtransmission/upnp.c 2024-08-01 04:05:52.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -219,8 +219,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         devlist = tr_upnpDiscover (2000);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         errno = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        if (UPNP_GetValidIGD (devlist, &handle->urls, &handle->data,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                             handle->lanaddr, sizeof (handle->lanaddr)) == UPNP_IGD_VALID_CONNECTED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        if (
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (MINIUPNPC_API_VERSION >= 18)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        UPNP_GetValidIGD (devlist, &handle->urls, &handle->data,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                             handle->lanaddr, sizeof (handle->lanaddr), NULL, 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        UPNP_GetValidIGD (devlist, &handle->urls, &handle->data,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                             handle->lanaddr, sizeof (handle->lanaddr))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++                             == UPNP_IGD_VALID_CONNECTED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             tr_logAddNamedInfo (getKey (), _(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                          "Found Internet Gateway Device \"%s\""),
</span></pre><pre style='margin:0'>

</pre>