1 ########################################################################
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."
9 ########################################################################
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
)
17 $(DL_DIR
)/$(ARPTABLES_SOURCE
):
18 $(WGET
) -P
$(DL_DIR
) $(ARPTABLES_SOURCE_URL
)/$(ARPTABLES_SOURCE
)
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
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
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)"
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
)
39 $(ARPTABLES_NAME
): $(TARGET_DIR
)/sbin
/$(ARPTABLES_NAME
)
41 $(ARPTABLES_NAME
)-source
: $(DL_DIR
)/$(ARPTABLES_SOURCE
)
43 $(ARPTABLES_NAME
)-clean:
44 -$(MAKE
) -C
$(ARPTABLES_BUILD_DIR
) clean
46 $(ARPTABLES_NAME
)-dirclean
:
47 rm -rf
$(ARPTABLES_BUILD_DIR
)
This page took 0.043205 seconds and 5 git commands to generate.