include $(TOPDIR)/rules.mk
PKG_NAME:=netbird
-PKG_VERSION:=0.23.9
+PKG_VERSION:=0.24.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/netbirdio/netbird/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=1b037f35d3e426d8cbeba17e4d89d12265cd7e6fbd7c975ce552293e468db35a
+PKG_HASH:=7fd90c6004c7fde6393bd618e106410e708f2d84f7884055acda6b016be42858
PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
PKG_LICENSE:=BSD-3-Clause
endef
define Package/netbird/description
- NetBird is an open-source VPN management platform built on top of WireGuard® making it easy to create
+ NetBird is an open-source VPN management platform built on top of WireGuard® making it easy to create
secure private networks for your organization or home.
- It requires zero configuration effort leaving behind the hassle of opening ports, complex firewall rules, VPN
+ It requires zero configuration effort leaving behind the hassle of opening ports, complex firewall rules, VPN
gateways, and so forth.
endef
/etc/netbird/config.json
endef
+# Workaround for musl 1.2.4 compability in mattn/go-sqlite3
+# https://github.com/mattn/go-sqlite3/issues/1164
+ifneq ($(CONFIG_USE_MUSL),)
+ TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
+endif
+
define Package/netbird/install
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
#!/bin/sh /etc/rc.common
+. /lib/netifd/netifd-proto.sh
+
START=99
STOP=10
USE_PROCD=1
+service_triggers() {
+ procd_add_interface_trigger "interface.*" "wan" /etc/init.d/netbird restart
+}
+
start_service() {
+ local device
+
procd_open_instance
procd_set_param command /usr/bin/netbird
procd_append_param command service run