forked from ports/contrib
grafana: 8.4.6 -> 8.5.0
This commit is contained in:
parent
f77dbd1e98
commit
7ee3004103
1184
grafana/.footprint
1184
grafana/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3w5lxn6aNadruDgX+Ft+gwRY4qlP9Aw4G1LyzmbjJ9i+mmgzgLD6C4U/0hO7C/SUDn+QKBgOBspMtuzv6+BVqQ4=
|
||||
SHA256 (Pkgfile) = 0c33e748a4de0d45fe31ea8ebca7f40c29e4de12232e47a3a4df1546b224347d
|
||||
SHA256 (.footprint) = 5f0d8382858f3a3b74828df7510594cc51e14c47849f0185d6b66a263ef68aae
|
||||
SHA256 (grafana-8.4.6.tar.gz) = 845ce303f468bb845488387da138e8ced6eed86e7a99baa3aaa3a81a04d44770
|
||||
SHA256 (grafana-8.4.6.linux-amd64.tar.gz) = ee48b4f3034cc011ba4b0038aa97f0041315fb95aa4fb12596ba8a35cf11c0a9
|
||||
RWSagIOpLGJF33YebeuzddRKzGuex6dU0JUlGYJVgtCNK8NaVuiLsTC8mBxK9cQgICPR/uqgEkTHQ7ulG7fIZ8s9yGLArb1i0AM=
|
||||
SHA256 (Pkgfile) = 8209605b01c0e6568f5d71ea95353ce7bd4770a78e3e66a2560ed4458a8485f8
|
||||
SHA256 (.footprint) = 30535034ca957fcbd188c160804ab1cc8846c2f6a5a5a794ab7ec211d78854c4
|
||||
SHA256 (grafana-8.5.0.tar.gz) = f5e21977a0d8c473cd76f7f769f6a27434e5f3b3099c6fa3586108749819e56e
|
||||
SHA256 (grafana-8.5.0.linux-amd64.tar.gz) = ad5e858e2255d69da45f83f9571cf741c6867ed8ccede5ad42e90079119b98aa
|
||||
SHA256 (grafana.confd) = 302e0281dea67cde2edd1e7d06bd7abf6a8b335595c050ffa874cb1c1bd19036
|
||||
SHA256 (grafana.service) = 3b652a54c5f26d19197955854483687d7c761a2299788a182200acd5d1ffbb47
|
||||
|
@ -1,51 +1,42 @@
|
||||
# Description: The analytics platform for all your metrics
|
||||
# URL: https://grafana.com/
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: fontconfig go git npm yarn
|
||||
# Depends on: fontconfig go
|
||||
|
||||
name=grafana
|
||||
version=8.4.6
|
||||
version=8.5.0
|
||||
release=1
|
||||
source=(https://github.com/grafana/grafana/archive/v$version/$name-$version.tar.gz
|
||||
https://dl.grafana.com/oss/release/grafana-$version.linux-amd64.tar.gz
|
||||
grafana.confd grafana.service)
|
||||
|
||||
build() {
|
||||
# setup build env {{{
|
||||
export LC_ALL=C
|
||||
[ ! -d $PKGMK_SOURCE_DIR/yarn_cache ] && mkdir $PKGMK_SOURCE_DIR/yarn_cache
|
||||
export YARN_CACHE_FOLDER=$PKGMK_SOURCE_DIR/yarn_cache
|
||||
[ ! -d $PKGMK_SOURCE_DIR/npm_cache ] && mkdir $PKGMK_SOURCE_DIR/npm_cache
|
||||
export npm_config_cache=$PKGMK_SOURCE_DIR/npm_cache
|
||||
export NPM_CONFIG_PREFIX="$SRC/npm"
|
||||
export PATH+=":$NPM_CONFIG_PREFIX/bin"
|
||||
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
|
||||
# }}}
|
||||
# setup default paths {{{
|
||||
sed -ri 's,^(\s*data\s*=).*,\1 /var/lib/grafana,' $name-$version/conf/defaults.ini
|
||||
sed -ri 's,^(\s*plugins\s*=).*,\1 /var/lib/grafana/plugins,' $name-$version/conf/defaults.ini
|
||||
sed -ri 's,^(\s*provisioning\s*=).*,\1 /var/lib/grafana/conf/provisioning,' $name-$version/conf/defaults.ini
|
||||
sed -ri 's,^(\s*logs\s*=).*,\1 /var/log/grafana,' $name-$version/conf/defaults.ini
|
||||
# }}}
|
||||
|
||||
mkdir "$PKGMK_SOURCE_DIR/gopath" || true
|
||||
export GOPATH="$PKGMK_SOURCE_DIR/gopath"
|
||||
|
||||
cd $SRC/$name-$version
|
||||
# build backend {{{
|
||||
make build-go
|
||||
go run build.go setup
|
||||
go run build.go build
|
||||
# }}}
|
||||
# build frontend {{{
|
||||
yarn install
|
||||
NODE_ENV=production yarn run build
|
||||
# }}}
|
||||
|
||||
sed -ri 's,^(\s*data\s*=).*,\1 /var/lib/grafana,' conf/defaults.ini
|
||||
sed -ri 's,^(\s*plugins\s*=).*,\1 /var/lib/grafana/plugins,' conf/defaults.ini
|
||||
sed -ri 's,^(\s*provisioning\s*=).*,\1 /var/lib/grafana/conf/provisioning,' conf/defaults.ini
|
||||
sed -ri 's,^(\s*logs\s*=).*,\1 /var/log/grafana,' conf/defaults.ini
|
||||
|
||||
go get -u gonum.org/v1/gonum@v0.11.0
|
||||
GOBIN="$(pwd)" go install github.com/google/wire/cmd/wire@v0.5.0
|
||||
./wire gen -tags oss ./pkg/server ./pkg/cmd/grafana-cli/runner
|
||||
local ldflags="-X main.version=$pkgver -X main.commit=$_commit -X main.buildstamp=$_stamp"
|
||||
go build -ldflags "$ldflags" -v ./pkg/cmd/grafana-server
|
||||
go build -ldflags "$ldflags" -v ./pkg/cmd/grafana-cli
|
||||
|
||||
install -Dm644 $SRC/$name.confd $PKG/etc/conf.d/$name
|
||||
install -Dsm755 bin/linux-amd64/grafana-server $PKG/usr/bin/grafana-server
|
||||
install -Dsm755 bin/linux-amd64/grafana-cli $PKG/usr/bin/grafana-cli
|
||||
install -Dsm755 grafana-server $PKG/usr/bin/grafana-server
|
||||
install -Dsm755 grafana-cli $PKG/usr/bin/grafana-cli
|
||||
install -Dm644 conf/sample.ini $PKG/etc/grafana.ini
|
||||
install -dm755 $PKG/usr/share/grafana
|
||||
cp -r conf public $PKG/usr/share/$name/
|
||||
@ -53,5 +44,3 @@ build() {
|
||||
## install rc file
|
||||
install -Dm 755 $SRC/grafana.service $PKG/etc/rc.d/grafana
|
||||
}
|
||||
|
||||
# vim: foldmethod=marker foldlevelstart=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user