miniupnpd/Makefile: improve ipfw detection

This commit is contained in:
Thomas Bernard 2014-04-07 12:39:05 +02:00
parent 0a46cb1616
commit 29e951c1e5

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.79 2014/03/31 12:21:23 nanard Exp $ # $Id: Makefile,v 1.80 2014/04/07 10:32:20 nanard Exp $
# MiniUPnP project # MiniUPnP project
# http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ # http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
# Author: Thomas Bernard # Author: Thomas Bernard
@ -45,7 +45,8 @@ FWNAME = ipf
.if $(OSNAME) == "FreeBSD" .if $(OSNAME) == "FreeBSD"
FWNAME != . /etc/rc.subr; . /etc/rc.conf; \ FWNAME != . /etc/rc.subr; . /etc/rc.conf; \
if checkyesno ipfilter_enable; then \ if checkyesno ipfilter_enable; then \
echo "ipf"; else echo "pf"; fi echo "ipf"; elif checkyesno pf_enable; then \
echo "pf"; else echo "ipfw"; fi
.endif .endif
.if $(OSNAME) == "NetBSD" .if $(OSNAME) == "NetBSD"
@ -57,7 +58,8 @@ FWNAME != . /etc/rc.subr; . /etc/rc.conf; \
.if $(OSNAME) == "DragonFly" .if $(OSNAME) == "DragonFly"
FWNAME != . /etc/rc.subr; . /etc/rc.conf; \ FWNAME != . /etc/rc.subr; . /etc/rc.conf; \
if checkyesno ipfilter; then \ if checkyesno ipfilter; then \
echo "ipf"; else echo "pf"; fi echo "ipf"; elif checkyesno pf_enable; then \
echo "pf"; else echo "ipfw"; fi
.endif .endif
.endif .endif