| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 BlueWave Projects and Services <licence@blue-wave.net> |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=mesh11sd |
| 11 | PKG_VERSION:=1.2.0 |
| 12 | PKG_RELEASE:=$(AUTORELEASE) |
| 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:=b719eaacf63eb3684d0cd6a026f4357a4f400f2339f5d5a6cf74ba3744fe30d8 |
| 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 | Default settings give rapid and reliable layer 2 mesh convergence. |
| 41 | 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. |
| 42 | Some of those that are supported, would fail to be implemented when the network is (re)started resulting in errors or dropped nodes. |
| 43 | The mesh11sd daemon dynamically checks configured parameters and sets them as required. |
| 44 | This version does not require a Captive Portal to be running. |
| 45 | endef |
| 46 | |
| 47 | define Package/mesh11sd/install |
| 48 | $(INSTALL_DIR) $(1)/usr/sbin |
| 49 | $(INSTALL_DIR) $(1)/etc/config |
| 50 | $(INSTALL_DIR) $(1)/etc/init.d |
| 51 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mesh11sd $(1)/usr/sbin |
| 52 | $(INSTALL_CONF) $(PKG_BUILD_DIR)/linux_openwrt/mesh11sd/files/etc/config/mesh11sd $(1)/etc/config/ |
| 53 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_openwrt/mesh11sd/files/etc/init.d/mesh11sd $(1)/etc/init.d/ |
| 54 | endef |
| 55 | |
| 56 | define Package/mesh11sd/conffiles |
| 57 | /etc/config/mesh11sd |
| 58 | endef |
| 59 | |
| 60 | define Build/Compile |
| 61 | endef |
| 62 | |
| 63 | $(eval $(call BuildPackage,mesh11sd)) |