Root/package/ebtables/Makefile

1#
2# Copyright (C) 2006-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ebtables
11PKG_VERSION:=2.0.9-1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/ebtables
16PKG_MD5SUM:=0e0c20adf2bba6d91dbd0b74a1a38c33
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/ebtables-v$(PKG_VERSION)
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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/
28endef
29
30define Package/ebtables-utils
31  $(call Package/ebtables)
32  TITLE:=ebtables save/restore utilities
33endef
34
35define 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.
40endef
41
42define Package/ebtables-utils/description
43    $(call Package/ebtables/description)
44endef
45
46MAKE_VARS += EXT_LIBSI="$(LIBGCC_S)"
47
48MAKE_FLAGS += \
49    CFLAGS="$(TARGET_CFLAGS)" \
50    LIBDIR="/usr/lib/ebtables"
51
52define Package/ebtables/install
53    $(INSTALL_DIR) $(1)/etc
54    $(INSTALL_DATA) $(PKG_BUILD_DIR)/ethertypes $(1)/etc/
55    $(INSTALL_DIR) $(1)/usr/lib/ebtables
56    $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib*.so $(1)/usr/lib/
57    $(INSTALL_BIN) $(PKG_BUILD_DIR)/extensions/*.so $(1)/usr/lib/ebtables/
58    $(INSTALL_DIR) $(1)/usr/sbin
59    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables $(1)/usr/sbin/
60endef
61
62define Package/ebtables-utils/install
63    $(INSTALL_DIR) $(1)/usr/sbin
64    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/
65    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-restore $(1)/usr/sbin/
66endef
67
68$(eval $(call BuildPackage,ebtables))
69$(eval $(call BuildPackage,ebtables-utils))
70

Archive Download this file



interactive