freebsd-ports/www/grafana7/Makefile
Stefan Eßer bcaf25a8c8 Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.

This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.

Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).

A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.

These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,

Approved by:	portmgr (implicit)
2022-01-10 16:15:39 +01:00

267 lines
18 KiB
Makefile

PORTNAME= grafana
DISTVERSIONPREFIX= v
DISTVERSION= 7.5.12
CATEGORIES= www
MASTER_SITES+= https://dl.grafana.com/oss/release/:public \
https://gitea.com/xorm/builder/archive/:builder \
https://gitea.com/xorm/core/archive/:core \
https://gitea.com/xorm/xorm/archive/:xorm
PKGNAMESUFFIX= ${PORTVERSION:C/([0-9]).*/\1/1}
DISTFILES= grafana-${PORTVERSION}.linux-amd64${EXTRACT_SUFX}:public \
v0.3.6${EXTRACT_SUFX}:builder \
v0.7.3${EXTRACT_SUFX}:core \
v0.8.2${EXTRACT_SUFX}:xorm
MAINTAINER= robsonmantovani@gmail.com
COMMENT= Dashboard and graph editor for multiple data stores
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= aarch64 amd64 i386
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
USES= cpe go:modules
CONFLICTS_INSTALL= grafana* # bin/grafana-cli bin/grafana-server
USE_GITHUB= yes
GH_TUPLE= \
BurntSushi:toml:v0.3.1:burntsushi_toml/vendor/github.com/BurntSushi/toml \
FZambia:eagle:v0.0.1:fzambia_eagle/vendor/github.com/FZambia/eagle \
FZambia:sentinel:v1.1.0:fzambia_sentinel/vendor/github.com/FZambia/sentinel \
VividCortex:mysqlerr:6c6b55f8796f:vividcortex_mysqlerr/vendor/github.com/VividCortex/mysqlerr \
alexcesaro:quotedprintable:2caba252f4dc:alexcesaro_quotedprintable/vendor/gopkg.in/alexcesaro/quotedprintable.v3 \
apache:arrow:68b1273cbbf7:apache_arrow_arrow/vendor/github.com/apache/arrow \
apache:thrift:v0.13.0:apache_thrift/vendor/github.com/apache/thrift \
aws:aws-sdk-go:v1.37.20:aws_aws_sdk_go/vendor/github.com/aws/aws-sdk-go \
beevik:etree:v1.1.0:beevik_etree/vendor/github.com/beevik/etree \
benbjohnson:clock:7dc76406b6d3:benbjohnson_clock/vendor/github.com/benbjohnson/clock \
beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
blang:semver:v3.5.0:blang_semver/vendor/github.com/blang/semver \
bradfitz:gomemcache:a41fca850d0b:bradfitz_gomemcache/vendor/github.com/bradfitz/gomemcache \
census-instrumentation:opencensus-go:v0.22.3:census_instrumentation_opencensus_go/vendor/go.opencensus.io \
centrifugal:centrifuge:v0.13.0:centrifugal_centrifuge/vendor/github.com/centrifugal/centrifuge \
centrifugal:protocol:v0.3.4:centrifugal_protocol/vendor/github.com/centrifugal/protocol \
cespare:xxhash:v1.1.0:cespare_xxhash/vendor/github.com/cespare/xxhash \
cespare:xxhash:v2.1.1:cespare_xxhash_v2/vendor/github.com/cespare/xxhash/v2 \
cheekybits:genny:v1.0.0:cheekybits_genny/vendor/github.com/cheekybits/genny \
cortexproject:cortex:85942c5703cf:cortexproject_cortex/vendor/github.com/cortexproject/cortex \
cpuguy83:go-md2man:f79a8a8ca69d:cpuguy83_go_md2man_v2/vendor/github.com/cpuguy83/go-md2man/v2 \
crewjam:saml:bca570abb2ce:crewjam_saml/vendor/github.com/crewjam/saml \
davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
deepmap:oapi-codegen:v1.3.13:deepmap_oapi_codegen/vendor/github.com/deepmap/oapi-codegen \
denisenkom:go-mssqldb:1e08a3fab204:denisenkom_go_mssqldb_1/vendor/github.com/denisenkom/go-mssqldb \
dustin:go-humanize:v1.0.0:dustin_go_humanize/vendor/github.com/dustin/go-humanize \
edsrzf:mmap-go:v1.0.0:edsrzf_mmap_go/vendor/github.com/edsrzf/mmap-go \
facebookgo:ensure:b4ab57deab51:facebookgo_ensure/vendor/github.com/facebookgo/ensure \
facebookgo:inject:f23751cae28b:facebookgo_inject/vendor/github.com/facebookgo/inject \
facebookgo:stack:751773369052:facebookgo_stack/vendor/github.com/facebookgo/stack \
facebookgo:structtag:217e25fb9691:facebookgo_structtag/vendor/github.com/facebookgo/structtag \
facebookgo:subset:8dac2c3c4870:facebookgo_subset/vendor/github.com/facebookgo/subset \
fatih:color:v1.10.0:fatih_color/vendor/github.com/fatih/color \
felixge:httpsnoop:v1.0.1:felixge_httpsnoop/vendor/github.com/felixge/httpsnoop \
gchaincl:sqlhooks:v1.3.0:gchaincl_sqlhooks/vendor/github.com/gchaincl/sqlhooks \
getsentry:sentry-go:v0.10.0:getsentry_sentry_go/vendor/github.com/getsentry/sentry-go \
go-asn1-ber:asn1-ber:f715ec2f112d:go_asn1_ber_asn1_ber/vendor/gopkg.in/asn1-ber.v1 \
go-ini:ini:v1.62.0:go_ini_ini/vendor/gopkg.in/ini.v1 \
go-ldap:ldap:v3.0.2:go_ldap_ldap/vendor/gopkg.in/ldap.v3 \
go-kit:kit:v0.10.0:go_kit_kit/vendor/github.com/go-kit/kit \
go-logfmt:logfmt:v0.5.0:go_logfmt_logfmt/vendor/github.com/go-logfmt/logfmt \
go-macaron:binding:0b4f37bab25b:go_macaron_binding/vendor/github.com/go-macaron/binding \
go-macaron:gzip:cad1c6580a07:go_macaron_gzip/vendor/github.com/go-macaron/gzip \
go-macaron:inject:d8a0b8677191:go_macaron_inject/vendor/github.com/go-macaron/inject \
go-macaron:macaron:v1.4.0:go_macaron_macaron/vendor/gopkg.in/macaron.v1 \
go-mail:mail:v2.3.1:go_mail_mail/vendor/gopkg.in/mail.v2 \
go-redis:redis:v5.2.9:go_redis_redis/vendor/gopkg.in/redis.v5 \
go-sourcemap:sourcemap:v2.1.3:go_sourcemap_sourcemap/vendor/github.com/go-sourcemap/sourcemap \
go-sql-driver:mysql:v1.5.0:go_sql_driver_mysql/vendor/github.com/go-sql-driver/mysql \
go-stack:stack:v1.8.0:go_stack_stack/vendor/github.com/go-stack/stack \
go-yaml:yaml:eeeca48fe776:go_yaml_yaml_1/vendor/gopkg.in/yaml.v3 \
go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
gobwas:glob:v0.2.3:gobwas_glob/vendor/github.com/gobwas/glob \
gogo:googleapis:v1.4.0:gogo_googleapis/vendor/github.com/gogo/googleapis \
gogo:protobuf:v1.3.1:gogo_protobuf/vendor/github.com/gogo/protobuf \
gogo:status:v1.1.0:gogo_status/vendor/github.com/gogo/status \
golang-sql:civil:cb61b32ac6fe:golang_sql_civil/vendor/github.com/golang-sql/civil \
golang:appengine:v1.6.7:golang_appengine/vendor/google.golang.org/appengine \
golang:crypto:eec23a3978ad:golang_crypto/vendor/golang.org/x/crypto \
golang:groupcache:8c9f03a8e57e:golang_groupcache/vendor/github.com/golang/groupcache \
golang:lint:738671d3881b:golang_lint/vendor/golang.org/x/lint \
golang:mod:v0.3.0:golang_mod/vendor/golang.org/x/mod \
golang:net:5f4716e94777:golang_net/vendor/golang.org/x/net \
golang:oauth2:d3ed898aa8a3:golang_oauth2/vendor/golang.org/x/oauth2 \
golang:protobuf:v1.4.3:golang_protobuf/vendor/github.com/golang/protobuf \
golang:snappy:v0.0.1:golang_snappy/vendor/github.com/golang/snappy \
golang:sync:09787c993a3a:golang_sync/vendor/golang.org/x/sync \
golang:sys:fb209a7c41cd:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.3:golang_text/vendor/golang.org/x/text \
golang:time:3af7569d3a1e:golang_time/vendor/golang.org/x/time \
golang:tools:102e7d357031:golang_tools/vendor/golang.org/x/tools \
golang:xerrors:9bdfabe68543:golang_xerrors/vendor/golang.org/x/xerrors \
gomodule:redigo:v2.0.0:gomodule_redigo/vendor/github.com/gomodule/redigo \
gonum:gonum:v0.8.2:gonum_gonum/vendor/gonum.org/v1/gonum \
google:flatbuffers:v1.11.0:google_flatbuffers/vendor/github.com/google/flatbuffers \
google:go-cmp:v0.5.4:google_go_cmp/vendor/github.com/google/go-cmp \
google:go-genproto:0ff5f38871d5:google_go_genproto/vendor/google.golang.org/genproto \
google:uuid:v1.2.0:google_uuid/vendor/github.com/google/uuid \
googleapis:gax-go:v2.0.5:googleapis_gax_go_v2/vendor/github.com/googleapis/gax-go \
googleapis:google-api-go-client:v0.40.0:googleapis_google_api_go_client/vendor/google.golang.org/api \
googleapis:google-cloud-go:storage/v1.13.0:googleapis_google_cloud_go_storage \
googleapis:google-cloud-go:v0.60.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
gopherjs:gopherjs:ce3c9ade29de:gopherjs_gopherjs/vendor/github.com/gopherjs/gopherjs \
gorilla:mux:v1.8.0:gorilla_mux/vendor/github.com/gorilla/mux \
gorilla:websocket:v1.4.2:gorilla_websocket/vendor/github.com/gorilla/websocket \
gosimple:slug:v1.9.0:gosimple_slug/vendor/github.com/gosimple/slug \
grafana:grafana-aws-sdk:v0.4.0:grafana_grafana_aws_sdk/vendor/github.com/grafana/grafana-aws-sdk \
grafana:grafana-plugin-model:1fc953a61fb4:grafana_grafana_plugin_model/vendor/github.com/grafana/grafana-plugin-model \
grafana:grafana-plugin-sdk-go:v0.88.0:grafana_grafana_plugin_sdk_go/vendor/github.com/grafana/grafana-plugin-sdk-go \
grafana:loki:6978ee5d7387:grafana_loki/vendor/github.com/grafana/loki \
grpc-ecosystem:go-grpc-middleware:v1.2.2:grpc_ecosystem_go_grpc_middleware/vendor/github.com/grpc-ecosystem/go-grpc-middleware \
grpc-ecosystem:go-grpc-prometheus:6af20e3a5340:grpc_ecosystem_go_grpc_prometheus/vendor/github.com/grpc-ecosystem/go-grpc-prometheus \
grpc-ecosystem:grpc-gateway:v1.16.0:grpc_ecosystem_grpc_gateway/vendor/github.com/grpc-ecosystem/grpc-gateway \
grpc:grpc-go:v1.36.0:grpc_grpc_go/vendor/google.golang.org/grpc \
hashicorp:go-hclog:v0.15.0:hashicorp_go_hclog/vendor/github.com/hashicorp/go-hclog \
hashicorp:go-plugin:v1.4.0:hashicorp_go_plugin/vendor/github.com/hashicorp/go-plugin \
hashicorp:go-version:v1.2.1:hashicorp_go_version/vendor/github.com/hashicorp/go-version \
hashicorp:yamux:2f1d1f20f75d:hashicorp_yamux/vendor/github.com/hashicorp/yamux \
igm:sockjs-go:v3.0.0:igm_sockjs_go_v3/vendor/github.com/igm/sockjs-go \
inconshreveable:log15:67afb5ed74ec:inconshreveable_log15/vendor/github.com/inconshreveable/log15 \
influxdata:influxdb-client-go:v2.2.0:influxdata_influxdb_client_go_v2/vendor/github.com/influxdata/influxdb-client-go/v2 \
influxdata:line-protocol:2487e7298839:influxdata_line_protocol/vendor/github.com/influxdata/line-protocol \
jaegertracing:jaeger:v1.22.0:jaegertracing_jaeger/vendor/github.com/jaegertracing/jaeger \
jmespath:go-jmespath:v0.4.0:jmespath_go_jmespath/vendor/github.com/jmespath/go-jmespath \
jonboulle:clockwork:v0.2.2:jonboulle_clockwork/vendor/github.com/jonboulle/clockwork \
jpillora:backoff:v1.0.0:jpillora_backoff/vendor/github.com/jpillora/backoff \
json-iterator:go:v1.1.10:json_iterator_go/vendor/github.com/json-iterator/go \
jstemmer:go-junit-report:v0.9.1:jstemmer_go_junit_report/vendor/github.com/jstemmer/go-junit-report \
jtolds:gls:v4.20.0:jtolds_gls/vendor/github.com/jtolds/gls \
jung-kurt:gofpdf:v1.16.2:jung_kurt_gofpdf/vendor/github.com/jung-kurt/gofpdf \
k0kubun:colorstring:9440f1994b88:k0kubun_colorstring/vendor/github.com/k0kubun/colorstring \
klauspost:compress:v1.9.5:klauspost_compress/vendor/github.com/klauspost/compress \
kubernetes:client-go:v0.18.8:kubernetes_client_go/vendor/k8s.io/client-go \
lib:pq:v1.9.0:lib_pq/vendor/github.com/lib/pq \
linkedin:goavro:v2.10.0:linkedin_goavro_v2/vendor/github.com/linkedin/goavro/v2 \
magefile:mage:v1.11.0:magefile_mage/vendor/github.com/magefile/mage \
mattermost:xml-roundtrip-validator:bcd7e1b9601e:mattermost_xml_roundtrip_validator/vendor/github.com/mattermost/xml-roundtrip-validator \
mattetti:filebuffer:v1.0.0:mattetti_filebuffer/vendor/github.com/mattetti/filebuffer \
mattn:go-colorable:v0.1.7:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
mattn:go-runewidth:v0.0.7:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
mattn:go-sqlite3:v1.14.6:mattn_go_sqlite3/vendor/github.com/mattn/go-sqlite3 \
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
mitchellh:go-testing-interface:v1.0.0:mitchellh_go_testing_interface/vendor/github.com/mitchellh/go-testing-interface \
mna:redisc:v1.1.7:mna_redisc/vendor/github.com/mna/redisc \
modern-go:concurrent:bacd9c7ef1dd:modern_go_concurrent/vendor/github.com/modern-go/concurrent \
modern-go:reflect2:v1.0.1:modern_go_reflect2/vendor/github.com/modern-go/reflect2 \
mwitkow:go-conntrack:2f068394615f:mwitkow_go_conntrack/vendor/github.com/mwitkow/go-conntrack \
oklog:run:v1.1.0:oklog_run/vendor/github.com/oklog/run \
oklog:ulid:v1.3.1:oklog_ulid/vendor/github.com/oklog/ulid \
olekukonko:tablewriter:v0.0.4:olekukonko_tablewriter/vendor/github.com/olekukonko/tablewriter \
open-telemetry:opentelemetry-collector:v0.21.0:open_telemetry_opentelemetry_collector/vendor/go.opentelemetry.io/collector \
opentracing:opentracing-go:v1.2.0:opentracing_opentracing_go/vendor/github.com/opentracing/opentracing-go \
opentracing-contrib:go-grpc:4b5a12d3ff02:opentracing_contrib_go_grpc/vendor/github.com/opentracing-contrib/go-grpc \
opentracing-contrib:go-stdlib:v1.0.0:opentracing_contrib_go_stdlib/vendor/github.com/opentracing-contrib/go-stdlib \
patrickmn:go-cache:v2.1.0:patrickmn_go_cache/vendor/github.com/patrickmn/go-cache \
pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
prometheus:client_golang:v1.9.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
prometheus:client_model:v0.2.0:prometheus_client_model/vendor/github.com/prometheus/client_model \
prometheus:common:v0.18.0:prometheus_common/vendor/github.com/prometheus/common \
prometheus:node_exporter:01054558c289:prometheus_node_exporter/vendor/github.com/prometheus/node_exporter \
prometheus:procfs:v0.1.3:prometheus_procfs/vendor/github.com/prometheus/procfs \
prometheus:prometheus:6f296594a852:prometheus_prometheus/vendor/github.com/prometheus/prometheus \
protocolbuffers:protobuf-go:v1.25.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
rainycape:unidecode:cb7f23ec59be:rainycape_unidecode/vendor/github.com/rainycape/unidecode \
robfig:cron:b41be1df6967:robfig_cron/vendor/github.com/robfig/cron \
robfig:cron:v3.0.1:robfig_cron_v3/vendor/github.com/robfig/cron/v3 \
russellhaering:goxmldsig:v1.1.0:russellhaering_goxmldsig/vendor/github.com/russellhaering/goxmldsig \
russross:blackfriday:v2.0.1:russross_blackfriday_v2/vendor/github.com/russross/blackfriday/v2 \
sercand:kuberesolver:v2.4.0:sercand_kuberesolver/vendor/github.com/sercand/kuberesolver \
sergi:go-diff:v1.0.0:sergi_go_diff/vendor/github.com/sergi/go-diff \
sirupsen:logrus:v1.7.0:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \
smartystreets:assertions:v1.0.1:smartystreets_assertions/vendor/github.com/smartystreets/assertions \
smartystreets:goconvey:v1.6.4:smartystreets_goconvey/vendor/github.com/smartystreets/goconvey \
square:go-jose:v2.5.1:square_go_jose/vendor/gopkg.in/square/go-jose.v2 \
stretchr:objx:v0.2.0:stretchr_objx/vendor/github.com/stretchr/objx \
stretchr:testify:v1.7.0:stretchr_testify/vendor/github.com/stretchr/testify \
teris-io:shortid:771a37caa5cf:teris_io_shortid/vendor/github.com/teris-io/shortid \
timberio:go-datemath:74ddef604fff:timberio_go_datemath/vendor/github.com/timberio/go-datemath \
ua-parser:uap-go:daf92ba38329:ua_parser_uap_go/vendor/github.com/ua-parser/uap-go \
uber-go:atomic:v1.6.0:uber_go_atomic/vendor/go.uber.org/atomic \
uber-go:goleak:v1.1.10:uber_go_goleak/vendor/go.uber.org/goleak \
uber:jaeger-client-go:v2.25.0:uber_jaeger_client_go/vendor/github.com/uber/jaeger-client-go \
uber:jaeger-lib:v2.2.0:uber_jaeger_lib/vendor/github.com/uber/jaeger-lib \
unknwon:com:v1.0.1:unknwon_com/vendor/github.com/unknwon/com \
urfave:cli:v2.3.0:urfave_cli_v2/vendor/github.com/urfave/cli/v2 \
weaveworks:common:0619918236ec:weaveworks_common/vendor/github.com/weaveworks/common \
weaveworks:promrus:v1.2.0:weaveworks_promrus/vendor/github.com/weaveworks/promrus \
xorcare:pointer:v1.1.0:xorcare_pointer/vendor/github.com/xorcare/pointer \
yudai:gojsondiff:v1.0.0:yudai_gojsondiff/vendor/github.com/yudai/gojsondiff \
yudai:golcs:ecda9a501e82:yudai_golcs/vendor/github.com/yudai/golcs
# Mirrors for the following packages are not currently known, please look them up and handle these tuples manually:
# ::v0.3.6:group_name/vendor/xorm.io/builder (from gitea.com/xorm/builder@v0.3.6)
# ::v0.7.3:group_name/vendor/xorm.io/core (from gitea.com/xorm/core@v0.7.3)
# ::v0.8.2:group_name/vendor/xorm.io/xorm (from gitea.com/xorm/xorm@v0.8.2)
USE_RC_SUBR= grafana
TAG= 896df74
GO_TARGET= ./pkg/cmd/grafana-server \
./pkg/cmd/grafana-cli
GO_BUILDFLAGS= -ldflags="-w -X main.version=${PORTVERSION} -X main.commit=${TAG}"
SUB_FILES= grafana.conf
SUB_LIST= GRAFANA_USER=${GRAFANA_USER} \
GRAFANA_GROUP=${GRAFANA_GROUP} \
GRAFANA_DATADIR=${GRAFANA_DATADIR} \
GRAFANA_HOMEDIR=${GRAFANA_HOMEDIR} \
GRAFANA_LOGDIR=${GRAFANA_LOGDIR} \
GRAFANA_PLUGINDIR=${GRAFANA_PLUGINDIR} \
GRAFANA_PROVISIONINGDIR=${GRAFANA_PROVISIONINGDIR} \
GRAFANA_BUILDHASH=0cd8deb042c68e8113e4
GRAFANA_USER?= grafana
GRAFANA_GROUP?= grafana
USERS= ${GRAFANA_USER}
GROUPS= ${GRAFANA_GROUP}
PLIST_SUB= ${SUB_LIST}
GRAFANA_DATADIR?= /var/db/${PORTNAME}
GRAFANA_HOMEDIR?= ${DATADIR}
GRAFANA_LOGDIR?= /var/log/${PORTNAME}
GRAFANA_PLUGINDIR?= ${GRAFANA_DATADIR}/plugins
# TODO: Move to etc while moving to grafana8
GRAFANA_PROVISIONINGDIR?= ${GRAFANA_DATADIR}/provisioning
post-extract:
@${RM} -r ${WRKSRC}/public
@(cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/grafana-${PORTVERSION}.linux-amd64${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS} grafana-${PORTVERSION}/public)
@(cd ${WRKDIR} && ${MKDIR} grafana-${PORTVERSION}/vendor/xorm.io && ${MV} builder grafana-${PORTVERSION}/vendor/xorm.io/ && ${MV} core grafana-${PORTVERSION}/vendor/xorm.io/ && ${MV} xorm grafana-${PORTVERSION}/vendor/xorm.io/)
post-install:
${MKDIR} ${STAGEDIR}${GRAFANA_HOMEDIR}
${MKDIR} ${STAGEDIR}${GRAFANA_HOMEDIR}/conf
${MKDIR} ${STAGEDIR}${GRAFANA_DATADIR}
${MKDIR} ${STAGEDIR}${GRAFANA_PLUGINDIR}
${MKDIR} ${STAGEDIR}${GRAFANA_PROVISIONINGDIR}
${MKDIR} ${STAGEDIR}${GRAFANA_PROVISIONINGDIR}/dashboards
${MKDIR} ${STAGEDIR}${GRAFANA_PROVISIONINGDIR}/datasources
${MKDIR} ${STAGEDIR}${GRAFANA_PROVISIONINGDIR}/notifiers
${MKDIR} ${STAGEDIR}${GRAFANA_PROVISIONINGDIR}/plugins
${MKDIR} ${STAGEDIR}${GRAFANA_LOGDIR}
( cd ${WRKSRC} && \
${COPYTREE_SHARE} public ${STAGEDIR}${GRAFANA_HOMEDIR} )
${INSTALL_DATA} ${WRKSRC}/conf/defaults.ini \
${STAGEDIR}${GRAFANA_HOMEDIR}/conf/defaults.ini
# TODO: Rename to grafana.ini while moving to grafana8
${INSTALL_DATA} ${WRKDIR}/grafana.conf \
${STAGEDIR}${PREFIX}/etc/grafana.conf.sample
.include <bsd.port.mk>