Lines 1-51
Link Here
|
1 |
--- Makefile.orig 2014-04-20 09:47:29.000000000 -0700 |
|
|
2 |
+++ Makefile 2014-06-20 22:53:14.863342337 -0700 |
3 |
@@ -15,7 +15,7 @@ |
4 |
# $ CONFIG_OPTIONS="--ipv6 --igd2" make |
5 |
# |
6 |
|
7 |
-CFLAGS ?= -pipe -Os |
8 |
+CFLAGS ?= -pipe |
9 |
#CFLAGS = -pipe -O -g -DDEBUG |
10 |
#CFLAGS += -ansi |
11 |
CFLAGS += -Wall |
12 |
@@ -45,25 +45,36 @@ |
13 |
.endif |
14 |
|
15 |
# better way to find if we are using ipf or pf |
16 |
-.if exists(/etc/rc.subr) && exists(/etc/rc.conf) |
17 |
.if $(OSNAME) == "FreeBSD" |
18 |
+.if exists(/etc/rc.subr) && exists(/etc/rc.conf) |
19 |
FWNAME != . /etc/rc.subr; . /etc/rc.conf; \ |
20 |
- if checkyesno ipfilter_enable; then \ |
21 |
+ if checkyesno firewall_enable; then \ |
22 |
+ echo "ipfw"; elif checkyesno ipfilter_enable; then \ |
23 |
echo "ipf"; elif checkyesno pf_enable; then \ |
24 |
- echo "pf"; else echo "ipfw"; fi |
25 |
+ echo "pf"; else echo "pf"; fi |
26 |
+.else |
27 |
+FWNAME = pf |
28 |
+.endif |
29 |
.endif |
30 |
|
31 |
.if $(OSNAME) == "NetBSD" |
32 |
+.if exists(/etc/rc.subr) && exists(/etc/rc.conf) |
33 |
FWNAME != . /etc/rc.subr; . /etc/rc.conf; \ |
34 |
if checkyesno ipfilter; then \ |
35 |
echo "ipf"; else echo "pf"; fi |
36 |
+.else |
37 |
+FWNAME = pf |
38 |
+.endif |
39 |
.endif |
40 |
|
41 |
.if $(OSNAME) == "DragonFly" |
42 |
+.if exists(/etc/rc.subr) && exists(/etc/rc.conf) |
43 |
FWNAME != . /etc/rc.subr; . /etc/rc.conf; \ |
44 |
if checkyesno ipfilter; then \ |
45 |
echo "ipf"; elif checkyesno pf_enable; then \ |
46 |
echo "pf"; else echo "ipfw"; fi |
47 |
+.else |
48 |
+FWNAME = ipfw |
49 |
.endif |
50 |
.endif |
51 |
|