1 #############################################################
5 #############################################################
7 IPTABLES_SOURCE_URL
:=http
://www.netfilter.org
/files
8 IPTABLES_SOURCE
:=iptables-
$(IPTABLES_VER
).
tar.bz2
9 IPTABLES_BUILD_DIR
:=$(BUILD_DIR
)/iptables-
$(IPTABLES_VER
)
11 $(DL_DIR
)/$(IPTABLES_SOURCE
):
12 $(WGET
) -P
$(DL_DIR
) $(IPTABLES_SOURCE_URL
)/$(IPTABLES_SOURCE
)
14 $(IPTABLES_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(IPTABLES_SOURCE
)
15 bzcat
$(DL_DIR
)/$(IPTABLES_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
16 touch
$(IPTABLES_BUILD_DIR
)/.unpacked
18 $(IPTABLES_BUILD_DIR
)/.configured
: $(IPTABLES_BUILD_DIR
)/.unpacked
19 # Allow patches. Needed for openwrt for instance.
20 toolchain
/patch-kernel.sh
$(IPTABLES_BUILD_DIR
) package
/iptables
/ iptables-\
*.patch
22 # $(SED) "s;\[ -f /usr/include/netinet/ip6.h \];grep -q '__UCLIBC_HAS_IPV6__ 1' \
23 # $(BUILD_DIR)/uClibc/include/bits/uClibc_config.h;" $(IPTABLES_BUILD_DIR)/Makefile
24 touch
$(IPTABLES_BUILD_DIR
)/.configured
26 $(IPTABLES_BUILD_DIR
)/iptables
: $(IPTABLES_BUILD_DIR
)/.configured
27 $(TARGET_CONFIGURE_OPTS
) \
28 $(MAKE
) -C
$(IPTABLES_BUILD_DIR
) \
29 KERNEL_DIR
=$(LINUX_DIR
) PREFIX
=/usr \
30 CC
=$(TARGET_CC
) COPT_FLAGS
="$(TARGET_CFLAGS)"
32 $(TARGET_DIR
)/usr
/sbin
/iptables
: $(IPTABLES_BUILD_DIR
)/iptables
33 $(TARGET_CONFIGURE_OPTS
) \
34 $(MAKE
) -C
$(IPTABLES_BUILD_DIR
) \
35 KERNEL_DIR
=$(LINUX_DIR
) PREFIX
=/usr \
36 CC
=$(TARGET_CC
) COPT_FLAGS
="$(TARGET_CFLAGS)" \
37 DESTDIR
=$(TARGET_DIR
) install
38 $(STRIP
) $(TARGET_DIR
)/usr
/sbin
/iptables
*
39 $(STRIP
) $(TARGET_DIR
)/usr
/lib
/iptables
/*.so
40 rm -rf
$(TARGET_DIR
)/usr
/man
42 iptables
: $(TARGET_DIR
)/usr
/sbin
/iptables
44 iptables-source
: $(DL_DIR
)/$(IPTABLES_SOURCE
)
47 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(IPTABLES_BUILD_DIR
) uninstall
48 -$(MAKE
) -C
$(IPTABLES_BUILD_DIR
) clean
51 rm -rf
$(IPTABLES_BUILD_DIR
)
This page took 0.049289 seconds and 5 git commands to generate.