source: trunk/package/ebtables/Makefile @ 29956

Last change on this file since 29956 was 29956, checked in by florian, 5 years ago

[package] ebtales: update to v2.0.10-4

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1#
2# Copyright (C) 2006-2012 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.10-4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/ebtables
16PKG_MD5SUM:=506742a3d44b9925955425a659c1a8d0
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  SUBMENU:=Firewall
26  DEPENDS:=+kmod-ebtables
27  TITLE:=Ethernet bridge firewall administration utility
28  URL:=http://ebtables.sourceforge.net/
29endef
30
31define Package/ebtables-utils
32  $(call Package/ebtables)
33  TITLE:=ebtables save/restore utilities
34endef
35
36define 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.
41endef
42
43define Package/ebtables-utils/description
44        $(call Package/ebtables/description)
45endef
46
47MAKE_VARS += EXT_LIBSI="$(LIBGCC_S)"
48
49MAKE_FLAGS += \
50        CFLAGS="$(TARGET_CFLAGS)" \
51        LIBDIR="/usr/lib/ebtables"
52
53define Package/ebtables/install
54        $(INSTALL_DIR) $(1)/etc
55        $(INSTALL_DATA) $(PKG_BUILD_DIR)/ethertypes $(1)/etc/
56        $(INSTALL_DIR) $(1)/usr/lib/ebtables
57        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib*.so $(1)/usr/lib/
58        $(INSTALL_BIN) $(PKG_BUILD_DIR)/extensions/*.so $(1)/usr/lib/ebtables/
59        $(INSTALL_DIR) $(1)/usr/sbin
60        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables $(1)/usr/sbin/
61endef
62
63define Package/ebtables-utils/install
64        $(INSTALL_DIR) $(1)/usr/sbin
65        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/
66        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-restore $(1)/usr/sbin/
67endef
68
69$(eval $(call BuildPackage,ebtables))
70$(eval $(call BuildPackage,ebtables-utils))
Note: See TracBrowser for help on using the repository browser.