62681dcd59f949b2448348ed9b0829c7ab256a03
[openwrt.git] / package / network / utils / arptables / Makefile
1 # Copyright (C) 2006-2010 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=arptables
10 PKG_VERSION:=0.0.4
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/ebtables
15 PKG_MD5SUM:=c2e99c3aa9d78c9dfa30710ca3168182
16 PKG_LICENSE:=GPL-2.0
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/arptables
23   SECTION:=net
24   CATEGORY:=Network
25   SUBMENU:=Firewall
26   TITLE:=ARP firewalling software
27   DEPENDS:=+kmod-arptables
28   URL:=http://ebtables.sourceforge.net
29 endef
30
31 define Build/Compile
32         $(MAKE) -C $(PKG_BUILD_DIR) \
33                 $(TARGET_CONFIGURE_OPTS) \
34                 COPT_FLAGS="$(TARGET_CFLAGS)" \
35                 KERNEL_DIR="./include/linux"
36 endef
37
38 define Package/arptables/install
39         $(INSTALL_DIR) $(1)/usr/sbin
40         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
41 endef
42
43 $(eval $(call BuildPackage,arptables))