Leonid Plyushch
5 years ago
3 changed files with 38 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||
|
TERMUX_PKG_HOMEPAGE=https://miniupnp.tuxfamily.org/ |
||||
|
TERMUX_PKG_DESCRIPTION="Small UPnP client library and tool to access Internet Gateway Devices" |
||||
|
TERMUX_PKG_LICENSE="BSD" |
||||
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>" |
||||
|
TERMUX_PKG_VERSION=2.1.20190625 |
||||
|
TERMUX_PKG_REVISION=2 |
||||
|
TERMUX_PKG_SRCURL=https://miniupnp.tuxfamily.org/files/miniupnpc-$TERMUX_PKG_VERSION.tar.gz |
||||
|
TERMUX_PKG_SHA256=8723f5d7fd7970de23635547700878cd29a5c2bb708b5e5475b2d1d2510317fb |
||||
|
TERMUX_PKG_BREAKS="miniupnpc-dev" |
||||
|
TERMUX_PKG_REPLACES="miniupnpc-dev" |
||||
|
|
||||
|
termux_step_post_make_install() { |
||||
|
install -Dm700 upnpc-static "$TERMUX_PREFIX/bin/upnpc" |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
diff -uNr miniupnpc-2.1/minissdpc.c miniupnpc-2.1.mod/minissdpc.c
|
||||
|
--- miniupnpc-2.1/minissdpc.c 2018-04-06 13:53:30.000000000 +0300
|
||||
|
+++ miniupnpc-2.1.mod/minissdpc.c 2018-06-26 01:08:05.665993662 +0300
|
||||
|
@@ -195,7 +195,7 @@
|
||||
|
} |
||||
|
#endif /* #ifdef MINIUPNPC_SET_SOCKET_TIMEOUT */ |
||||
|
if(!socketpath) |
||||
|
- socketpath = "/var/run/minissdpd.sock";
|
||||
|
+ socketpath = "@TERMUX_PREFIX@/var/run/minissdpd.sock";
|
||||
|
memset(&addr, 0, sizeof(addr)); |
||||
|
addr.sun_family = AF_UNIX; |
||||
|
strncpy(addr.sun_path, socketpath, sizeof(addr.sun_path)); |
@ -0,0 +1,12 @@ |
|||||
|
diff -uNr miniupnpc-2.1/miniupnpc.c miniupnpc-2.1.mod/miniupnpc.c
|
||||
|
--- miniupnpc-2.1/miniupnpc.c 2018-04-06 13:53:30.000000000 +0300
|
||||
|
+++ miniupnpc-2.1.mod/miniupnpc.c 2018-06-26 01:07:59.089326656 +0300
|
||||
|
@@ -301,7 +301,7 @@
|
||||
|
#if !defined(_WIN32) && !defined(__amigaos__) && !defined(__amigaos4__) |
||||
|
/* first try to get infos from minissdpd ! */ |
||||
|
if(!minissdpdsock) |
||||
|
- minissdpdsock = "/var/run/minissdpd.sock";
|
||||
|
+ minissdpdsock = "@TERMUX_PREFIX@/var/run/minissdpd.sock";
|
||||
|
if(minissdpdsock[0] != '\0') { |
||||
|
for(deviceIndex = 0; deviceTypes[deviceIndex]; deviceIndex++) { |
||||
|
struct UPNPDev * minissdpd_devlist; |
Loading…
Reference in new issue