1 #############################################################
5 #############################################################
7 NETFILTER_SNAPSHOT
:=20040508
8 NETFILTER_SOURCE
:=patch-o-matic-
$(NETFILTER_SNAPSHOT
).
tar.bz2
9 NETFILTER_SITE
:=ftp
://ftp.netfilter.org
/pub
/patch-o-matic
/snapshot
/
10 NETFILTER_DIR
:=$(BUILD_DIR
)/patch-o-matic-
$(NETFILTER_SNAPSHOT
)
13 # ipv6_mld breaks net/ipv6/mcast.c
14 NETFILTER_EXCLUDE
:=--exclude submitted
/89_ipv6_mld_netfilter.patch
18 extra
/CLASSIFY.patch \
19 extra
/CONNMARK.patch \
21 extra
/condition.patch \
22 extra
/h323-conntrack-nat.patch \
23 extra
/mms-conntrack-nat.patch \
24 extra
/pptp-conntrack-nat.patch \
27 LINUX_DIR
:=$(BUILD_DIR
)/WRT54GS
/release
/src
/linux
/linux
29 $(DL_DIR
)/$(NETFILTER_SOURCE
):
30 $(WGET
) -P
$(DL_DIR
) $(NETFILTER_SITE
)/$(NETFILTER_SOURCE
)
32 netfilter-source
: $(DL_DIR
)/$(NETFILTER_SOURCE
)
34 $(NETFILTER_DIR
)/.unpacked
: $(DL_DIR
)/$(NETFILTER_SOURCE
)
35 $(NETFILTER_CAT
) $(DL_DIR
)/$(NETFILTER_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
36 #ignore whitespace in patches
37 $(SED
) "s,\-p1,\-l \-p1," $(NETFILTER_DIR
)/runme
38 touch
$(NETFILTER_DIR
)/.unpacked
40 $(LINUX_DIR
)/.nf-patched
: $(LINUX_DIR
)/.patched
$(NETFILTER_DIR
)/.unpacked
41 -(cd
$(NETFILTER_DIR
); KERNEL_DIR
=$(LINUX_DIR
) .
/runme
--batch
$(NETFILTER_EXCLUDE
) $(NETFILTER_PATCHES
))
42 touch
$(LINUX_DIR
)/.nf-patched
44 netfilter
: $(LINUX_DIR
)/.nf-patched
49 rm -rf
$(NETFILTER_DIR
)