From owner-dev-commits-ports-all@freebsd.org Fri Apr 16 10:31:43 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5452D5EC5C6; Fri, 16 Apr 2021 10:31:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FMCDv1jfPz3ng5; Fri, 16 Apr 2021 10:31:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2DBDA230C9; Fri, 16 Apr 2021 10:31:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13GAVhDM054346; Fri, 16 Apr 2021 10:31:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13GAVhw1054345; Fri, 16 Apr 2021 10:31:43 GMT (envelope-from git) Date: Fri, 16 Apr 2021 10:31:43 GMT Message-Id: <202104161031.13GAVhw1054345@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 8537097a722f - main - - Convert VictoriaMetrics ports to master-slave relationship which allows to remove lots of duplicated lines between the Makefiles - Remove not actually needed, albeit harmless patch while I'm here MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8537097a722fe9e360bfefce98c8d26c7c07f0ee Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2021 10:31:43 -0000 The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=8537097a722fe9e360bfefce98c8d26c7c07f0ee commit 8537097a722fe9e360bfefce98c8d26c7c07f0ee Author: Alexey Dokuchaev AuthorDate: 2021-04-16 10:29:26 +0000 Commit: Alexey Dokuchaev CommitDate: 2021-04-16 10:29:50 +0000 - Convert VictoriaMetrics ports to master-slave relationship which allows to remove lots of duplicated lines between the Makefiles - Remove not actually needed, albeit harmless patch while I'm here --- net-mgmt/victoria-metrics/Makefile | 20 +++++++----- net-mgmt/victoria-metrics/files/patch-Makefile | 17 ---------- .../{vmutils => victoria-metrics}/files/vmagent.in | 0 net-mgmt/vmutils/Makefile | 37 +++------------------- 4 files changed, 17 insertions(+), 57 deletions(-) diff --git a/net-mgmt/victoria-metrics/Makefile b/net-mgmt/victoria-metrics/Makefile index c954360b5ef4..86846536a124 100644 --- a/net-mgmt/victoria-metrics/Makefile +++ b/net-mgmt/victoria-metrics/Makefile @@ -1,18 +1,18 @@ # Created by: Alexey Dokuchaev -PORTNAME= victoria-metrics +PORTNAME?= victoria-metrics DISTVERSIONPREFIX= v DISTVERSION= 1.58.0 CATEGORIES= net-mgmt MAINTAINER= danfe@FreeBSD.org -COMMENT= Fast, cost-effective, and scalable time series database +COMMENT?= Fast, cost-effective, and scalable time series database LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= gmake go:modules,no_targets -USE_RC_SUBR= ${PORTNAME} +USE_RC_SUBR?= ${PORTNAME} MAKE_ENV= PKG_TAG=${DISTVERSIONPREFIX}${DISTVERSION} \ BUILDINFO_TAG=edd1590 GOOS=${OPSYS:tl} ALL_TARGET= ${PORTNAME}-pure @@ -21,11 +21,9 @@ USE_GITHUB= yes GH_ACCOUNT= VictoriaMetrics GH_PROJECT= VictoriaMetrics -.include "${.CURDIR}/Makefile.deps" - -USERS= ${PORTNAME} -GROUPS= ${PORTNAME} -VICTORIA_DATA?= /var/db/${PORTNAME} +USERS= victoria-metrics +GROUPS= victoria-metrics +VICTORIA_DATA?= /var/db/victoria-metrics SUB_LIST+= VICTORIA_DATA=${VICTORIA_DATA} \ VICTORIA_USER=${USERS} @@ -36,14 +34,20 @@ PLIST_SUB+= VICTORIA_DATA=${VICTORIA_DATA} \ OPTIONS_DEFINE= DOCS +.if !target(do-install) do-install: ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/${PORTNAME}-pure \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} @${MKDIR} ${STAGEDIR}${VICTORIA_DATA} +.endif +.if !target(do-install-DOCS-on) do-install-DOCS-on: @cd ${INSTALL_WRKSRC}/docs && ${RM} robots.txt vm* @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${INSTALL_WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} +.endif .include + +.include "${MASTERDIR}/Makefile.deps" diff --git a/net-mgmt/victoria-metrics/files/patch-Makefile b/net-mgmt/victoria-metrics/files/patch-Makefile deleted file mode 100644 index 901e7a11c695..000000000000 --- a/net-mgmt/victoria-metrics/files/patch-Makefile +++ /dev/null @@ -1,17 +0,0 @@ ---- Makefile.orig 2021-04-08 06:35:50 UTC -+++ Makefile -@@ -1,5 +1,6 @@ - PKG_PREFIX := github.com/VictoriaMetrics/VictoriaMetrics - -+ifneq (,$(wildcard .git)) - BUILDINFO_TAG ?= $(shell echo $$(git describe --long --all | tr '/' '-')$$( \ - git diff-index --quiet HEAD -- || echo '-dirty-'$$(git diff-index -u HEAD | openssl sha1 | cut -c 10-17))) - -@@ -7,6 +8,7 @@ PKG_TAG ?= $(shell git tag -l --points-at HEAD) - ifeq ($(PKG_TAG),) - PKG_TAG := $(BUILDINFO_TAG) - endif -+endif - - GO_BUILDINFO = -X '$(PKG_PREFIX)/lib/buildinfo.Version=$(APP_NAME)-$(shell date -u +'%Y%m%d-%H%M%S')-$(BUILDINFO_TAG)' - diff --git a/net-mgmt/vmutils/files/vmagent.in b/net-mgmt/victoria-metrics/files/vmagent.in similarity index 100% rename from net-mgmt/vmutils/files/vmagent.in rename to net-mgmt/victoria-metrics/files/vmagent.in diff --git a/net-mgmt/vmutils/Makefile b/net-mgmt/vmutils/Makefile index 754534b5f087..ee41121132de 100644 --- a/net-mgmt/vmutils/Makefile +++ b/net-mgmt/vmutils/Makefile @@ -1,41 +1,12 @@ # Created by: Alexey Dokuchaev PORTNAME= vmutils -DISTVERSIONPREFIX= v -DISTVERSION= 1.58.0 -CATEGORIES= net-mgmt -DISTINFO_FILE= ${.CURDIR}/../victoria-metrics/distinfo - -MAINTAINER= danfe@FreeBSD.org COMMENT= Ancillary utilities and agent for VictoriaMetrics -LICENSE= APACHE20 -LICENSE_FILE= ${WRKSRC}/LICENSE - -USES= gmake go:modules,no_targets USE_RC_SUBR= vmagent -MAKE_ENV= PKG_TAG=${DISTVERSIONPREFIX}${DISTVERSION} \ - BUILDINFO_TAG=edd1590 GOOS=${OPSYS:tl} -ALL_TARGET= ${PORTNAME}-pure - -USE_GITHUB= yes -GH_ACCOUNT= VictoriaMetrics -GH_PROJECT= VictoriaMetrics - -.include "${.CURDIR}/../victoria-metrics/Makefile.deps" -USERS= victoria-metrics -GROUPS= victoria-metrics -VICTORIA_DATA?= /var/db/victoria-metrics - -SUB_LIST+= VICTORIA_DATA=${VICTORIA_DATA} \ - VICTORIA_USER=${USERS} - -PLIST_SUB+= VICTORIA_DATA=${VICTORIA_DATA} \ - VICTORIA_GROUP=${GROUPS} \ - VICTORIA_USER=${USERS} - -OPTIONS_DEFINE= DOCS +DESCR= ${.CURDIR}/pkg-descr +PLIST= ${.CURDIR}/pkg-plist do-install: .for p in agent alert auth backup ctl restore @@ -47,4 +18,6 @@ do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${INSTALL_WRKSRC}/docs/vm* ${STAGEDIR}${DOCSDIR} -.include +MASTERDIR= ${.CURDIR}/../victoria-metrics + +.include "${MASTERDIR}/Makefile"