From nobody Tue Feb 07 14:45:38 2023 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 4PB5XL6PzSz3n4HG; Tue, 7 Feb 2023 14:45:38 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PB5XL5jfCz3mF0; Tue, 7 Feb 2023 14:45:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675781138; 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=+vZ3o6+Y/cswgU2iFwvXKlVjph4wpp8nfP1ZneQ0j8Q=; b=SIV7658m+QUsLzOMNj+daMO93bTNK22GBdqY7mIuwNlM5K9YXCFCGJySSt9mZPCavsbo8o JWcejeNwrczg76hzr/LcaZDDr69RsjP9723ulUyU7X/6SYc77L1Ymb1JHrR/FkfsjTZiku xXOpEpd0eD0dJqEFySn4n6tBPyDrlWpvXSr+HCGCtqGyN0WQgb6utgLq4w1fj/ASYBafLk Vb0mdPGy/lip1ZJyMCj65zFIj6pLHUZkEKHOTvzJBcjXExMSm3xnFh4zOulEtXYKRiKOo8 U7GQM9Aiq/g5FWqxJCg+t6lcthU/OVqG+PfIAD3PT47HP1H0SqqSunwHcgA6MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675781138; 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=+vZ3o6+Y/cswgU2iFwvXKlVjph4wpp8nfP1ZneQ0j8Q=; b=d4CjFG+LIukYV01M3l0qfyFptHHhRrZ6BjXfh3FRyegM0s/r1u98+s1OvcUbMqqeph2w+G kMyWf2R7ZiuX3+Bvo9SCPUS1rtuhpr5B3HI4XRWxKzhmeNO1MAQJXgdk9AsyMhR3PbX8wz O016kFYl55fNhZ9iafeu0+15vD60W0UeN9rafgzffreMzl+fDQ4AE+9vv9x2lZ7HKwMi0H tt3AO+39ESeKizsQbzmlJJffuYaRcnKYUsTxCUwB3mfU5MUx41zqAC6HkO5FG25oUookS1 kqtm1KjEYHBryLvf37+tjioL4qPTawkCj9K0AHNIoBke13BSqLu4KrRdIkZFpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675781138; a=rsa-sha256; cv=none; b=ITue4EUelhvMA5b66GyygXZyKDvq1HL/DfiEMVuSiMu2MhXqKflpRmKXvkCtX4h4rSGceK WIp1TP1RwBusCTAX3KKFZ4EXNnW4dN4hBsaFA/uaoArb3Ih9gbUVNHJsiIrmL5jCeKkorP a4qDgLc8bUnWOii4mikdAn4TDDCQfAulrxujsHMhlZIb+v1iOXr0x04NkVV1gj4vrG0QqF ydsF/4myzssvSw6TrFRvv0DBPpMabPcampuSjIuHRsDMc8iauXlyGKvs7kdj54s0mx1lgw DmBoxgvPV4gZU4jOYkFuFMo65gol6DLGlvm0KQZkr7HBQQ/e0KKkT2ID80cWRg== 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 4PB5XL4lnnzKvk; Tue, 7 Feb 2023 14:45:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 317Ejc6N060620; Tue, 7 Feb 2023 14:45:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 317EjcJk060619; Tue, 7 Feb 2023 14:45:38 GMT (envelope-from git) Date: Tue, 7 Feb 2023 14:45:38 GMT Message-Id: <202302071445.317EjcJk060619@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kirill Ponomarev Subject: git: 9579e6273dbf - main - sysutils/cbsd: Update to 13.1.22 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: krion X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9579e6273dbf8b243f3f15a9560e31ac24082d13 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by krion: URL: https://cgit.FreeBSD.org/ports/commit/?id=9579e6273dbf8b243f3f15a9560e31ac24082d13 commit 9579e6273dbf8b243f3f15a9560e31ac24082d13 Author: Kirill Ponomarev AuthorDate: 2023-02-07 14:44:44 +0000 Commit: Kirill Ponomarev CommitDate: 2023-02-07 14:44:44 +0000 sysutils/cbsd: Update to 13.1.22 Changes: https://github.com/cbsd/cbsd/releases/tag/v13.1.22 --- sysutils/cbsd/Makefile | 2 +- sysutils/cbsd/distinfo | 6 +++--- sysutils/cbsd/files/cbsd-statsd-bhyve.in | 4 ++-- sysutils/cbsd/files/cbsd-statsd-jail.in | 16 ++++++++++------ sysutils/cbsd/pkg-plist | 3 ++- 5 files changed, 18 insertions(+), 13 deletions(-) diff --git a/sysutils/cbsd/Makefile b/sysutils/cbsd/Makefile index 03573641a5e6..f03bd509102c 100644 --- a/sysutils/cbsd/Makefile +++ b/sysutils/cbsd/Makefile @@ -1,5 +1,5 @@ PORTNAME= cbsd -DISTVERSION= 13.1.21 +DISTVERSION= 13.1.22 CATEGORIES= sysutils MAINTAINER= olevole@olevole.ru diff --git a/sysutils/cbsd/distinfo b/sysutils/cbsd/distinfo index 72a67c81ae74..63d8ad5ed359 100644 --- a/sysutils/cbsd/distinfo +++ b/sysutils/cbsd/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1673263052 -SHA256 (cbsd-cbsd-13.1.21_GH0.tar.gz) = 5db2d3039b9d33f2eed4564508ee2e8ba2d5fba7ca9fd23a38edf5da867ff07f -SIZE (cbsd-cbsd-13.1.21_GH0.tar.gz) = 6491392 +TIMESTAMP = 1675691336 +SHA256 (cbsd-cbsd-13.1.22_GH0.tar.gz) = 690102d823657f7ba0fdc85ee5a01f45bfb7a32f1886b9abb101c537cad8faf1 +SIZE (cbsd-cbsd-13.1.22_GH0.tar.gz) = 6495176 diff --git a/sysutils/cbsd/files/cbsd-statsd-bhyve.in b/sysutils/cbsd/files/cbsd-statsd-bhyve.in index 6aa40abc7f8f..be56087326c1 100644 --- a/sysutils/cbsd/files/cbsd-statsd-bhyve.in +++ b/sysutils/cbsd/files/cbsd-statsd-bhyve.in @@ -40,14 +40,14 @@ if [ ! -f ${subr} ]; then fi . ${globalconf} -. ${subr} +. ${subrdir}/nc.subr cbsd_statsd_bhyve_start() { local args= racct_enabled= # RACCT enabled? - racct_enabled=$( /sbin/sysctl -qn kern.racct.enable ) + racct_enabled=$( sysctl -qn kern.racct.enable ) [ $? -ne 0 ] && err 1 "cbsd-statsd-bhyve: RACCT not enabled" [ "${racct_enabled}" != "1" ] && err 1 "cbsd-statsd-bhyve: RACCT not enabled" diff --git a/sysutils/cbsd/files/cbsd-statsd-jail.in b/sysutils/cbsd/files/cbsd-statsd-jail.in index e650b07ab252..d109f76ebbbd 100644 --- a/sysutils/cbsd/files/cbsd-statsd-jail.in +++ b/sysutils/cbsd/files/cbsd-statsd-jail.in @@ -24,11 +24,9 @@ restart_cmd=${name}_restart extra_commands="restart" command="%%PREFIX%%/cbsd/tools/racct-jail-statsd" -pidfile="/var/run/$name.pid" +pidfile="${cbsd_workdir}/var/run/${name}.pid" command_args="&" -pidfile=/var/run/racct-jail-statsd.pid - if [ ! -f ${globalconf} ]; then echo "cbsd: no such ${globalconf}"; exit 1 @@ -40,14 +38,14 @@ if [ ! -f ${subr} ]; then fi . ${globalconf} -. ${subr} +. ${subrdir}/nc.subr cbsd_statsd_jail_start() { - local args= racct_enabled= + local args= racct_enabled= pool_name= prometheus_listen4= prometheus_listen6= prometheus_port= # RACCT enabled? - racct_enabled=$( /sbin/sysctl -qn kern.racct.enable ) + racct_enabled=$( sysctl -qn kern.racct.enable ) [ $? -ne 0 ] && err 1 "cbsd-statsd-jail: RACCT not enabled" [ "${racct_enabled}" != "1" ] && err 1 "cbsd-statsd-jail: RACCT not enabled" @@ -56,6 +54,12 @@ cbsd_statsd_jail_start() [ -n "${log_level}" ] && args="${args} --log_level=${log_level}" [ -n "${loop_interval}" ] && args="${args} --loop_interval=${loop_interval}" [ -n "${save_loop_count}" ] && args="${args} --save_loop_count=${save_loop_count}" + [ -z "${pool_name}" ] && pool_name=$( hostname ) + [ -n "${pool_name}" ] && args="${args} --pool_name=${pool_name}" + [ -n "${prometheus_listen4}" ] && args="${args} --prometheus_listen4=${prometheus_listen4}" + [ -n "${prometheus_listen6}" ] && args="${args} --prometheus_listen6=${prometheus_listen6}" + [ -z "${prometheus_port}" ] && prometheus_port=9999 + [ -n "${prometheus_port}" ] && args="${args} --prometheus_port=${prometheus_port}" case "${prometheus_exporter_enable}" in [Yy][Ee][Ss]) diff --git a/sysutils/cbsd/pkg-plist b/sysutils/cbsd/pkg-plist index bf81ea105589..d34bc72d4895 100644 --- a/sysutils/cbsd/pkg-plist +++ b/sysutils/cbsd/pkg-plist @@ -202,7 +202,7 @@ cbsd/etc/defaults/vm-freebsd-FreeBSD-x64-14.0-LATEST.conf cbsd/etc/defaults/vm-freebsd-GhostBSD-x64-22.conf cbsd/etc/defaults/vm-freebsd-HardenedBSD-x64-13-STABLE.conf cbsd/etc/defaults/vm-freebsd-MidnightBSD-x64-2.conf -cbsd/etc/defaults/vm-freebsd-OPNsense-22-RELEASE-amd64.conf +cbsd/etc/defaults/vm-freebsd-OPNsense-23-RELEASE-amd64.conf cbsd/etc/defaults/vm-freebsd-TrueNAS-CORE-x64-13.conf cbsd/etc/defaults/vm-freebsd-XigmaNAS-13.conf cbsd/etc/defaults/vm-freebsd-cloud-firestarter-ufs-x64-14.conf @@ -970,6 +970,7 @@ cbsd/system/unregister_base cbsd/system/unregister_kernel cbsd/system/upgrade cbsd/system/world +cbsd/tools/apply cbsd/tools/attachgeli cbsd/tools/attachzfs cbsd/tools/bases