minissdpd: update to 1.6.0.

This commit is contained in:
Duncaen 2023-01-13 23:21:17 +01:00
parent ca9a8f1fcf
commit e35888657a
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
2 changed files with 13 additions and 14 deletions

View File

@ -1,27 +1,26 @@
diff --git minissdpd.c minissdpd.c
index 6295af9..39dddb6 100644
--- a/minissdpd.c
+++ b/minissdpd.c
@@ -1066,6 +1066,7 @@ int main(int argc, char * * argv)
const char * sockpath = "/var/run/minissdpd.sock";
@@ -1251,6 +1251,7 @@
const char * pidfilename = "/var/run/minissdpd.pid";
#endif
int debug_flag = 0;
+ int foreground_flag = 0;
#ifdef ENABLE_IPV6
int ipv6 = 0;
#endif /* ENABLE_IPV6 */
@@ -1086,6 +1087,8 @@ int main(int argc, char * * argv)
{
if(0==strcmp(argv[i], "-d"))
@@ -1285,6 +1286,9 @@
case 'd':
debug_flag = 1;
+ else if(0==strcmp(argv[i], "-D"))
break;
+ case 'D':
+ foreground_flag = 1;
+ break;
#ifdef ENABLE_IPV6
else if(0==strcmp(argv[i], "-6"))
case '6':
ipv6 = 1;
@@ -1228,7 +1231,7 @@ int main(int argc, char * * argv)
#endif
@@ -1453,7 +1457,7 @@
#ifndef NO_BACKGROUND_NO_PIDFILE
/* daemonize or in any case get pid ! */
- if(debug_flag)
+ if(debug_flag || foreground_flag)

View File

@ -1,7 +1,7 @@
# Template file for 'minissdpd'
pkgname=minissdpd
version=1.5
revision=2
version=1.6.0
revision=1
build_style=gnu-makefile
makedepends="libnfnetlink-devel"
short_desc="MiniSSDP Daemon to speed up UPnP device discovery"
@ -9,7 +9,7 @@ maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://miniupnp.free.fr/minissdpd.html"
distfiles="http://miniupnp.free.fr/files/minissdpd-${version}.tar.gz"
checksum=dfd637b185731e1acb412a86faa9718eb93c04ca08280541a6d22d14d1fb890f
checksum=f4c2dea6a472e0a5cc9dca2dc4c1fc36ba5538eacf8d793825293251725546bd
CFLAGS="-D_GNU_SOURCE"