Lines 1-13
Link Here
|
1 |
PORTNAME= grafana |
1 |
PORTNAME= grafana |
2 |
DISTVERSIONPREFIX= v |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 10.4.5 |
3 |
DISTVERSION= 11.2.2 |
4 |
PORTREVISION= 1 |
|
|
5 |
CATEGORIES= www |
4 |
CATEGORIES= www |
6 |
MASTER_SITES= https://dl.grafana.com/oss/release/:public \ |
5 |
MASTER_SITES= https://dl.grafana.com/oss/release/:public \ |
7 |
https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod |
6 |
https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod |
8 |
DISTFILES= grafana-${DISTVERSION}.linux-amd64${EXTRACT_SUFX}:public \ |
7 |
DISTFILES= grafana-${DISTVERSION}.linux-amd64${EXTRACT_SUFX}:public \ |
9 |
go.mod:gomod \ |
8 |
go.mod:gomod \ |
|
|
9 |
go.work:gomod \ |
10 |
pkg/apimachinery/go.mod:gomod \ |
11 |
pkg/apiserver/go.mod:gomod \ |
12 |
pkg/build/go.mod:gomod \ |
13 |
pkg/build/wire/go.mod:gomod \ |
14 |
pkg/promlib/go.mod:gomod \ |
15 |
pkg/semconv/go.mod:gomod \ |
16 |
pkg/storage/unified/resource/go.mod:gomod \ |
10 |
pkg/util/xorm/go.mod:gomod |
17 |
pkg/util/xorm/go.mod:gomod |
|
|
18 |
EXTRACT_ONLY= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//:Ngo.work} |
11 |
|
19 |
|
12 |
MAINTAINER= drtr0jan@yandex.ru |
20 |
MAINTAINER= drtr0jan@yandex.ru |
13 |
COMMENT= Dashboard and graph editor for multiple data stores |
21 |
COMMENT= Dashboard and graph editor for multiple data stores |
Lines 22-33
ONLY_FOR_ARCHS= aarch64 amd64 i386 riscv64
Link Here
|
22 |
BUILD_DEPENDS= wire:devel/go-wire |
30 |
BUILD_DEPENDS= wire:devel/go-wire |
23 |
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss |
31 |
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss |
24 |
|
32 |
|
25 |
USES= cpe go:1.21,modules |
33 |
USES= cpe go:1.22,modules |
26 |
|
34 |
|
27 |
USE_GITHUB= yes |
35 |
USE_GITHUB= yes |
28 |
|
36 |
|
29 |
USE_RC_SUBR= grafana |
37 |
USE_RC_SUBR= grafana |
30 |
TAG= 17cbd42 |
38 |
TAG= 086b47f |
31 |
|
39 |
|
32 |
GO_MODULE= github.com/grafana/grafana |
40 |
GO_MODULE= github.com/grafana/grafana |
33 |
GO_TARGET= ./pkg/cmd/grafana \ |
41 |
GO_TARGET= ./pkg/cmd/grafana \ |
Lines 59-64
GRAFANA_LOGDIR?= /var/log/${PORTNAME}
Link Here
|
59 |
GRAFANA_PLUGINDIR?= ${GRAFANA_DATADIR}/plugins |
67 |
GRAFANA_PLUGINDIR?= ${GRAFANA_DATADIR}/plugins |
60 |
GRAFANA_PROVISIONINGDIR?= ${ETCDIR}/provisioning |
68 |
GRAFANA_PROVISIONINGDIR?= ${ETCDIR}/provisioning |
61 |
|
69 |
|
|
|
70 |
# Disable some master port targets |
71 |
TARGET_ORDER_OVERRIDE= -1:go-post-extract |
72 |
|
73 |
post-extract: |
74 |
@${ECHO_MSG} "===> Tidying ${GO_MODNAME} dependencies"; |
75 |
@(cd ${GO_WRKSRC}; ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=${GO_MODCACHE} ${GO_CMD} mod tidy -e) |
76 |
@${ECHO_MSG} "===> Vendoring ${GO_MODNAME} dependencies"; |
77 |
@(cd ${GO_WRKSRC}; ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=${GO_MODCACHE} ${GO_CMD} work vendor -e) |
78 |
|
62 |
post-patch: |
79 |
post-patch: |
63 |
@${REINPLACE_CMD} \ |
80 |
@${REINPLACE_CMD} \ |
64 |
-e 's|;data = /var/lib/grafana|data = ${GRAFANA_DATADIR}|g' \ |
81 |
-e 's|;data = /var/lib/grafana|data = ${GRAFANA_DATADIR}|g' \ |
Lines 82-91
post-install:
Link Here
|
82 |
.endfor |
99 |
.endfor |
83 |
${MKDIR} ${STAGEDIR}${GRAFANA_LOGDIR} |
100 |
${MKDIR} ${STAGEDIR}${GRAFANA_LOGDIR} |
84 |
( cd ${WRKDIR}/${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} && ${COPYTREE_SHARE} public ${STAGEDIR}${GRAFANA_HOMEDIR} ) |
101 |
( cd ${WRKDIR}/${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} && ${COPYTREE_SHARE} public ${STAGEDIR}${GRAFANA_HOMEDIR} ) |
85 |
.for dir in input-datasource |
|
|
86 |
${MKDIR} ${STAGEDIR}${GRAFANA_HOMEDIR}/plugins-bundled/internal/${dir} |
87 |
( cd ${WRKDIR}/${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}/plugins-bundled/internal/${dir}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${GRAFANA_HOMEDIR}/plugins-bundled/internal/${dir} ) |
88 |
.endfor |
89 |
${INSTALL_DATA} ${WRKSRC}/conf/defaults.ini ${STAGEDIR}${GRAFANA_HOMEDIR}/conf/defaults.ini |
102 |
${INSTALL_DATA} ${WRKSRC}/conf/defaults.ini ${STAGEDIR}${GRAFANA_HOMEDIR}/conf/defaults.ini |
90 |
${INSTALL_DATA} ${WRKSRC}/conf/sample.ini ${STAGEDIR}${ETCDIR}/grafana.ini.sample |
103 |
${INSTALL_DATA} ${WRKSRC}/conf/sample.ini ${STAGEDIR}${ETCDIR}/grafana.ini.sample |
91 |
${INSTALL_DATA} ${WRKSRC}/conf/ldap.toml ${STAGEDIR}${ETCDIR}/ldap.toml.sample |
104 |
${INSTALL_DATA} ${WRKSRC}/conf/ldap.toml ${STAGEDIR}${ETCDIR}/ldap.toml.sample |