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 \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DARPTABLES_VERSION=\\\"$(PKG_VERSION)\\\" "
|
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):
|
|
|
|
mkdir -p $(IDIR_ARPTABLES)/usr/sbin
|
|
|
|
cp $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
|
|
|
|
$(IPKG_BUILD) $(IDIR_ARPTABLES) $(PACKAGE_DIR)
|