fix ar7 flash map driver handling of jffs2 images
[openwrt.git] / obsolete-buildroot / make / netfilter.mk
1 #############################################################
2 #
3 # netfilter
4 #
5 #############################################################
6
7 ifeq ($(strip $(USE_NETFILTER_SNAPSHOT)),)
8 USE_NETFILTER_SNAPSHOT=20040508
9 endif
10 NETFILTER_SOURCE:=patch-o-matic-$(USE_NETFILTER_SNAPSHOT).tar.bz2
11 NETFILTER_DIR:=$(BUILD_DIR)/patch-o-matic-$(USE_NETFILTER_SNAPSHOT)
12 NETFILTER_SITE:=ftp://ftp.netfilter.org/pub/patch-o-matic/snapshot
13 NETFILTER_CAT:=bzcat
14
15 # ipv6_mld breaks net/ipv6/mcast.c
16 NETFILTER_EXCLUDE:=--exclude submitted/89_ipv6_mld_netfilter.patch
17
18 NETFILTER_PATCHES:= \
19 base \
20 extra/CLASSIFY.patch \
21 extra/CONNMARK.patch \
22 extra/IPMARK.patch \
23 extra/condition.patch \
24 extra/h323-conntrack-nat.patch \
25 extra/mms-conntrack-nat.patch \
26 extra/pptp-conntrack-nat.patch \
27 extra/string.patch
28
29 LINUX_DIR:=$(BUILD_DIR)/WRT54GS/release/src/linux/linux
30
31 $(DL_DIR)/$(NETFILTER_SOURCE):
32 $(WGET) -P $(DL_DIR) $(NETFILTER_SITE)/$(NETFILTER_SOURCE)
33
34 netfilter-source: $(DL_DIR)/$(NETFILTER_SOURCE)
35
36 $(NETFILTER_DIR)/.unpacked: $(DL_DIR)/$(NETFILTER_SOURCE)
37 $(NETFILTER_CAT) $(DL_DIR)/$(NETFILTER_SOURCE) | tar -C $(BUILD_DIR) -xvf -
38 #ignore whitespace in patches
39 $(SED) "s,\-p1,\-l \-p1," $(NETFILTER_DIR)/runme
40 touch $(NETFILTER_DIR)/.unpacked
41
42 $(LINUX_DIR)/.nf-patched: $(LINUX_DIR)/.unpacked $(NETFILTER_DIR)/.unpacked
43 $(SOURCE_DIR)/patch-kernel.sh $(LINUX_DIR) $(SOURCE_DIR)/openwrt/kernel/netfilter/patches
44 -(cd $(NETFILTER_DIR); KERNEL_DIR=$(LINUX_DIR) ./runme --batch $(NETFILTER_EXCLUDE) $(NETFILTER_PATCHES))
45 touch $(LINUX_DIR)/.nf-patched
46
47 netfilter: $(LINUX_DIR)/.nf-patched
48
49 netfilter-clean:
50
51 netfilter-dirclean:
52 rm -rf $(NETFILTER_DIR)
This page took 0.055211 seconds and 5 git commands to generate.