From nobody Wed Jun 18 17:58:15 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMs0m2Dblz5pwDP; Wed, 18 Jun 2025 17:58:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMs0m09sbz3WqF; Wed, 18 Jun 2025 17:58:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750269496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1/UAWJ8k+oifCQ9lmKd6SMtHJnbxCd9AwNfz1E+PCHg=; b=NF242oSkXxSwhBXaZh+yQ0uWfWQ5YHrGPFRBkHeIHmOWTdkV9Iq/v5NXBxQ5HcFEmJvV8b /zCOQmShjxb3piXlFOWe1mrjw0nLwql0zFLZhO3JBbZhLjSOL4/DluMT/zw1hWCLgiLohR YFO1bfD30aDfh+4LM92gHHD9ypoM5jdhkw2u973vNdo4X9bZ9TJW+z5hWQDgFtlKii8LZS rjtfrR6hvjkg6wWaKlkJCpyt/8JusmNwu0R2UMr6d52sCNfd5kmnTNIlYjqqJKcZ7WnLMt xIFgtI72DT/JpM0EL6b8uZIU19XFrtnQ6v/mdx58+R0KDQ8gWTlfZxL+yGwGcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750269496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1/UAWJ8k+oifCQ9lmKd6SMtHJnbxCd9AwNfz1E+PCHg=; b=BMuN9IJQV/Ti7q600sQJlipfgT8zDp6H0EvZ08piORUZZOR3jC8EoWzJrPOM15DPCGAD2w DP7ALLcsUOzFld5c2oiiiI7nvDxnM9AfJg2SWmOxCOJAk64C2oxkcJiesxccZqPRPfYUuE xJ7Wty4ldb0A+2u4WNDUKxAd7SmjHiZ31E4/4YyDWwNY8MPRHkCsqKFzWBQcVIaDVK2pHy jlmnf17BNAwIkUX1BGy3YMCEcbv0/pRopgLfHElIAryZu0tjZ1005cSAwhSj8H1PBaX5AN 2JWf/4zKaQybGT6LxIXtgdasG163O6TCF3QgukuxPF8tAPQtGQaVhUZN7YbUEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750269496; a=rsa-sha256; cv=none; b=YUt7zYlzZ7mwskh95y2IO9ZL7kHyH6WamP1HqQ2iqeKTnXDHjwEO/K1Q0LgUM4ZKieyx56 nyO7HvFJ9pQHVGwt7Ln+pONjwXd0lCC2c/binon25gtB0JruysCqqirqtM0k0J9wVKPXND K8XfJpg25zi5qpsLs8vypugbuZH0eMwj+WRYnqyt7Oh4vllBhVPTQlgn0e9wT8gbqg+mb7 Dbl7DWLUnTeXI7qgxM6jqpBqACKhaP5n/NgiFuuWDha8KnZ8xp70K40F0IsLfe3whKm/jN hGjAck80qqKktYBM/r5xIj9YrbIOGSTqBY2ikF0xbl5gOYftWmOiZEZUWWhUSg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bMs0l6hC3zgln; Wed, 18 Jun 2025 17:58:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55IHwF7K093207; Wed, 18 Jun 2025 17:58:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55IHwFMU093204; Wed, 18 Jun 2025 17:58:15 GMT (envelope-from git) Date: Wed, 18 Jun 2025 17:58:15 GMT Message-Id: <202506181758.55IHwFMU093204@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: f461db476ca6 - main - security/netbird: Update 0.46.0 => 0.47.2 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f461db476ca666320139604e1f4e663a7671f53b Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=f461db476ca666320139604e1f4e663a7671f53b commit f461db476ca666320139604e1f4e663a7671f53b Author: Hakan Sarıman AuthorDate: 2025-06-18 17:42:51 +0000 Commit: Vladimir Druzenko CommitDate: 2025-06-18 17:56:18 +0000 security/netbird: Update 0.46.0 => 0.47.2 Changelogs: https://github.com/netbirdio/netbird/releases/tag/v0.47.0 https://github.com/netbirdio/netbird/releases/tag/v0.47.1 https://github.com/netbirdio/netbird/releases/tag/v0.47.2 Improve rc script: honor $PREFIX, parameterize some file paths and add description for parameters. PR: 287622 286830 Co-authored-by: Chad Jacob Milios --- security/netbird/Makefile | 2 +- security/netbird/distinfo | 10 +++++----- security/netbird/files/netbird.in | 30 +++++++++++++++++++++++++++--- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/security/netbird/Makefile b/security/netbird/Makefile index 3ec044655c2c..c5ddbbccf8b7 100644 --- a/security/netbird/Makefile +++ b/security/netbird/Makefile @@ -1,6 +1,6 @@ PORTNAME= netbird DISTVERSIONPREFIX= v -DISTVERSION= 0.46.0 +DISTVERSION= 0.47.2 CATEGORIES= security net net-vpn MAINTAINER= hakan.external@netbird.io diff --git a/security/netbird/distinfo b/security/netbird/distinfo index 64e67b6a9e3d..76ba6e320c5e 100644 --- a/security/netbird/distinfo +++ b/security/netbird/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1748220687 -SHA256 (go/security_netbird/netbird-v0.46.0/v0.46.0.mod) = cdc86fce5a03992a2bd01ec200cd72fc4b0f645af6e1427c3b8b7edbe370f5af -SIZE (go/security_netbird/netbird-v0.46.0/v0.46.0.mod) = 12507 -SHA256 (go/security_netbird/netbird-v0.46.0/v0.46.0.zip) = 8a9c779ced7d80a80f780b8957b48a4de1a95816b74cf869ea2d39f630e84422 -SIZE (go/security_netbird/netbird-v0.46.0/v0.46.0.zip) = 2898585 +TIMESTAMP = 1749687672 +SHA256 (go/security_netbird/netbird-v0.47.2/v0.47.2.mod) = dd8e2b5f3ee570d2ef933101c6fb7bc5de05dae258f0c7ea7602e8db42238acb +SIZE (go/security_netbird/netbird-v0.47.2/v0.47.2.mod) = 12507 +SHA256 (go/security_netbird/netbird-v0.47.2/v0.47.2.zip) = 8671becd05ff5437daa98b34e76819cd0908c1a040f49a369c9e26ed8cc64831 +SIZE (go/security_netbird/netbird-v0.47.2/v0.47.2.zip) = 2917482 diff --git a/security/netbird/files/netbird.in b/security/netbird/files/netbird.in index 191491ea3604..a05f7f099ee0 100644 --- a/security/netbird/files/netbird.in +++ b/security/netbird/files/netbird.in @@ -4,15 +4,39 @@ # REQUIRE: SERVERS # KEYWORD: shutdown # +# Add the following lines to /etc/rc.conf to enable this service: +# +# netbird_enable (bool): Set it to YES to run netbird on startup. +# Default: NO +# netbird_config (path): Path to the netbird configuration file. +# Default: /var/db/netbird/config.json +# netbird_socket (path): Path to the Unix-domain socket for daemon communication. +# Default: /var/run/netbird.sock +# netbird_loglevel (str): Set to 'panic', 'fatal', 'error', 'warn', 'info', 'debug' or 'trace'. +# Default: 'info' +# netbird_logfile (path): Path to the client log file. +# Default: /var/log/netbird/client.log +# netbird_env (str): Extra environment variables for the daemon, in KEY=VALUE format. +# Default: 'IS_DAEMON=1' +# . /etc/rc.subr name="netbird" -netbird_env="IS_DAEMON=1" +rcvar="${name}_enable" + +load_rc_config "$name" + +: ${netbird_enable:="NO"} +: ${netbird_config:="/var/db/netbird/config.json"} +: ${netbird_socket:="/var/run/netbird.sock"} +: ${netbird_loglevel:="info"} +: ${netbird_logfile:="/var/log/netbird/client.log"} +: ${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" +command_args="${daemon_args} %%PREFIX%%/bin/netbird service run --config ${netbird_config} --log-level ${netbird_loglevel} --daemon-addr unix://${netbird_socket} --log-file ${netbird_logfile}" run_rc_command "$1" -