7adc7f68b8
fix upnp_add_inboundpinhole() : check inet_pton() return fix upnp_redirect() : check inet_aton() return fix potential memory corruption in upnpsoap.c/GetListOfPortMappings() fix buffer overrun in ParseHttpHeaders() if Content-Length doesn't contain any digit ! check if BuildHeader_upnphttp() failed to allocate memory
34 lines
959 B
Makefile
34 lines
959 B
Makefile
# $NetBSD: Makefile,v 1.15 2015/02/11 14:36:21 adam Exp $
|
|
|
|
DISTNAME= miniupnpd-1.9.20141209
|
|
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
|
|
LICENSE= modified-bsd
|
|
|
|
EGDIR= ${PREFIX}/share/examples/miniupnpd
|
|
CONF_FILES= ${EGDIR}/miniupnpd.conf ${PKG_SYSCONFDIR}/miniupnpd.conf
|
|
|
|
# miniupnpd.c:8:10: fatal error: 'config.h' file not found
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
.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"
|