miniupnpd/Makefile: allow to override FWNAME

This commit is contained in:
Thomas Bernard 2014-03-19 12:23:48 +01:00
parent 601bd2618b
commit 75cb38edda

View File

@ -39,7 +39,6 @@ FWNAME = pf
.else .else
FWNAME = ipf FWNAME = ipf
.endif .endif
.endif
# better way to find if we are using ipf or pf # better way to find if we are using ipf or pf
.if exists(/etc/rc.subr) && exists(/etc/rc.conf) .if exists(/etc/rc.subr) && exists(/etc/rc.conf)
@ -68,6 +67,8 @@ FWNAME != . /etc/rc.subr; . /etc/rc.conf; \
FWNAME != [ `uname -r | cut -d. -f1` -ge 11 ] && echo "pf" || echo "ipfw" FWNAME != [ `uname -r | cut -d. -f1` -ge 11 ] && echo "pf" || echo "ipfw"
.endif .endif
.endif
# Solaris specific CFLAGS # Solaris specific CFLAGS
.if $(OSNAME) == "SunOS" .if $(OSNAME) == "SunOS"
CFLAGS += -DSOLARIS2=`uname -r | cut -d. -f2` CFLAGS += -DSOLARIS2=`uname -r | cut -d. -f2`