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.3.0 |
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 |
apps/playlist/go.mod:gomod \ |
11 |
pkg/aggregator/go.mod:gomod \ |
12 |
pkg/apimachinery/go.mod:gomod \ |
13 |
pkg/apiserver/go.mod:gomod \ |
14 |
pkg/build/go.mod:gomod \ |
15 |
pkg/build/wire/go.mod:gomod \ |
16 |
pkg/promlib/go.mod:gomod \ |
17 |
pkg/semconv/go.mod:gomod \ |
18 |
pkg/storage/unified/apistore/go.mod:gomod \ |
19 |
pkg/storage/unified/resource/go.mod:gomod \ |
10 |
pkg/util/xorm/go.mod:gomod |
20 |
pkg/util/xorm/go.mod:gomod |
|
|
21 |
EXTRACT_ONLY= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//:Ngo.work} |
11 |
|
22 |
|
12 |
MAINTAINER= drtr0jan@yandex.ru |
23 |
MAINTAINER= drtr0jan@yandex.ru |
13 |
COMMENT= Dashboard and graph editor for multiple data stores |
24 |
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 |
33 |
BUILD_DEPENDS= wire:devel/go-wire |
23 |
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss |
34 |
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss |
24 |
|
35 |
|
25 |
USES= cpe go:1.21,modules |
36 |
USES= cpe go:1.23,modules |
26 |
|
37 |
|
27 |
USE_GITHUB= yes |
38 |
USE_GITHUB= yes |
28 |
|
39 |
|
29 |
USE_RC_SUBR= grafana |
40 |
USE_RC_SUBR= grafana |
30 |
TAG= 17cbd42 |
41 |
TAG= d9455ff |
31 |
|
42 |
|
32 |
GO_MODULE= github.com/grafana/grafana |
43 |
GO_MODULE= github.com/grafana/grafana |
33 |
GO_TARGET= ./pkg/cmd/grafana \ |
44 |
GO_TARGET= ./pkg/cmd/grafana \ |
Lines 59-64
GRAFANA_LOGDIR?= /var/log/${PORTNAME}
Link Here
|
59 |
GRAFANA_PLUGINDIR?= ${GRAFANA_DATADIR}/plugins |
70 |
GRAFANA_PLUGINDIR?= ${GRAFANA_DATADIR}/plugins |
60 |
GRAFANA_PROVISIONINGDIR?= ${ETCDIR}/provisioning |
71 |
GRAFANA_PROVISIONINGDIR?= ${ETCDIR}/provisioning |
61 |
|
72 |
|
|
|
73 |
# Disable some master port targets |
74 |
TARGET_ORDER_OVERRIDE= -1:go-post-extract |
75 |
|
76 |
post-extract: |
77 |
@${ECHO_MSG} "===> Tidying ${GO_MODNAME} dependencies"; |
78 |
@(cd ${GO_WRKSRC}; ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=${GO_MODCACHE} ${GO_CMD} mod tidy -e) |
79 |
@${ECHO_MSG} "===> Vendoring ${GO_MODNAME} dependencies"; |
80 |
@(cd ${GO_WRKSRC}; ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=${GO_MODCACHE} ${GO_CMD} work vendor -e) |
81 |
|
62 |
post-patch: |
82 |
post-patch: |
63 |
@${REINPLACE_CMD} \ |
83 |
@${REINPLACE_CMD} \ |
64 |
-e 's|;data = /var/lib/grafana|data = ${GRAFANA_DATADIR}|g' \ |
84 |
-e 's|;data = /var/lib/grafana|data = ${GRAFANA_DATADIR}|g' \ |
Lines 82-91
post-install:
Link Here
|
82 |
.endfor |
102 |
.endfor |
83 |
${MKDIR} ${STAGEDIR}${GRAFANA_LOGDIR} |
103 |
${MKDIR} ${STAGEDIR}${GRAFANA_LOGDIR} |
84 |
( cd ${WRKDIR}/${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} && ${COPYTREE_SHARE} public ${STAGEDIR}${GRAFANA_HOMEDIR} ) |
104 |
( 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 |
105 |
${INSTALL_DATA} ${WRKSRC}/conf/defaults.ini ${STAGEDIR}${GRAFANA_HOMEDIR}/conf/defaults.ini |
90 |
${INSTALL_DATA} ${WRKSRC}/conf/sample.ini ${STAGEDIR}${ETCDIR}/grafana.ini.sample |
106 |
${INSTALL_DATA} ${WRKSRC}/conf/sample.ini ${STAGEDIR}${ETCDIR}/grafana.ini.sample |
91 |
${INSTALL_DATA} ${WRKSRC}/conf/ldap.toml ${STAGEDIR}${ETCDIR}/ldap.toml.sample |
107 |
${INSTALL_DATA} ${WRKSRC}/conf/ldap.toml ${STAGEDIR}${ETCDIR}/ldap.toml.sample |