package/pkg-golang.mk: allow packages to override download GOPROXY
PATCH 1/2 package/pkg-golang.mk: allow packages to override download GOPROXY
Some packages like the upcoming netbird package need to set GOPROXY to get the correct dependencies.
Signed-off-by James Hilliard <[email protected]>
--- package/pkg-golang.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/pkg-golang.mk +3 -1
@@ -85,10 +85,12 @@ define $(2)_GEN_GOMOD endef $(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD +$(2)_DL_GOPROXY ?= direct + $(2)_DOWNLOAD_POST_PROCESS = go $(2)_DL_ENV += \ $$(HOST_GO_COMMON_ENV) \ - GOPROXY=direct \ + GOPROXY=$$($(2)_DL_GOPROXY) \ $$($(2)_GO_ENV) # Because we append vendored info, we can't rely on the values being empty
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/netbird: new package
Signed-off-by James Hilliard <[email protected]>
--- DEVELOPERS | 1 + package/Config.in | 1 + package/netbird/Config.in | 10 ++++++++++ package/netbird/netbird.hash | 3 +++ package/netbird/netbird.mk | 26 ++++++++++++++++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 package/netbird/Config.in create mode 100644 package/netbird/netbird.hash create mode 100644 package/netbird/netbird.mk
DEVELOPERS +1 -0
@@ -1520,6 +1520,7 @@ F: package/libucontext/ F: package/lilv/ F: package/lv2/ F: package/neon-2-sse/ +F: package/netbird/ F: package/pipewire/ F: package/python* F: package/rtl8192eu/
package/Config.in +1 -0
@@ -2541,6 +2541,7 @@ endif source "package/ndisc6/Config.in" source "package/net-tools/Config.in" source "package/netatalk/Config.in" + source "package/netbird/Config.in" source "package/netcalc/Config.in" source "package/netcat/Config.in" source "package/netcat-openbsd/Config.in"
package/netbird/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_NETBIRD + bool "netbird" + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_GO + help + Connect your devices into a secure WireGuard-based + overlay network with SSO, MFA and granular access + controls. + + https://github.com/netbirdio/netbird
package/netbird/netbird.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 6dc1b40d23e4c5ef71e0dfdb504ff5cd8238e3eef6e2fed682adc0ffb9c769b3 netbird-0.29.1-go2.tar.gz +sha256 c9f34c452ac8f054df592e3eeca0e271b91e8010c0fc6cf8c76aabf547a9388d LICENSE
package/netbird/netbird.mk new file +26 -0
@@ -0,0 +1,26 @@ +################################################################################ +# +# netbird +# +################################################################################ + +NETBIRD_VERSION = 0.29.1 +NETBIRD_SITE = $(call github,netbirdio,netbird,v$(NETBIRD_VERSION)) +NETBIRD_LICENSE = BSD-3-Clause +NETBIRD_LICENSE_FILES = LICENSE +NETBIRD_GOMOD = github.com/netbirdio/netbird +NETBIRD_BUILD_TARGETS = client +NETBIRD_DL_GOPROXY = https://proxy.golang.org +NETBIRD_LDFLAGS = \ + -X github.com/netbirdio/netbird/version.version=$(NETBIRD_VERSION) + +define NETBIRD_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/bin/client $(TARGET_DIR)/usr/bin/netbird +endef + +define NETBIRD_LINUX_CONFIG_FIXUPS + $(call KCONFIG_ENABLE_OPT,CONFIG_TUN) + $(call KCONFIG_ENABLE_OPT,CONFIG_WIREGUARD) +endef + +$(eval $(golang-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/netbird: new package
Hi James,
package/netbird/netbird.mk line 8
Quoted 2 lines · James Hilliard
package/netbird/netbird.mk new file +2
-0+NETBIRD_VERSION = 0.29.1 +NETBIRD_SITE = $(call github,netbirdio,netbird,v$(NETBIRD_VERSION))
We merged the PR to update to go1.23.x so you should be able to update this to the latest version now.
There is also a PR open to fix the gvisor dependency:
https://github.com/netbirdio/netbird/pull/2789
Best regards,
Christian Stewart
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot