git: 69d8c3f90fd4 - main - net-mgmt/victoria-metrics: port had been improved (+)
Alexey Dokuchaev
danfe at FreeBSD.org
Thu May 20 10:28:09 UTC 2021
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=69d8c3f90fd43297b044f3f99d99084216c9dc14
commit 69d8c3f90fd43297b044f3f99d99084216c9dc14
Author: Alexey Dokuchaev <danfe at FreeBSD.org>
AuthorDate: 2021-05-20 10:18:36 +0000
Commit: Alexey Dokuchaev <danfe at FreeBSD.org>
CommitDate: 2021-05-20 10:26:54 +0000
net-mgmt/victoria-metrics: port had been improved (+)
Add missing run-time dependency on `security/ca_root_nss': apparently,
every Go application that uses TLS needs root CA certificates installed
in the default place, which are used for verifying signatures provided
by peers during establishing TLS connections.
While here, remove accidental reference to `cbsd_mq_router_config' in
the rc script and allow to reload (scrape) configuration by sending
SIGHUP to processes.
PR: 255822
---
net-mgmt/victoria-metrics/Makefile | 3 +++
net-mgmt/victoria-metrics/files/victoria-metrics.in | 3 ++-
net-mgmt/victoria-metrics/files/vmagent.in | 1 +
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/net-mgmt/victoria-metrics/Makefile b/net-mgmt/victoria-metrics/Makefile
index f3151de7cb81..7291e3edb264 100644
--- a/net-mgmt/victoria-metrics/Makefile
+++ b/net-mgmt/victoria-metrics/Makefile
@@ -3,6 +3,7 @@
PORTNAME?= victoria-metrics
PORTVERSION= 1.59.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= net-mgmt
MAINTAINER= danfe at FreeBSD.org
@@ -11,6 +12,8 @@ COMMENT?= Fast, cost-effective, and scalable time series database
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
+RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
+
USES= gmake go:modules,no_targets
USE_RC_SUBR?= ${PORTNAME}
MAKE_ENV= PKG_TAG=${DISTVERSIONPREFIX}${DISTVERSION} \
diff --git a/net-mgmt/victoria-metrics/files/victoria-metrics.in b/net-mgmt/victoria-metrics/files/victoria-metrics.in
index 9b260d696c0f..1d783abc77de 100644
--- a/net-mgmt/victoria-metrics/files/victoria-metrics.in
+++ b/net-mgmt/victoria-metrics/files/victoria-metrics.in
@@ -14,13 +14,14 @@ daemon_pidfile="/var/run/${name}-daemon.pid"
logdir="/var/log/${name}"
logfile="${logdir}/victoria_metrics.log"
command="%%PREFIX%%/bin/victoria-metrics"
-victoria_metrics_args=${cbsd_mq_router_config-"--storageDataPath=%%VICTORIA_DATA%% --retentionPeriod=1 --httpListenAddr=:8428"}
+victoria_metrics_args=${victoria_metrics_args-"--storageDataPath=%%VICTORIA_DATA%% --retentionPeriod=1 --httpListenAddr=:8428"}
victoria_metrics_user="%%VICTORIA_USER%%"
load_rc_config ${name}
start_cmd="start"
stop_cmd="stop"
status_cmd="status"
+extra_commands="reload"
start()
{
diff --git a/net-mgmt/victoria-metrics/files/vmagent.in b/net-mgmt/victoria-metrics/files/vmagent.in
index b07a662486a9..01079f5ef292 100644
--- a/net-mgmt/victoria-metrics/files/vmagent.in
+++ b/net-mgmt/victoria-metrics/files/vmagent.in
@@ -21,6 +21,7 @@ load_rc_config ${name}
start_cmd="start"
stop_cmd="stop"
status_cmd="status"
+extra_commands="reload"
start()
{
More information about the dev-commits-ports-all
mailing list