[kernel modules] add joystick device support
[openwrt/svn-archive/archive.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ebtables
11 PKG_VERSION:=2.0.8-2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ebtables
16 PKG_MD5SUM:=66bcbcb2dcf3b981ad4e86e1720e796e
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/ebtables-v$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ebtables
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+kmod-ebtables
26 TITLE:=Ethernet bridge firewall administration utility
27 URL:=http://ebtables.sourceforge.net/
28 endef
29
30 define Package/ebtables-utils
31 $(call Package/ebtables)
32 TITLE:=ebtables save/restore utilities
33 endef
34
35 define Package/ebtables/description
36 The ebtables program is a filtering tool for a bridging firewall. The
37 filtering is focussed on the Link Layer Ethernet frame fields. Apart
38 from filtering, it also gives the ability to alter the Ethernet MAC
39 addresses and implement a brouter.
40 endef
41
42 define Package/ebtables-utils/description
43 $(call Package/ebtables/description)
44 endef
45
46 MAKE_FLAGS += \
47 CFLAGS="$(TARGET_CFLAGS)" \
48 LIBDIR="/usr/lib/ebtables"
49
50 define Package/ebtables/install
51 $(INSTALL_DIR) $(1)/etc
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ethertypes $(1)/etc/
53 $(INSTALL_DIR) $(1)/usr/lib/ebtables
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib*.so $(1)/usr/lib/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/extensions/*.so $(1)/usr/lib/ebtables/
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables $(1)/usr/sbin/
58 endef
59
60 define Package/ebtables-utils/install
61 $(INSTALL_DIR) $(1)/usr/sbin
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-restore $(1)/usr/sbin/
64 endef
65
66 $(eval $(call BuildPackage,ebtables))
67 $(eval $(call BuildPackage,ebtables-utils))