[package] libpcap: explicitely disable libnl support to prevent different build resul...
[openwrt.git] / package / trelay / Makefile
1 #
2 # Copyright (C) 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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=trelay
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=1
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/trelay
18 SUBMENU:=Network Support
19 TITLE:=Trivial Ethernet Relay
20 DEPENDS:=@!LINUX_2_6_30 @!LINUX_2_6_31 @!LINUX_2_6_32
21 FILES:=$(PKG_BUILD_DIR)/trelay.ko
22 AUTOLOAD:=$(call AutoLoad,50,trelay)
23 endef
24
25 define KernelPackage/trelay/description
26 trelay relays ethernet packets between two devices (similar to a bridge), but
27 without any MAC address checks. This makes it possible to bridge client mode
28 or ad-hoc mode wifi devices to ethernet VLANs, assuming the remote end uses
29 the same source MAC address as the device that packets are supposed to exit
30 from.
31 endef
32
33 include $(INCLUDE_DIR)/kernel-defaults.mk
34
35 define Build/Prepare
36 mkdir -p $(PKG_BUILD_DIR)
37 cp src/Makefile src/trelay.c $(PKG_BUILD_DIR)/
38 endef
39
40 define Build/Compile
41 $(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)" modules
42 endef
43
44 define KernelPackage/trelay/install
45 $(INSTALL_DIR) $(1)/etc/hotplug.d/net $(1)/etc/init.d $(1)/etc/config
46 $(INSTALL_DATA) ./files/trelay.hotplug $(1)/etc/hotplug.d/net/50-trelay
47 $(INSTALL_BIN) ./files/trelay.init $(1)/etc/init.d/trelay
48 $(INSTALL_DATA) ./files/trelay.config $(1)/etc/config/trelay
49 endef
50
51 $(eval $(call KernelPackage,trelay))
This page took 0.054446 seconds and 5 git commands to generate.