selecting zlib automatically in Config.in does not mean it will
[openwrt.git] / obsolete-buildroot / make / arptables.mk
1 ########################################################################
2 #
3 # arptables
4 #
5 # Arptables is used to set up, maintain, and inspect the tables of ARP
6 # rules in the Linux kernel. It is analogous to iptables, but operates
7 # at the ARP layer rather than the IP layer."
8 #
9 ########################################################################
10
11 ARPTABLES_NAME=arptables
12 ARPTABLES_VER=v0.0.3-2
13 ARPTABLES_SOURCE=$(ARPTABLES_NAME)-$(ARPTABLES_VER).tar.gz
14 ARPTABLES_SOURCE_URL=http://unc.dl.sourceforge.net/sourceforge/ebtables/
15 ARPTABLES_BUILD_DIR=$(BUILD_DIR)/$(ARPTABLES_NAME)-$(ARPTABLES_VER)
16
17 $(DL_DIR)/$(ARPTABLES_SOURCE):
18 $(WGET) -P $(DL_DIR) $(ARPTABLES_SOURCE_URL)/$(ARPTABLES_SOURCE)
19
20 $(ARPTABLES_BUILD_DIR)/.unpacked: $(DL_DIR)/$(ARPTABLES_SOURCE)
21 zcat $(DL_DIR)/$(ARPTABLES_SOURCE) | tar -C $(BUILD_DIR) -xvf -
22 touch $(ARPTABLES_BUILD_DIR)/.unpacked
23
24 $(ARPTABLES_BUILD_DIR)/.configured: $(ARPTABLES_BUILD_DIR)/.unpacked
25 # Allow patches. Needed for openwrt for instance.
26 $(SOURCE_DIR)/patch-kernel.sh $(ARPTABLES_BUILD_DIR) $(SOURCE_DIR) $(ARPTABLES_NAME)-*.patch
27 touch $(ARPTABLES_BUILD_DIR)/.configured
28
29 $(ARPTABLES_BUILD_DIR)/$(ARPTABLES_NAME): $(ARPTABLES_BUILD_DIR)/.configured
30 $(TARGET_CONFIGURE_OPTS) \
31 $(MAKE) -C $(ARPTABLES_BUILD_DIR) \
32 CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)"
33
34 $(TARGET_DIR)/sbin/$(ARPTABLES_NAME): $(ARPTABLES_BUILD_DIR)/$(ARPTABLES_NAME)
35 mkdir -p $(TARGET_DIR)/sbin/
36 cp $(ARPTABLES_BUILD_DIR)/$(ARPTABLES_NAME) $(TARGET_DIR)/sbin/$(ARPTABLES_NAME)
37 $(STRIP) $(TARGET_DIR)/sbin/$(ARPTABLES_NAME)
38
39 $(ARPTABLES_NAME): $(TARGET_DIR)/sbin/$(ARPTABLES_NAME)
40
41 $(ARPTABLES_NAME)-source: $(DL_DIR)/$(ARPTABLES_SOURCE)
42
43 $(ARPTABLES_NAME)-clean:
44 -$(MAKE) -C $(ARPTABLES_BUILD_DIR) clean
45
46 $(ARPTABLES_NAME)-dirclean:
47 rm -rf $(ARPTABLES_BUILD_DIR)
This page took 0.044303 seconds and 5 git commands to generate.