Skip to content

Commit 7b3d033

Browse files
oskarirauta1715173329
authored andcommitted
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 <[email protected]>
1 parent 7b0db88 commit 7b3d033

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

net/netbird/Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=netbird
4-
PKG_VERSION:=0.23.9
4+
PKG_VERSION:=0.24.2
55
PKG_RELEASE:=1
66

77
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
88
PKG_SOURCE_URL:=https://codeload.github.com/netbirdio/netbird/tar.gz/v$(PKG_VERSION)?
9-
PKG_HASH:=1b037f35d3e426d8cbeba17e4d89d12265cd7e6fbd7c975ce552293e468db35a
9+
PKG_HASH:=7fd90c6004c7fde6393bd618e106410e708f2d84f7884055acda6b016be42858
1010

1111
PKG_MAINTAINER:=Oskari Rauta <[email protected]>
1212
PKG_LICENSE:=BSD-3-Clause
@@ -33,17 +33,23 @@ define Package/netbird
3333
endef
3434

3535
define Package/netbird/description
36-
NetBird is an open-source VPN management platform built on top of WireGuard® making it easy to create
36+
NetBird is an open-source VPN management platform built on top of WireGuard® making it easy to create
3737
secure private networks for your organization or home.
3838

39-
It requires zero configuration effort leaving behind the hassle of opening ports, complex firewall rules, VPN
39+
It requires zero configuration effort leaving behind the hassle of opening ports, complex firewall rules, VPN
4040
gateways, and so forth.
4141
endef
4242

4343
define Package/netbird/conffiles
4444
/etc/netbird/config.json
4545
endef
4646

47+
# Workaround for musl 1.2.4 compability in mattn/go-sqlite3
48+
# https://github.com/mattn/go-sqlite3/issues/1164
49+
ifneq ($(CONFIG_USE_MUSL),)
50+
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
51+
endif
52+
4753
define Package/netbird/install
4854
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
4955
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d

net/netbird/files/netbird.init

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
#!/bin/sh /etc/rc.common
22

3+
. /lib/netifd/netifd-proto.sh
4+
35
START=99
46
STOP=10
57

68
USE_PROCD=1
79

10+
service_triggers() {
11+
procd_add_interface_trigger "interface.*" "wan" /etc/init.d/netbird restart
12+
}
13+
814
start_service() {
15+
local device
16+
917
procd_open_instance
1018
procd_set_param command /usr/bin/netbird
1119
procd_append_param command service run

0 commit comments

Comments
 (0)