pkgsrc/net/miniupnpd/Makefile

34 lines
953 B
Makefile
Raw Normal View History

2016-06-01 13:36:45 +02:00
# $NetBSD: Makefile,v 1.21 2016/06/01 11:36:45 wiz Exp $
DISTNAME= miniupnpd-1.9.20160222
CATEGORIES= net
MASTER_SITES= http://miniupnp.free.fr/files/download.php?file=
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://miniupnp.free.fr/
COMMENT= UPnP IGD service with NAT-PMP support
Update miniupnpd to 1.6.20120320. per PR 46236 by David Howland. while here, set LICENSE=modified-bsd. 2012/03/19: Fix ipfilter support (thanks dhowland https://github.com/dhowland) 2012/03/14: Changes to miniupnpd.init.d.script by Shawn Landden 2012/03/05: fixed reload_from_lease_file(). 2012/02/15: Change parselanaddr() function to allow 192.168.1.1/255.255.255.0 in configuration file. Change read_permission_line() to allow 192.168.1.1/255.255.255.0 in permission line (in configuration file). 2012/02/12: More syntax checks in upnppermissions.c 2012/02/11: Fix ipfw/Mac OS X specific source files to compile ok with -ansi flag 2012/02/09: Make HTTP listen socket non blocking (so accept() can't block) Make SSDP receive sockets non blocking use sockaddr_to_string() in SendSSDPAnnonce2 to handle IPv6 addresses 2012/02/06: Make HTTP (SOAP) sockets non blocking. 2012/02/05: Compile ok with -ansi flag. Save a few bytes in options.c using a string repository, instead of a fixed size buffer for each option value. 2012/02/04: Added friendly_name= option to config file 2012/02/03: Anchor name (PF) is now configurable through the config file with anchor= Added test of presence of /lib/libip4tc.so and /lib/libip6tc.so files in Makefile.linux in order to add -lip4tc and -lip6tc to LIBS accordingly. 2012/02/01: always handle EAGAIN, EWOULDBLOCK and EINTR after recv()/recvfrom() calls 2012/01/20: Always #include <netinet/in.h> before #include <arpa/inet.h> (for OpenBSD) .onrdomain field was added in pf with OpenBSD 5.0. Add PFRULE_HAS_ONRDOMAIN 2012/01/02: Fixing netfilter/iptables_*.sh scripts for new ifconfig output format. getifaddr.c: added additional checks on structure returned by getifaddrs() Fixing Mac OS X makefile for installation 2011/11/18: avoid infinite loop in SendResp_upnphttp() in case of error Replaced SendResp_upnphttp() + CloseSocket_upnphttp() by SendRespAndClose_upnphttp() Tomato specifics in genconfig.sh 2011/07/30: netfilter : Added a tiny_nf_nat.h file to compile with iptables installed headers. include xtables.h instead of iptables.h VERSION 1.6 : released the 2011/07/25 A lot of work on IPv6 support and IGDv2. Support of lease duration, etc. VERSION 1.5 : released the 2011/01/01 bugfixed and is now compatible with OpenBSD >= 4.7. It includes preliminary support for the version 2 of the UPnP Internet Gateway specification.
2012-03-22 13:56:51 +01:00
LICENSE= modified-bsd
EGDIR= ${PREFIX}/share/examples/miniupnpd
CONF_FILES= ${EGDIR}/miniupnpd.conf ${PKG_SYSCONFDIR}/miniupnpd.conf
2016-06-01 13:36:45 +02:00
MAKE_JOBS_SAFE= no # genconfig.sh run in parallel with users of config.h
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
CFLAGS+= -DDEFAULT_CONFIG=\"${PKG_SYSCONFDIR}/miniupnpd.conf\"
INSTALL_MAKE_FLAGS+= INSTALLETCDIR=${EGDIR}
INSTALL_MAKE_FLAGS+= INSTALLMANDIR=${PREFIX}/${PKGMANDIR}/man1
RCD_SCRIPTS= miniupnpd
SUBST_CLASSES+= fwname
SUBST_STAGE.fwname= pre-configure
SUBST_MESSAGE.fwname= Setting desired firewall type.
SUBST_FILES.fwname= genconfig.sh
SUBST_VARS.fwname= FWNAME
.include "../../mk/bsd.pkg.mk"