[ssb] The ssb module in also integrated into the kernel on brcm63xx target.
[openwrt.git] / package / ebtables / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ebtables
12 PKG_VERSION:=2.0.8-2
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/ebtables
17 PKG_MD5SUM:=66bcbcb2dcf3b981ad4e86e1720e796e
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/ebtables-v$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ebtables
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+kmod-ebtables
27 TITLE:=Ethernet bridge firewall administration utility
28 URL:=http://ebtables.sourceforge.net/
29 endef
30
31 define Package/ebtables-utils
32 $(call Package/ebtables)
33 TITLE:=ebtables save/restore utilities
34 endef
35
36 define Package/ebtables/description
37 The ebtables program is a filtering tool for a bridging firewall. The
38 filtering is focussed on the Link Layer Ethernet frame fields. Apart
39 from filtering, it also gives the ability to alter the Ethernet MAC
40 addresses and implement a brouter.
41 endef
42
43 define Package/ebtables-utils/description
44 $(call Package/ebtables/description)
45 endef
46
47 MAKE_FLAGS += \
48 CFLAGS="$(TARGET_CFLAGS)" \
49 LIBDIR="/usr/lib/ebtables"
50
51 define Package/ebtables/install
52 $(INSTALL_DIR) $(1)/etc
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ethertypes $(1)/etc/
54 $(INSTALL_DIR) $(1)/usr/lib/ebtables
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib*.so $(1)/usr/lib/
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/extensions/*.so $(1)/usr/lib/ebtables/
57 $(INSTALL_DIR) $(1)/usr/sbin
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables $(1)/usr/sbin/
59 endef
60
61 define Package/ebtables-utils/install
62 $(INSTALL_DIR) $(1)/usr/sbin
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/
64 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-restore $(1)/usr/sbin/
65 endef
66
67 $(eval $(call BuildPackage,ebtables))
68 $(eval $(call BuildPackage,ebtables-utils))
This page took 0.04079 seconds and 5 git commands to generate.