grafana: update to 6.1.0.

This commit is contained in:
maxice8 2019-04-04 18:01:03 -03:00 committed by maxice8
parent 383712eba1
commit a22ba991b0

View file

@ -1,6 +1,6 @@
# Template file for 'grafana'
pkgname=grafana
version=6.0.2
version=6.1.0
revision=1
build_style=go
go_import_path=github.com/grafana/grafana
@ -11,7 +11,7 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="Apache-2.0"
homepage="https://grafana.com"
distfiles="https://github.com/grafana/grafana/archive/v${version}.tar.gz"
checksum=148f8225bd23efbdb7046e30ffad2d53a71b448f1f143e5cfe1a71c5050b4056
checksum=f22b079c1bd835f7c8bba93cbaa3e1f39f4dd93f7bbe908914f6236b133d0610
system_accounts="_grafana"
_grafana_homedir="/var/lib/grafana"
@ -31,8 +31,6 @@ post_build() {
}
post_install() {
vlicense LICENSE.md
vmkdir var/lib/grafana
touch ${DESTDIR}/var/lib/grafana/.empty
@ -45,10 +43,10 @@ post_install() {
# don't want to version the config file.
vmkdir etc/grafana
vinstall conf/defaults.ini 0644 etc/grafana grafana.ini
sed -i "s:data = data:data = /var/lib/grafana/data:" ${DESTDIR}/etc/grafana/grafana.ini
sed -i "s:data/log:/var/log/grafana:" ${DESTDIR}/etc/grafana/grafana.ini
sed -i "s:data/plugins:/var/lib/grafana/plugins:" ${DESTDIR}/etc/grafana/grafana.ini
sed -i "s:grafana.db:/var/lib/grafana/grafana.db:" ${DESTDIR}/etc/grafana/grafana.ini
vsed -i "s:data = data:data = /var/lib/grafana/data:" ${DESTDIR}/etc/grafana/grafana.ini
vsed -i "s:data/log:/var/log/grafana:" ${DESTDIR}/etc/grafana/grafana.ini
vsed -i "s:data/plugins:/var/lib/grafana/plugins:" ${DESTDIR}/etc/grafana/grafana.ini
vsed -i "s:grafana.db:/var/lib/grafana/grafana.db:" ${DESTDIR}/etc/grafana/grafana.ini
# And finally, the service directory
vsv grafana