git: 44866a19f0c4 - main - net-mgmt/victoria-logs: fix logs directory ownership
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Feb 2026 19:31:13 UTC
The branch main has been updated by samm:
URL: https://cgit.FreeBSD.org/ports/commit/?id=44866a19f0c401839d963d5cd09ce629e9e04675
commit 44866a19f0c401839d963d5cd09ce629e9e04675
Author: Oleksii Samorukov <samm@FreeBSD.org>
AuthorDate: 2026-02-07 19:30:35 +0000
Commit: Oleksii Samorukov <samm@FreeBSD.org>
CommitDate: 2026-02-07 19:30:35 +0000
net-mgmt/victoria-logs: fix logs directory ownership
PR: 292405
---
net-mgmt/victoria-logs/Makefile | 6 +++++-
net-mgmt/victoria-logs/files/victoria_logs.in | 2 +-
net-mgmt/victoria-logs/pkg-plist | 1 +
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/net-mgmt/victoria-logs/Makefile b/net-mgmt/victoria-logs/Makefile
index e7380379639c..ae5f430c17ce 100644
--- a/net-mgmt/victoria-logs/Makefile
+++ b/net-mgmt/victoria-logs/Makefile
@@ -1,6 +1,7 @@
PORTNAME= victoria-logs
PORTVERSION= 1.45.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= net-mgmt
MAINTAINER= samm@FreeBSD.org
@@ -30,14 +31,17 @@ MAKE_ENV= BUILDINFO_TAG=tags-v${PORTVERSION}-victorialogs \
ALL_TARGET= ${PORTNAME}-pure vlogscli-pure vmalert-pure
SUB_LIST+= VICTORIA_DATA=${VICTORIA_DATA} \
+ VICTORIA_LOGS=${VICTORIA_LOGS} \
VICTORIA_USER=${USERS}
USERS= victoria-logs
GROUPS= victoria-logs
VICTORIA_DATA?= /var/db/victoria-logs
+VICTORIA_LOGS?= /var/log/victoria_logs
PLIST_SUB+= VICTORIA_DATA=${VICTORIA_DATA} \
VICTORIA_GROUP=${GROUPS} \
+ VICTORIA_LOGS=${VICTORIA_LOGS} \
VICTORIA_USER=${USERS}
OPTIONS_DEFINE= DOCS
@@ -48,7 +52,7 @@ do-install:
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/vlogscli-pure \
${STAGEDIR}${PREFIX}/bin/vlogscli
- @${MKDIR} ${STAGEDIR}${VICTORIA_DATA}
+ @${MKDIR} ${STAGEDIR}${VICTORIA_DATA} ${STAGEDIR}${VICTORIA_LOGS}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/net-mgmt/victoria-logs/files/victoria_logs.in b/net-mgmt/victoria-logs/files/victoria_logs.in
index 4462872ed86b..715e8fba04cb 100644
--- a/net-mgmt/victoria-logs/files/victoria_logs.in
+++ b/net-mgmt/victoria-logs/files/victoria_logs.in
@@ -11,7 +11,7 @@ desc="Fast and easy-to-use, open source logs solution"
rcvar="victoria_logs_enable"
pidfile="/var/run/${name}.pid"
daemon_pidfile="/var/run/${name}-daemon.pid"
-logdir="/var/log/${name}"
+logdir="%%VICTORIA_LOGS%%"
logfile="${logdir}/victoria_logs.log"
command="%%PREFIX%%/bin/victoria-logs"
victoria_logs_args=${victoria_logs_args-"--storageDataPath=%%VICTORIA_DATA%% --retentionPeriod=1 --httpListenAddr=:9428"}
diff --git a/net-mgmt/victoria-logs/pkg-plist b/net-mgmt/victoria-logs/pkg-plist
index 88f32a70c9f9..2bc997d481b8 100644
--- a/net-mgmt/victoria-logs/pkg-plist
+++ b/net-mgmt/victoria-logs/pkg-plist
@@ -53,3 +53,4 @@ bin/vlogscli
%%PORTDOCS%%%%DOCSDIR%%/vlagent_common_flags.md
%%PORTDOCS%%%%DOCSDIR%%/vlagent_enterprise_flags.md
@dir(%%VICTORIA_USER%%,%%VICTORIA_GROUP%%,750) %%VICTORIA_DATA%%
+@dir(%%VICTORIA_USER%%,%%VICTORIA_GROUP%%,750) %%VICTORIA_LOGS%%