netbird: update to version 0.24.2

Release notes: https://github.com/netbirdio/netbird/releases/tag/v0.24.2

Also fixes issue of not being able to build with musl (>1.2.4)

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
This commit is contained in:
Oskari Rauta 2023-11-19 05:36:51 +02:00 committed by Tianling Shen
parent 7b0db88b44
commit 7b3d033ab6
2 changed files with 18 additions and 4 deletions

View File

@ -1,12 +1,12 @@
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
@ -44,6 +44,12 @@ define Package/netbird/conffiles
/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

View File

@ -1,11 +1,19 @@
#!/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