replace a few unnecessary $(shell) calls
[openwrt/mini2440.git] / package / arptables / Makefile
blobca1dfd5ebc3ca11ebb7612648670a686b524d2d8
1 # Copyright (C) 2006-2008 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
6 # $Id$
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=arptables
11 PKG_VERSION:=0.0.3-3
12 PKG_RELEASE:=1
14 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ebtables
16 PKG_MD5SUM:=3f4a8b62920a46d746ab892be7de088f
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
20 include $(INCLUDE_DIR)/package.mk
22 define Package/arptables
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=ARP firewalling software
26 DEPENDS:=+kmod-arptables
27 URL:=http://ebtables.sourceforge.net
28 endef
30 define Build/Compile
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 $(TARGET_CONFIGURE_OPTS) \
33 COPT_FLAGS="$(TARGET_CFLAGS)" \
34 KERNEL_DIR="./include/linux"
35 endef
37 define Package/arptables/install
38 $(INSTALL_DIR) $(1)/usr/sbin
39 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
40 endef
42 $(eval $(call BuildPackage,arptables))