pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

victorialogs-*: use PKGBASE



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Thu Aug 13 12:01:32 2026 +0200
Changeset:	ef247ab5eec5dee85b523a01981b7598509dd151

Modified Files:
	victorialogs-vlagent/Makefile
	victorialogs-vlogscli/Makefile

Log Message:
victorialogs-*: use PKGBASE

Factor out the name of the program by using PKGBASE.
More resistant to copypastos for packaging of other VictoriaLogs
components.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ef247ab5eec5dee85b523a01981b7598509dd151

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 victorialogs-vlagent/Makefile  | 4 ++--
 victorialogs-vlogscli/Makefile | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs:
diff --git a/victorialogs-vlagent/Makefile b/victorialogs-vlagent/Makefile
index 5b25dbbe43..92b0d1231e 100644
--- a/victorialogs-vlagent/Makefile
+++ b/victorialogs-vlagent/Makefile
@@ -5,8 +5,8 @@ PKGNAME=	vlagent-${VICTORIALOGS_VERS}
 COMMENT=	Agent for collecting logs storing them in VictoriaLogs
 
 GOFLAGS+=		-ldflags ' \
-			-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=vlagent-${PKGVERSION_NOREV}'
-GO_BUILD_PATTERN+=	./app/vlagent
+			-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${PKGBASE}-${PKGVERSION_NOREV}'
+GO_BUILD_PATTERN+=	./app/${PKGBASE}
 
 .include "../../wip/victorialogs/Makefile.common"
 
diff --git a/victorialogs-vlogscli/Makefile b/victorialogs-vlogscli/Makefile
index 0e76e0abd7..07a1558eab 100644
--- a/victorialogs-vlogscli/Makefile
+++ b/victorialogs-vlogscli/Makefile
@@ -5,8 +5,8 @@ PKGNAME=	vlogscli-${VICTORIALOGS_VERS}
 COMMENT=	Interactive command-line tool for querying VictoriaLogs
 
 GOFLAGS+=		-ldflags ' \
-			-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=vlogscli-${PKGVERSION_NOREV}'
-GO_BUILD_PATTERN+=	./app/vlogscli
+			-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${PKGBASE}-${PKGVERSION_NOREV}'
+GO_BUILD_PATTERN+=	./app/${PKGBASE}
 
 .include "../../wip/victorialogs/Makefile.common"
 


Home | Main Index | Thread Index | Old Index