2023-02-02 21:06:08 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=netbird
|
2025-05-13 22:23:02 +08:00
|
|
|
PKG_VERSION:=0.43.3
|
2024-08-26 09:22:41 +08:00
|
|
|
PKG_RELEASE:=1
|
2023-02-02 21:06:08 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/netbirdio/netbird/tar.gz/v$(PKG_VERSION)?
|
2025-05-13 22:23:02 +08:00
|
|
|
PKG_HASH:=23474655290b23125ae269fdc89a772b4c9aeb5c854c056d61744f10a76fc3ab
|
2023-02-02 21:06:08 +08:00
|
|
|
|
2024-12-12 05:48:19 +08:00
|
|
|
PKG_MAINTAINER:=Wesley Gimenes <wehagy@proton.me>
|
2023-02-02 21:06:08 +08:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2023-03-23 15:39:01 +08:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2023-02-02 21:06:08 +08:00
|
|
|
|
|
|
|
GO_PKG:=github.com/netbirdio/netbird
|
|
|
|
GO_PKG_BUILD_PKG:=$(GO_PKG)/client
|
2023-06-26 00:43:29 +08:00
|
|
|
GO_PKG_LDFLAGS_X:=$(GO_PKG)/version.version=$(PKG_VERSION)
|
2023-02-02 21:06:08 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../../lang/golang/golang-package.mk
|
|
|
|
|
|
|
|
define Package/netbird
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=VPN
|
|
|
|
TITLE:=Connect your devices into a single secure private WireGuard®-based mesh network
|
|
|
|
URL:=https://netbird.io
|
2024-05-24 05:13:57 +08:00
|
|
|
DEPENDS:=$(GO_ARCH_DEPENDS) +kmod-wireguard
|
2023-02-02 21:06:08 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/netbird/description
|
2023-11-19 11:36:51 +08:00
|
|
|
NetBird is an open-source VPN management platform built on top of WireGuard® making it easy to create
|
2023-02-02 21:06:08 +08:00
|
|
|
secure private networks for your organization or home.
|
|
|
|
|
2023-11-19 11:36:51 +08:00
|
|
|
It requires zero configuration effort leaving behind the hassle of opening ports, complex firewall rules, VPN
|
2023-02-02 21:06:08 +08:00
|
|
|
gateways, and so forth.
|
|
|
|
endef
|
|
|
|
|
2023-06-26 00:43:29 +08:00
|
|
|
define Package/netbird/conffiles
|
|
|
|
/etc/netbird/config.json
|
|
|
|
endef
|
|
|
|
|
2023-02-02 21:06:08 +08:00
|
|
|
define Package/netbird/install
|
|
|
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/client $(1)/usr/bin/netbird
|
|
|
|
$(INSTALL_BIN) ./files/netbird.init $(1)/etc/init.d/netbird
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call GoBinPackage,netbird))
|
|
|
|
$(eval $(call BuildPackage,netbird))
|