-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WFB-ng is long-range packet radio link based on raw WiFi radio. Adding it to openwrt base packages will help a lot of it users to use cheap wifi routers (supporting minitoring mode) instead of build custom hardware yourself. Signed-off-by: Vasily Evseenko <[email protected]>
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=wfb-ng | ||
PKG_VERSION:=24.9.3 | ||
PKG_RELEASE:=1 | ||
PKG_LICENSE:=GPL-3.0-only | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/svpcom/wfb-ng.git | ||
PKG_SOURCE_VERSION:=wfb-ng-24.09-openwrt-preview | ||
PKG_MIRROR_HASH:=afa8bd06d3119e3fa8edc10d4a205e8b9ad21d0157e151aecba4dc24329a0d76 | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
PKG_MAINTAINER:=Vasily Evseenko <[email protected]> | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Build/Compile | ||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \ | ||
$(MAKE_FLAGS) \ | ||
VERSION=$(PKG_VERSION) COMMIT=$(PKG_SOURCE_VERSION) \ | ||
all_bin | ||
endef | ||
|
||
define Package/wfb-ng | ||
SECTION:=net | ||
CATEGORY:=Network | ||
DEPENDS:=+libpcap +libsodium +libstdcpp | ||
TITLE:=Long-range packet radio link using raw WiFi | ||
URL:=https://github.com/svpcom/wfb-ng | ||
SUBMENU:=Wireless | ||
endef | ||
|
||
define Package/wfb-ng/description | ||
The next generation of long-range packet radio link using raw WiFi | ||
This is a base version that have only binaries and can act as cluster node, | ||
standalone receiver or transmitter without diversity. | ||
endef | ||
|
||
define Package/wfb-ng/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wfb_rx $(1)/usr/bin/ | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wfb_tx $(1)/usr/bin/ | ||
$(INSTALL_DIR) $(1)/etc/init.d | ||
$(INSTALL_BIN) ./files/wfb-ng.init $(1)/etc/init.d/wfb-ng | ||
endef | ||
|
||
$(eval $(call BuildPackage,wfb-ng)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
START=99 | ||
STOP=10 | ||
|
||
USE_PROCD=1 | ||
NAME=wfb-ng | ||
|
||
SYSUPGRADE_CONF="/etc/sysupgrade.conf" | ||
WFB_INIT="/usr/sbin/wfb-ng.sh" | ||
|
||
if [ -f $SYSUPGRADE_CONF ] && [ -x $WFB_INIT ] && ! grep -q $WFB_INIT $SYSUPGRADE_CONF | ||
then | ||
echo $WFB_INIT >> $SYSUPGRADE_CONF | ||
fi | ||
|
||
start_service() { | ||
if [ -x $WFB_INIT ]; then | ||
procd_open_instance wfb-ng | ||
procd_set_param command $WFB_INIT | ||
procd_set_param respawn | ||
procd_set_param stdout 1 | ||
procd_set_param stderr 1 | ||
procd_close_instance | ||
fi | ||
} |