1 #############################################################
5 #############################################################
6 include $(TOPDIR
)/rules.mk
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
)
16 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
17 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
19 $(DL_DIR
)/$(PKG_SOURCE
):
20 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
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
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)\\\" "
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
)
38 $(IPKG_STATE_DIR
)/info/arptables.list
: $(PKG_IPK
)
39 $(IPKG
) install $(PKG_IPK
)
41 source
: $(DL_DIR
)/$(PKG_SOURCE
)
42 prepare
: $(PKG_BUILD_DIR
)/.unpacked
44 install: $(IPKG_STATE_DIR
)/info/arptables.list
47 rm -rf
$(PKG_BUILD_DIR
)
This page took 0.041294 seconds and 5 git commands to generate.