blob: 3877cc4cd36d195de8c2ade2c35881d71b1642c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
PORTNAME?= victoria-metrics
PORTVERSION= 1.93.10 # don't forget to update BUILDINFO_TAG
DISTVERSIONPREFIX= v
PORTREVISION= 6
CATEGORIES= net-mgmt
MAINTAINER= danfe@FreeBSD.org
COMMENT?= Fast, cost-effective, and scalable time series database
WWW= https://victoriametrics.com/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake go:modules,no_targets
USE_RC_SUBR?= ${PORTNAME}
MAKE_ENV= PKG_TAG=v${PORTVERSION} GOOS=${OPSYS:tl} \
BUILDINFO_TAG=tags-v${PORTVERSION}-0-gd277977 \
DATEINFO_TAG=${_GET_DATE:sh}
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
.if !defined(MASTERDIR)
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/${PORTNAME}-pure \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${VICTORIA_DATA}
do-install-DOCS-on:
@${RM} -r ${INSTALL_WRKSRC}/docs/VictoriaLogs
@cd ${INSTALL_WRKSRC}/docs && ${RM} robots.txt vm*
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${MV} ${INSTALL_WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
_GET_DATE= TZ= ${STAT} -f %Sm -t %Y%m%d-%H%M%S ${WRKSRC}/.gitignore
|