aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/victoria-metrics/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/victoria-metrics/Makefile')
-rw-r--r--net-mgmt/victoria-metrics/Makefile20
1 files changed, 12 insertions, 8 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 <danfe@FreeBSD.org>
-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 <bsd.port.mk>
+
+.include "${MASTERDIR}/Makefile.deps"