From nobody Sun Mar 5 07:02:05 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 4PTt1T4tLcz3w7Pw; Sun, 5 Mar 2023 07:02:05 +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 4PTt1T4QjMz3xtP; Sun, 5 Mar 2023 07:02:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677999725; 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=UW3wge1NAg1eTAmm6X/+pwuY1yoVgB850D3/v/ksRB0=; b=kQS0PHONMbripmJGPexSo+EFtGUNlEXiruRwteVbq/CIxhoZ/VRTVTGFLq5KR0OMk63Lz+ IsP3xWp4scYlOYGi3wQMkUgVTOsPap/xN7cLZJ2nQIOsB0o9iW8UPXrQ7Bv10ELg8TOHyx tuVcuCZtTvf37u92IzolRgSlKucsKhxgJ77gF/PpdnwSUGlt22cUHYMF30suS067YtAyw9 6nNVN4j9SZYMyS+X7RrZm/EJp0zY1f5W8zr1clcg34xeRPbBBc1aBYkbO2m6A8f1uQAsLS nA6aS2CZnGQcSz7wncJ/AZTxLUu0qVVWEuEU+asfQ9WCi/VKo8JMKXdcLvcmPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677999725; 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=UW3wge1NAg1eTAmm6X/+pwuY1yoVgB850D3/v/ksRB0=; b=OvUdfFru3Rb1L1t/XbVreW7Qx5rbZ4HUvbp3CvBAZz/PakYIgqAV1lqS2FPTf6UQFKdZ1D My0GKf6zOyd2NJO4m2UysKdSNTrwX51akjBOi8bdbHtdAu5GD506A6rJ5p5dsHP4i5cFho 7qzsKD0xj9ubSOTBQY+Ph1Dv7x8EdH4wQmjb16uk4WZhKJNU0AFtbl7CnbdAXjTKiLtYpr NNUfUKTwJ6VTr1Vg5oMAvAhTr1R/pEYA+w75yc4N8AkYGM6enOajgD52CG1mIAQ8HdbV3D 5T4ozaGdzbK+qJubdNVKBmTDjvMLMVXlHPtcVhmN1c+wjxzZlqcNLbQ70TniYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677999725; a=rsa-sha256; cv=none; b=o9HGp6AMoLcEG3sVEdV5nCEq3SQl7lkqUyR2Nn0xDcjdEkCvA8Y/H67pQF6XQPt4L47ZM7 GzL5/oVap5jNKMRgmkn+QFjbsJ9Af0luA8wF9f8K+IlVOjkuumEluH5pdQZL+5wA32c8bH ULVlz+JySEm2LVwPcqjN0/NHk0ALdyF6LkWcTBpkCB//cfQU8TneP0JKp//GXLKwJtJwom iM3eAw0nILWd+hlHj3U/tvB9ACEq9TUh8Lws8Ma0fmn3S3IxRWs3HCoyimgolMDANcz8j5 bMMtikJxIgf5UTrydccOrfqypi+NkbREnlT3V22TJChzf3cOGAyxuaQZ5EseHw== 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 4PTt1T3Vt7z1BMw; Sun, 5 Mar 2023 07:02:05 +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 325725e6024545; Sun, 5 Mar 2023 07:02:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 325725uB024544; Sun, 5 Mar 2023 07:02:05 GMT (envelope-from git) Date: Sun, 5 Mar 2023 07:02:05 GMT Message-Id: <202303050702.325725uB024544@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: 21a1241f97d5 - main - sysutils/cbsd: Update to 13.1.24 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: 21a1241f97d5e4401b5c72b1edffce69afd0f141 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by krion: URL: https://cgit.FreeBSD.org/ports/commit/?id=21a1241f97d5e4401b5c72b1edffce69afd0f141 commit 21a1241f97d5e4401b5c72b1edffce69afd0f141 Author: Kirill Ponomarev AuthorDate: 2023-03-05 07:01:25 +0000 Commit: Kirill Ponomarev CommitDate: 2023-03-05 07:01:25 +0000 sysutils/cbsd: Update to 13.1.24 Changes: https://github.com/cbsd/cbsd/releases/tag/v13.1.24 --- sysutils/cbsd/Makefile | 2 +- sysutils/cbsd/distinfo | 6 +++--- sysutils/cbsd/files/cbsd-statsd-hoster.in | 13 ++++++++++--- sysutils/cbsd/files/cbsdd.in | 9 +++++++-- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/sysutils/cbsd/Makefile b/sysutils/cbsd/Makefile index 466beb26b480..6503954f6044 100644 --- a/sysutils/cbsd/Makefile +++ b/sysutils/cbsd/Makefile @@ -1,5 +1,5 @@ PORTNAME= cbsd -DISTVERSION= 13.1.23 +DISTVERSION= 13.1.24 CATEGORIES= sysutils MAINTAINER= olevole@olevole.ru diff --git a/sysutils/cbsd/distinfo b/sysutils/cbsd/distinfo index e0f4bbb92e1d..0f0f8f9e6edd 100644 --- a/sysutils/cbsd/distinfo +++ b/sysutils/cbsd/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1676995850 -SHA256 (cbsd-cbsd-13.1.23_GH0.tar.gz) = c5c098c315fa310036ebf32c2ba05acdbcc808820a3da9bfa474064b2dca432f -SIZE (cbsd-cbsd-13.1.23_GH0.tar.gz) = 6497345 +TIMESTAMP = 1677920358 +SHA256 (cbsd-cbsd-13.1.24_GH0.tar.gz) = 7517e95f0dae287f6d62021863c3a5a6228fc7cd2297393c7e7e7cdb770bf841 +SIZE (cbsd-cbsd-13.1.24_GH0.tar.gz) = 6499073 diff --git a/sysutils/cbsd/files/cbsd-statsd-hoster.in b/sysutils/cbsd/files/cbsd-statsd-hoster.in index ae09eaae83ff..730898d63964 100644 --- a/sysutils/cbsd/files/cbsd-statsd-hoster.in +++ b/sysutils/cbsd/files/cbsd-statsd-hoster.in @@ -24,7 +24,11 @@ restart_cmd=${name}_restart extra_commands="restart" command="%%PREFIX%%/cbsd/tools/racct-hoster-statsd" -pidfile="/var/run/$name.pid" +pidfile="/var/run/${name}.pid" +daemon_pidfile="/var/run/${name}-daemon.pid" +daemon_logdir="/var/log/${name}" +daemon_logfile="${daemon_logdir}/cbsd-statsd-hoster.log" + command_args="&" pidfile=/var/run/racct-hoster-statsd.pid @@ -40,7 +44,7 @@ if [ ! -f ${subr} ]; then fi . ${globalconf} -. ${subr} +. ${subrdir}/nc.subr cbsd_statsd_hoster_start() { @@ -84,7 +88,10 @@ cbsd_statsd_hoster_start() ;; esac - exec env workdir=${cbsd_workdir} %%PREFIX%%/cbsd/tools/racct-hoster-statsd ${args} + [ ! -d ${daemon_logdir} ] && mkdir -p ${daemon_logdir} + touch ${daemon_logfile} + + /usr/sbin/daemon -f -R5 -p ${pidfile} -P ${daemon_pidfile} -o ${daemon_logfile} /usr/bin/env workdir=${cbsd_workdir} ${command} ${args} } cbsd_statsd_hoster_restart() diff --git a/sysutils/cbsd/files/cbsdd.in b/sysutils/cbsd/files/cbsdd.in index 7508dd6632bc..cbde5558a692 100644 --- a/sysutils/cbsd/files/cbsdd.in +++ b/sysutils/cbsd/files/cbsdd.in @@ -17,6 +17,11 @@ load_rc_config $name export workdir="${cbsd_workdir}" export NO_CBSD_HISTORY=yes +# disable interactive question +export NOINTER=1 +# always answer 'no' +export ALWAYS_NO=1 + globalconf=${cbsd_globalconf:-"%%PREFIX%%/cbsd/cbsd.conf"} if [ ! -f ${globalconf} ]; then @@ -41,7 +46,7 @@ fi . ${globalconf} . ${mdtools} -. ${subr} +. ${subrdir}/nc.subr . ${localcbsdconf} @@ -92,7 +97,7 @@ cbsdd_stop() cbsdd_restart() { if [ -f "${pidfile}" ]; then - pkill -9 -f ${pidfile} > /dev/null 2>&1 + pkill -9 -F ${pidfile} > /dev/null 2>&1 /bin/rm -f ${pidfile} fi run_rc_command "start"