bmx7: cleanup Makefile
[feed/routing.git] / mesh11sd / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 # Copyright (C) 2022 - 2024 BlueWave Projects and Services <licence@blue-wave.net>
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mesh11sd
11 PKG_VERSION:=4.0.1
12 PKG_RELEASE:=1
13
14 PKG_MAINTAINER:=Rob White <rob@blue-wave.net>
15 PKG_LICENSE:=GPL-2.0-or-later
16 PKG_LICENSE_FILES:=LICENSE
17
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_SOURCE_URL:=https://codeload.github.com/opennds/mesh11sd/tar.gz/v$(PKG_VERSION)?
20 PKG_HASH:=8029a0e41487d322b1bb20df05fc3ef2073b1239977f2b430b20fe7cabfe71de
21 PKG_BUILD_DIR:=$(BUILD_DIR)/mesh11sd-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/mesh11sd
26 SUBMENU:=Captive Portals
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=Dynamic 802.11s Mesh Configuration Daemon
30 PKGARCH:=all
31 URL:=https://github.com/opennds/mesh11sd
32 endef
33
34 define Package/mesh11sd/description
35 Mesh11sd is a dynamic parameter configuration daemon for 802.11s mesh networks.
36 It was originally designed to leverage 802.11s mesh networking at Captive Portal venues.
37 This is the open source version and it enables easy and automated mesh network operation with multiple mesh nodes.
38 It allows all mesh parameters supported by the wireless driver to be set in the uci config file.
39 Settings take effect immediately without having to restart the wireless network.
40 Mesh paths are stabilised when node coverage areas overlap and rssi thresholds and tx power can be dynamically adjusted.
41 Default settings give rapid and reliable layer 2 mesh convergence.
42 Without mesh11sd, many mesh parameters cannot be set in the uci wireless config file as the mesh interface must be up before the parameters can be set.
43 Some of those that are supported, would fail to be implemented when the network is (re)started resulting in errors or dropped nodes.
44 The mesh11sd daemon can dynamically check configured parameters and set them as required.
45 In auto_config mode, upstream wan connectivity is checked (eg Internet feed) and when not present, layer 2 peer mode is autonomously enabled,
46 and when it is present, layer 3 portal mode is enabled. This allows the same simple router configuration to be used on all meshnodes in the layer 2 mesh.
47 Remote terminal sessions and remote file transfers are supported using the meshnode mac address as an identifier.
48 This version does not require a Captive Portal to be running.
49 endef
50
51 define Package/mesh11sd/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_DIR) $(1)/etc/config
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mesh11sd $(1)/usr/sbin
56 $(INSTALL_CONF) $(PKG_BUILD_DIR)/linux_openwrt/mesh11sd/files/etc/config/mesh11sd $(1)/etc/config/
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_openwrt/mesh11sd/files/etc/init.d/mesh11sd $(1)/etc/init.d/
58 endef
59
60 define Package/mesh11sd/conffiles
61 /etc/config/mesh11sd
62 endef
63
64 define Build/Compile
65 endef
66
67 $(eval $(call BuildPackage,mesh11sd))