diff options
author | John Crispin <john@openwrt.org> | 2013-06-21 16:54:37 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-06-21 16:54:37 +0000 |
commit | 4ebf19b48fafc8d94e14e4ba779969613b241a6a (patch) | |
tree | 9918f890a8915023b49ea30948beb5d048c333fa /package/kernel/trelay/Makefile | |
parent | 44b1688e6c7b4f16f7165fbd560e1183aef69090 (diff) | |
download | upstream-4ebf19b48fafc8d94e14e4ba779969613b241a6a.tar.gz upstream-4ebf19b48fafc8d94e14e4ba779969613b241a6a.tar.bz2 upstream-4ebf19b48fafc8d94e14e4ba779969613b241a6a.zip |
packages: clean up the package folder
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37007
Diffstat (limited to 'package/kernel/trelay/Makefile')
-rw-r--r-- | package/kernel/trelay/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/package/kernel/trelay/Makefile b/package/kernel/trelay/Makefile new file mode 100644 index 0000000000..82c41018a7 --- /dev/null +++ b/package/kernel/trelay/Makefile @@ -0,0 +1,50 @@ +# +# 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 +PKG_VERSION:=0.1 +PKG_RELEASE:=1 + +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/Prepare + mkdir -p $(PKG_BUILD_DIR) + cp src/Makefile src/trelay.c $(PKG_BUILD_DIR)/ +endef + +define Build/Compile + $(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)" modules +endef + +define KernelPackage/trelay/install + $(INSTALL_DIR) $(1)/etc/hotplug.d/net $(1)/etc/init.d $(1)/etc/config + $(INSTALL_DATA) ./files/trelay.hotplug $(1)/etc/hotplug.d/net/50-trelay + $(INSTALL_BIN) ./files/trelay.init $(1)/etc/init.d/trelay + $(INSTALL_DATA) ./files/trelay.config $(1)/etc/config/trelay +endef + +$(eval $(call KernelPackage,trelay)) |