miniupnpd: update to 2.2.0
authorRosen Penev <rosenp@gmail.com>
Wed, 18 Nov 2020 05:33:46 +0000 (21:33 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 25 Nov 2020 22:10:41 +0000 (14:10 -0800)
Replace daemon patch with upstream solution.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/miniupnpd/Makefile
net/miniupnpd/patches/100-no-daemon.patch [deleted file]

index 8a6f0d4f41fa2cffb9293cc9872ef5bd0670fa2c..44a367e580b7f11176fd934b0edfd3074d9da76d 100644 (file)
@@ -8,13 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=miniupnpd
-PKG_VERSION:=2.1.20200510
-PKG_RELEASE:=5
+PKG_VERSION:=2.2.0
+PKG_RELEASE:=1
 
 PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_HASH:=821e708f369cc1fb851506441fbc3a1f4a1b5a8bf8e84a9e71758a32f5127e8b
+PKG_HASH:=f105210a13ed0ebfc649f661ecc59e0a072cc547b04977851f22b5521b4cadff
 
+PKG_MAINTAINER:=
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:miniupnp_project:miniupnpd
@@ -48,7 +49,8 @@ CONFIGURE_ARGS = \
        --igd2 \
        --leasefile \
        --portinuse \
-       --firewall=iptables
+       --firewall=iptables \
+       --disable-fork
 
 TARGET_CFLAGS += $(FPIC) -flto
 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
diff --git a/net/miniupnpd/patches/100-no-daemon.patch b/net/miniupnpd/patches/100-no-daemon.patch
deleted file mode 100644 (file)
index 9b9c26d..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
---- a/miniupnpd.c
-+++ b/miniupnpd.c
-@@ -1769,21 +1769,7 @@ init(int argc, char * * argv, struct run
-               }
-       }
--      if(debug_flag)
--      {
--              pid = getpid();
--      }
--      else
--      {
--#ifdef USE_DAEMON
--              if(daemon(0, 0)<0) {
--                      perror("daemon()");
--              }
--              pid = getpid();
--#else
--              pid = daemonize();
--#endif
--      }
-+      pid = getpid();
-       openlog_option = LOG_PID|LOG_CONS;
-       if(debug_flag)