2005-05-19 23:49:45 +03:00
|
|
|
# $Id$
|
|
|
|
|
2005-03-06 05:34:52 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=arptables
|
|
|
|
PKG_VERSION:=0.0.3
|
|
|
|
PKG_RELEASE:=1
|
2005-03-20 04:47:45 +02:00
|
|
|
PKG_MD5SUM:=1672244603c8979577aa4738be35a759
|
2005-03-20 00:51:51 +02:00
|
|
|
PKG_SOURCE_URL:=@SF/ebtables
|
2005-03-06 05:34:52 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2005-05-12 21:29:12 +03:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
2005-03-06 05:34:52 +02:00
|
|
|
|
2005-05-12 21:29:12 +03:00
|
|
|
$(eval $(call PKG_template,ARPTABLES,arptables,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-03-06 05:34:52 +02:00
|
|
|
|
2005-05-19 23:49:45 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
|
|
|
touch $@
|
|
|
|
|
2005-05-12 21:29:12 +03:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-03-06 05:34:52 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
|
2005-10-25 06:12:26 +03:00
|
|
|
COPT_FLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
KERNEL_DIR="./include/linux"
|
2005-05-12 22:54:17 +03:00
|
|
|
touch $@
|
2005-03-06 05:34:52 +02:00
|
|
|
|
2005-05-12 21:29:12 +03:00
|
|
|
$(IPKG_ARPTABLES):
|
2005-10-25 06:12:26 +03:00
|
|
|
install -d -m0755 $(IDIR_ARPTABLES)/usr/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
|
|
|
|
$(RSTRIP) $(IDIR_ARPTABLES)
|
2005-05-12 21:29:12 +03:00
|
|
|
$(IPKG_BUILD) $(IDIR_ARPTABLES) $(PACKAGE_DIR)
|