Skip to content

Commit

Permalink
miniupnpc: Add patch to fix incorrect install file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Jul 24, 2024
1 parent e227716 commit e277950
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions patches/miniupnpc_install_paths.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
From 056fd6e45586509d3954a2df251c264f38248e01 Mon Sep 17 00:00:00 2001
From: George Tokmaji <tokmajigeorge@gmail.com>
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

2 changes: 2 additions & 0 deletions scripts/miniupnpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e277950

Please sign in to comment.