Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Feb 2026 19:31:13 +0000
From:      Oleksii Samorukov <samm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 44866a19f0c4 - main - net-mgmt/victoria-logs: fix logs directory ownership
Message-ID:  <69879301.3954b.91f1895@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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%%


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69879301.3954b.91f1895>