pkgsrc-WIP-changes archive

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

victorialogs: Prepare for more packages



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Jul 18 23:00:23 2025 +0200
Changeset:	0c495b21c7b99a39ce6fc398374b8e38ce3e1562

Modified Files:
	victorialogs/DESCR
	victorialogs/Makefile
Added Files:
	victorialogs/Makefile.common

Log Message:
victorialogs: Prepare for more packages

Add Makefile.common logic that can be reused by other packages to build
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=0c495b21c7b99a39ce6fc398374b8e38ce3e1562

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

diffstat:
 victorialogs/DESCR           |  2 ++
 victorialogs/Makefile        | 16 ++--------------
 victorialogs/Makefile.common | 24 ++++++++++++++++++++++++
 3 files changed, 28 insertions(+), 14 deletions(-)

diffs:
diff --git a/victorialogs/DESCR b/victorialogs/DESCR
index 9a01d0b939..63a17fc254 100644
--- a/victorialogs/DESCR
+++ b/victorialogs/DESCR
@@ -1,2 +1,4 @@
 VictoriaLogs is open source user-friendly database for logs from
 VictoriaMetrics.
+
+This package contains victoria-logs.
diff --git a/victorialogs/Makefile b/victorialogs/Makefile
index 8614e09079..55a20fb09b 100644
--- a/victorialogs/Makefile
+++ b/victorialogs/Makefile
@@ -1,25 +1,13 @@
 # $NetBSD$
 
-DISTNAME=	VictoriaLogs-1.26.0
 PKGNAME=	${DISTNAME:tl}
-CATEGORIES=	sysutils
-MASTER_SITES=	${MASTER_SITE_GITHUB:=VictoriaMetrics/}
-GITHUB_TAG=	v${PKGVERSION_NOREV}
 
-MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=	https://github.com/VictoriaMetrics/VictoriaLogs/
 COMMENT=	Fast and easy to use database for logs
-LICENSE=	apache-2.0
-
-MAKE_ENV+=	CGO_ENABLED=0
-
-WRKSRC=		${WRKDIR}/${DISTNAME}
 
 GO_BUILD_PATTERN+=	-ldflags ' \
-			-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=""'
+			-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=victoria-logs-${PKGVERSION_NOREV}'
 GO_BUILD_PATTERN+=	./app/victoria-logs
 
-.include "go-modules.mk"
+.include "../../wip/victorialogs/Makefile.common"
 
-.include "../../lang/go/go-module.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/victorialogs/Makefile.common b/victorialogs/Makefile.common
new file mode 100644
index 0000000000..7a04025473
--- /dev/null
+++ b/victorialogs/Makefile.common
@@ -0,0 +1,24 @@
+# $NetBSD$
+#
+# used by wip/victorialogs/Makefile
+
+VICTORIALOGS_VERS=	1.26.0
+DISTNAME=		VictoriaLogs-${VICTORIALOGS_VERS}
+CATEGORIES=		sysutils
+MASTER_SITES=		${MASTER_SITE_GITHUB:=VictoriaMetrics/}
+GITHUB_TAG=		v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/VictoriaMetrics/VictoriaLogs/
+LICENSE=	apache-2.0
+
+DISTINFO_FILE=	${.CURDIR}/../../wip/victorialogs/distinfo
+PATCHDIR=	${.CURDIR}/../../wip/victorialogs/patches
+
+MAKE_ENV+=	CGO_ENABLED=0
+
+WRKSRC=		${WRKDIR}/${DISTNAME}
+
+.include "${.CURDIR}/../../wip/victorialogs/go-modules.mk"
+
+.include "../../lang/go/go-module.mk"


Home | Main Index | Thread Index | Old Index