1 #############################################################
5 #############################################################
6 IPTABLES_SOURCE_URL
=http
://www.netfilter.org
/files
7 IPTABLES_SOURCE
=iptables-1.2
.9.
tar.bz2
8 IPTABLES_BUILD_DIR
=$(BUILD_DIR
)/iptables-1.2
.9
10 $(DL_DIR
)/$(IPTABLES_SOURCE
):
11 $(WGET
) -P
$(DL_DIR
) $(IPTABLES_SOURCE_URL
)/$(IPTABLES_SOURCE
)
13 $(IPTABLES_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(IPTABLES_SOURCE
)
14 bzcat
$(DL_DIR
)/$(IPTABLES_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
15 touch
$(IPTABLES_BUILD_DIR
)/.unpacked
17 $(IPTABLES_BUILD_DIR
)/.configured
: $(IPTABLES_BUILD_DIR
)/.unpacked
18 # Allow patches. Needed for openwrt for instance.
19 $(SOURCE_DIR
)/patch-kernel.sh
$(IPTABLES_BUILD_DIR
) $(SOURCE_DIR
) iptables-
*.patch
21 $(SED
) "s;\[ -f /usr/include/netinet/ip6.h \];grep -q '__UCLIBC_HAS_IPV6__ 1' \
22 $(BUILD_DIR)/uClibc/include/bits/uClibc_config.h;" $(IPTABLES_BUILD_DIR
)/Makefile
23 touch
$(IPTABLES_BUILD_DIR
)/.configured
25 $(IPTABLES_BUILD_DIR
)/iptables
: $(IPTABLES_BUILD_DIR
)/.configured
26 $(TARGET_CONFIGURE_OPTS
) \
27 $(MAKE
) -C
$(IPTABLES_BUILD_DIR
) \
28 KERNEL_DIR
=$(LINUX_DIR
) PREFIX
=/usr \
29 CC
=$(TARGET_CC
) COPT_FLAGS
="$(TARGET_CFLAGS)"
31 $(TARGET_DIR
)/sbin
/iptables
: $(IPTABLES_BUILD_DIR
)/iptables
32 $(TARGET_CONFIGURE_OPTS
) \
33 $(MAKE
) -C
$(IPTABLES_BUILD_DIR
) \
34 KERNEL_DIR
=$(LINUX_DIR
) PREFIX
=/usr \
35 CC
=$(TARGET_CC
) COPT_FLAGS
="$(TARGET_CFLAGS)" \
36 DESTDIR
=$(TARGET_DIR
) install
37 $(STRIP
) $(TARGET_DIR
)/usr
/sbin
/iptables
*
38 $(STRIP
) $(TARGET_DIR
)/usr
/lib
/iptables
/*.so
39 rm -rf
$(TARGET_DIR
)/usr
/man
41 iptables
: $(TARGET_DIR
)/sbin
/iptables
43 iptables-source
: $(DL_DIR
)/$(IPTABLES_SOURCE
)
46 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(IPTABLES_BUILD_DIR
) uninstall
47 -$(MAKE
) -C
$(IPTABLES_BUILD_DIR
) clean
50 rm -rf
$(IPTABLES_BUILD_DIR
)
This page took 0.045233 seconds and 5 git commands to generate.