miniupnpd/Makefile: Mac OS X switched from ipfw to pf

OS X 10.7 Lion switched to pf
This commit is contained in:
Thomas Bernard 2014-03-18 09:34:25 +01:00
parent 708c83d873
commit f7b6b1ec19
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ FWNAME != . /etc/rc.subr; . /etc/rc.conf; \
.endif
.if $(OSNAME) == "Darwin"
FWNAME = ipfw
# Firewall is ipfw up to OS X 10.6 Snow Leopard
# and pf since OS X 10.7 Lion (Darwin 11.0)
FWNAME != [ `uname -r | cut -d. -f1` -ge 11 ] && echo "pf" || echo "ipfw"
.endif
# Solaris specific CFLAGS