summaryrefslogtreecommitdiff
path: root/net/miniupnpd/files/patch-Makefile
blob: ec0841685816e88c0dbe5b69b9b2ebd7f4988ec1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- Makefile.orig	2009-11-06 08:23:18.000000000 +0800
+++ Makefile	2009-11-06 08:23:31.000000000 +0800
@@ -25,10 +25,12 @@
 
 # better way to find if we are using ipf or pf
 .if $(OSNAME) == "FreeBSD"
+.if defined(/etc/rc.subr) && defined(/etc/rc.conf)
 FWNAME != . /etc/rc.subr; . /etc/rc.conf; \
           if checkyesno ipfilter_enable; then \
           echo "ipf"; else echo "pf"; fi
 .endif
+.endif
 
 .if $(OSNAME) == "NetBSD"
 FWNAME != . /etc/rc.subr; . /etc/rc.conf; \