Skip to content

Commit

Permalink
wfb-ng: Add wfb-ng package
Browse files Browse the repository at this point in the history
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
svpcom committed Sep 17, 2024
1 parent f73bf31 commit de9bb23
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions net/wfb-ng/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=wfb-ng
PKG_VERSION:=24.9.1
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:=a41cd378e7e23dd094d6c50f26c4faa8e64e5954
PKG_MIRROR_HASH:=362b3d4262e78ae0885cc25cea34e553dc29e1941be47724ece796bd35220d88

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
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/
endef

$(eval $(call BuildPackage,wfb-ng))

0 comments on commit de9bb23

Please sign in to comment.