[packages/dante] - added patch for miniupnpc API 18, release 2
qboosh
qboosh at pld-linux.org
Sun Sep 22 14:29:25 CEST 2024
commit eef0c6d180cec289a2f33fc58c94272e83c24c42
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 22 14:32:28 2024 +0200
- added patch for miniupnpc API 18, release 2
dante-miniupnpc.patch | 14 ++++++++++++++
dante.spec | 4 +++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/dante.spec b/dante.spec
index 84ce66c..ff8f4b0 100644
--- a/dante.spec
+++ b/dante.spec
@@ -7,7 +7,7 @@ Summary: A free Socks v4/v5 client implementation
Summary(pl.UTF-8): Darmowa implementacja klienta Socks v4/5
Name: dante
Version: 1.4.3
-Release: 1
+Release: 2
License: BSD-like
Group: Networking/Daemons
#Source0Download: http://www.inet.no/dante/download.html
@@ -17,6 +17,7 @@ Source1: sockd.init
Patch0: %{name}-am.patch
Patch1: %{name}-build.patch
Patch2: %{name}-cpp.patch
+Patch3: %{name}-miniupnpc.patch
URL: http://www.inet.no/dante/
BuildRequires: autoconf >= 2.61
BuildRequires: automake
@@ -99,6 +100,7 @@ Statyczna biblioteka socks.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
%{__libtoolize}
diff --git a/dante-miniupnpc.patch b/dante-miniupnpc.patch
new file mode 100644
index 0000000..36fdde0
--- /dev/null
+++ b/dante-miniupnpc.patch
@@ -0,0 +1,14 @@
+--- dante-1.4.3/lib/upnp.c.orig 2020-11-11 17:11:55.000000000 +0100
++++ dante-1.4.3/lib/upnp.c 2024-09-22 14:23:31.947200485 +0200
+@@ -208,7 +208,11 @@ socks_initupnp(gw, emsg, emsglen)
+ socks_autoadd_directroute(&commands, &protocols, &saddr, &smask);
+ }
+
++#if MINIUPNPC_API_VERSION < 18
+ devtype = UPNP_GetValidIGD(dev, &url, &data, myaddr, sizeof(myaddr));
++#else
++ devtype = UPNP_GetValidIGD(dev, &url, &data, myaddr, sizeof(myaddr), NULL, 0);
++#endif
+ switch (devtype) {
+ case UPNP_NO_IGD:
+ snprintf(emsg, emsglen, "no UPNP IGD discovered on local network");
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dante.git/commitdiff/eef0c6d180cec289a2f33fc58c94272e83c24c42
More information about the pld-cvs-commit
mailing list