minissdpd: update config.h. Automatically update version in config.h

This commit is contained in:
Thomas Bernard 2018-02-23 15:00:18 +01:00
parent f4a1a5e328
commit 4a4269a673
2 changed files with 20 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.25 2015/08/06 10:17:52 nanard Exp $
# $Id: Makefile,v 1.30 2018/02/23 13:59:44 nanard Exp $
# MiniUPnP project
# author: Thomas Bernard
# website: http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
@ -93,6 +93,17 @@ testcodelength: testcodelength.o
listifaces: listifaces.o upnputils.o
config.h: VERSION
@tmp=`grep -n MINISSDPD_VERSION $@` ; \
line=`echo $$tmp | cut -d: -f1` ; \
old_version=`echo $$tmp | cut -d\\" -f2` ; \
new_version=`cat VERSION` ; \
if [ "$$new_version" != "$$old_version" ] ; then \
echo "updating VERSION in $@ from $$old_version to $$new_version"; \
sed "$${line}s/$${old_version}/$${new_version}/" $@ > $@.temp ; \
mv $@.temp $@ ; \
fi
depend:
makedepend -f$(MAKEFILE_LIST) -Y \
$(ALLOBJS:.o=.c) 2>/dev/null

View File

@ -1,13 +1,13 @@
/* $Id: config.h,v 1.9 2015/08/06 13:16:58 nanard Exp $ */
/* $Id: config.h,v 1.10 2018/02/23 13:58:14 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2015 Thomas Bernard
* (c) 2006-2018 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED
#define MINISSDPD_VERSION "1.4"
#define MINISSDPD_VERSION "1.5"
/* use BSD daemon() ? */
#define USE_DAEMON
@ -18,16 +18,16 @@
/* enable IPv6 */
#define ENABLE_IPV6
/* Maximum number of network interface we can listen on */
#define MAX_IF_ADDR 8
/* The size of unix socket response buffer */
#define RESPONSE_BUFFER_SIZE (1024 * 4)
/* Uncomment the following line in order to make minissdpd
* listen on 1.2.3.4:1900 instead of *:1900
* Note : it prevents broadcast packets to be received,
* at least with linux */
* FOR TESTING PURPOSE ONLY
* Note : it prevents multicast packets to be received,
* at least with linux
* As miniSSDPd needs to receive SSDP packets both multicasted
* and unicasted, we cannot bind to 239.255.255.250 neither */
/*#define SSDP_LISTEN_ON_SPECIFIC_ADDR*/
#endif