[Bug 284877] [NEW PORT] security/netbird Peer-to-peer VPN that seamlessly connects your devices

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Mar 2025 16:42:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284877

--- Comment #11 from Hakan Sarıman <hakan.external@netbird.io> ---
Comment on attachment 258977
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258977
netbird.diff

--- security/netbird/Makefile   
+++ security/netbird/Makefile   
@@ -0,0 +1,28 @@ 
+PORTNAME=              netbird
+DISTVERSIONPREFIX=     v
+DISTVERSION=           0.39.1
+CATEGORIES=            security net net-vpn
+
+MAINTAINER=            hakan.external@netbird.io
+COMMENT=               Peer-to-peer VPN that seamlessly connects your devices
+WWW=                   https://netbird.io/
+
+LICENSE=               BSD3CLAUSE
+LICENSE_FILE=          ${WRKSRC}/LICENSE
+
+RUN_DEPENDS=           ca_root_nss>0:security/ca_root_nss
+
+USES=                  go:1.23,modules
+WRKSRC=                        ${WRKDIR}/netbird-${PORTVERSION}
+
+GO_MODULE=             github.com/netbirdio/netbird
+
+USE_RC_SUBR=           netbird
+
+GO_TARGET=             ./client:netbird
+GO_BUILDFLAGS=         -tags freebsd -o ${PORTNAME} -ldflags "\
+                       -s -w -X
github.com/netbirdio/netbird/version.version=${PORTVERSION}"
+
+PLIST_FILES=           bin/netbird
+
+.include <bsd.port.mk>
--- security/netbird/distinfo   
+++ security/netbird/distinfo   
@@ -0,0 +1,5 @@ 
+TIMESTAMP = 1742852308
+SHA256 (go/security_netbird/netbird-v0.39.1/v0.39.1.mod) =
4b3851a92a8808b14d1c51e73117c6a17dacff5c3b52be52d8b4f69c551e883e
+SIZE (go/security_netbird/netbird-v0.39.1/v0.39.1.mod) = 12115
+SHA256 (go/security_netbird/netbird-v0.39.1/v0.39.1.zip) =
8b93a3b37beed5c2273b233be3c214e6d3973bdfa05eaed160e4d9710ef51252
+SIZE (go/security_netbird/netbird-v0.39.1/v0.39.1.zip) = 2795922
--- /dev/null   
+++ security/netbird/files/netbird.in   
@@ -0,0 +1,18 @@ 
+#!/bin/sh
+#
+# PROVIDE: netbird
+# REQUIRE: SERVERS
+# KEYWORD: shutdown
+#
+
+. /etc/rc.subr
+
+name="netbird"
+netbird_env="IS_DAEMON=1"
+pidfile="/var/run/${name}.pid"
+command="/usr/sbin/daemon"
+daemon_args="-P ${pidfile} -r -t \"${name}: daemon\""
+command_args="${daemon_args} /usr/local/bin/netbird service run --config
/var/db/netbird/config.json --log-level info --daemon-addr
unix:///var/run/netbird.sock --log-file /var/log/netbird/client.log"
+
+run_rc_command "$1"
+
--- /dev/null   
+++ security/netbird/pkg-descr  
@@ -0,0 +1,18 @@ 
+NetBird is an open-source WireGuard-based overlay network combined with
+Zero Trust Network Access, providing secure and reliable connectivity
+to internal resources.
+
+Key features:
+- Zero-config VPN: Easily create secure connections between devices without
+manual network setup.
+- Built on WireGuard: Leverages WireGuard's high-performance encryption for
+fast and secure communication.
+- Self-hosted or Cloud-managed: Users can deploy their own NetBird management
+server or use NetBird Cloud for centralized control.
+- Access Control & Routing: Fine-grained access control policies and automatic
+network routing simplify connectivity.
+- This FreeBSD port provides the NetBird client daemon and CLI tools, allowing
+FreeBSD systems to join a NetBird mesh network and securely communicate with
+other peers.
+
+For more details, visit: https://netbird.io

-- 
You are receiving this mail because:
You are the assignee for the bug.