clean up shfs menuconfig
[openwrt.git] / openwrt / package / arptables / Makefile
1 #############################################################
2 #
3 # arptables
4 #
5 #############################################################
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=arptables
9 PKG_VERSION:=0.0.3
10 PKG_RELEASE:=1
11 PKG_MD5SUM:=1672244603c8979577aa4738be35a759
12 PKG_SOURCE_URL:=@SF/ebtables
13 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
15 PKG_CAT:=zcat
16 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
18
19 $(DL_DIR)/$(PKG_SOURCE):
20 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
21
22 $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE)
23 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24 touch $(PKG_BUILD_DIR)/.unpacked
25
26 $(PKG_BUILD_DIR)/arptables: $(PKG_BUILD_DIR)/.unpacked
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
29 CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DARPTABLES_VERSION=\\\"$(PKG_VERSION)\\\" "
30
31 $(PKG_IPK): $(PKG_BUILD_DIR)/arptables
32 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
33 mkdir -p $(PKG_IPK_DIR)/usr/sbin
34 cp $(PKG_BUILD_DIR)/arptables $(PKG_IPK_DIR)/usr/sbin/
35 mkdir -p $(PACKAGE_DIR)
36 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
37
38 $(IPKG_STATE_DIR)/info/arptables.list: $(PKG_IPK)
39 $(IPKG) install $(PKG_IPK)
40
41 source: $(DL_DIR)/$(PKG_SOURCE)
42 prepare: $(PKG_BUILD_DIR)/.unpacked
43 compile: $(PKG_IPK)
44 install: $(IPKG_STATE_DIR)/info/arptables.list
45
46 clean:
47 rm -rf $(PKG_BUILD_DIR)
48 rm -f $(PKG_IPK)
This page took 0.062089 seconds and 5 git commands to generate.