From f7b6b1ec1905d0afa6a4389c0f9705d2605ec9c1 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 18 Mar 2014 09:34:25 +0100 Subject: [PATCH] miniupnpd/Makefile: Mac OS X switched from ipfw to pf OS X 10.7 Lion switched to pf --- miniupnpd/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/miniupnpd/Makefile b/miniupnpd/Makefile index 68ebc12..7edbf6c 100644 --- a/miniupnpd/Makefile +++ b/miniupnpd/Makefile @@ -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