2012-03-28 11:02:38 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=trelay
|
2018-09-19 01:32:18 +00:00
|
|
|
PKG_RELEASE:=2
|
2012-03-28 11:02:38 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/trelay
|
|
|
|
SUBMENU:=Network Support
|
|
|
|
TITLE:=Trivial Ethernet Relay
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/trelay.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,50,trelay)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/trelay/description
|
|
|
|
trelay relays ethernet packets between two devices (similar to a bridge), but
|
|
|
|
without any MAC address checks. This makes it possible to bridge client mode
|
|
|
|
or ad-hoc mode wifi devices to ethernet VLANs, assuming the remote end uses
|
|
|
|
the same source MAC address as the device that packets are supposed to exit
|
|
|
|
from.
|
|
|
|
endef
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/kernel-defaults.mk
|
|
|
|
|
|
|
|
define Build/Compile
|
2020-01-20 14:42:00 +00:00
|
|
|
$(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
|
2012-03-28 11:02:38 +00:00
|
|
|
endef
|
|
|
|
|
2015-04-02 14:53:41 +00:00
|
|
|
define KernelPackage/trelay/conffiles
|
|
|
|
/etc/config/trelay
|
|
|
|
endef
|
|
|
|
|
2012-03-28 11:02:38 +00:00
|
|
|
define KernelPackage/trelay/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/net $(1)/etc/init.d $(1)/etc/config
|
2018-09-19 01:32:18 +00:00
|
|
|
$(INSTALL_CONF) ./files/trelay.hotplug $(1)/etc/hotplug.d/net/50-trelay
|
2012-03-28 11:02:38 +00:00
|
|
|
$(INSTALL_BIN) ./files/trelay.init $(1)/etc/init.d/trelay
|
2018-09-19 01:32:18 +00:00
|
|
|
$(INSTALL_CONF) ./files/trelay.config $(1)/etc/config/trelay
|
2012-03-28 11:02:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,trelay))
|