114a31940f5d6e871c6b8d214b905d70602540c1
[openwrt.git] / obsolete-buildroot / make / netfilter.mk
1 #############################################################
2 #
3 # netfilter
4 #
5 #############################################################
6
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)
11 NETFILTER_CAT:=bzcat
12
13 # ipv6_mld breaks net/ipv6/mcast.c
14 NETFILTER_EXCLUDE:=--exclude submitted/89_ipv6_mld_netfilter.patch
15
16 NETFILTER_PATCHES:= \
17 base \
18 extra/CLASSIFY.patch \
19 extra/CONNMARK.patch \
20 extra/IPMARK.patch \
21 extra/condition.patch \
22 extra/h323-conntrack-nat.patch \
23 extra/mms-conntrack-nat.patch \
24 extra/pptp-conntrack-nat.patch \
25 extra/string.patch
26
27 LINUX_DIR:=$(BUILD_DIR)/WRT54GS/release/src/linux/linux
28
29 $(DL_DIR)/$(NETFILTER_SOURCE):
30 $(WGET) -P $(DL_DIR) $(NETFILTER_SITE)/$(NETFILTER_SOURCE)
31
32 netfilter-source: $(DL_DIR)/$(NETFILTER_SOURCE)
33
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
39
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
43
44 netfilter: $(LINUX_DIR)/.nf-patched
45
46 netfilter-clean:
47
48 netfilter-dirclean:
49 rm -rf $(NETFILTER_DIR)
This page took 0.043768 seconds and 3 git commands to generate.