Root/package/arptables/Makefile

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

Archive Download this file



interactive