From e27795089154861da36237a1ed3b89a8e199a0db Mon Sep 17 00:00:00 2001 From: George Tokmaji Date: Wed, 24 Jul 2024 13:56:44 +0200 Subject: [PATCH] miniupnpc: Add patch to fix incorrect install file paths --- patches/miniupnpc_install_paths.patch | 43 +++++++++++++++++++++++++++ scripts/miniupnpc.sh | 2 ++ 2 files changed, 45 insertions(+) create mode 100644 patches/miniupnpc_install_paths.patch diff --git a/patches/miniupnpc_install_paths.patch b/patches/miniupnpc_install_paths.patch new file mode 100644 index 0000000..93a54a0 --- /dev/null +++ b/patches/miniupnpc_install_paths.patch @@ -0,0 +1,43 @@ +From 056fd6e45586509d3954a2df251c264f38248e01 Mon Sep 17 00:00:00 2001 +From: George Tokmaji +Date: Wed, 24 Jul 2024 13:54:11 +0200 +Subject: [PATCH] CMakeLists.txt: Fix install() file paths + +--- + CMakeLists.txt | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0553eeb..6b0904c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -221,16 +221,16 @@ endif () + + if (NOT UPNPC_NO_INSTALL) + install (FILES +- miniupnpc.h +- miniwget.h +- upnpcommands.h +- igd_desc_parse.h +- upnpreplyparse.h +- upnperrors.h +- upnpdev.h +- miniupnpctypes.h +- portlistingparse.h +- miniupnpc_declspec.h ++ include/miniupnpc.h ++ include/miniwget.h ++ include/upnpcommands.h ++ include/igd_desc_parse.h ++ include/upnpreplyparse.h ++ include/upnperrors.h ++ include/upnpdev.h ++ include/miniupnpctypes.h ++ include/portlistingparse.h ++ include/miniupnpc_declspec.h + DESTINATION include/miniupnpc + ) + +-- +2.45.2 + diff --git a/scripts/miniupnpc.sh b/scripts/miniupnpc.sh index fd8a11f..9fc60d5 100644 --- a/scripts/miniupnpc.sh +++ b/scripts/miniupnpc.sh @@ -8,6 +8,8 @@ curl -L https://miniupnp.tuxfamily.org/files/miniupnpc-"$VERSION".tar.gz | tar - pushd miniupnpc-"$VERSION" +patch -p1 <"$PATCH_DIR/miniupnpc_install_paths.patch" + mkdir build pushd build