From 752b2d8995ef098ba713fda37d8dffe4ef653c8d Mon Sep 17 00:00:00 2001 From: Mark Goodwin Date: Tue, 30 Jul 2019 12:24:07 +1000 Subject: [PATCH 1/4] update to 6.2.5 --- grafana.spec | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/grafana.spec b/grafana.spec index b12ce8f..fc47445 100644 --- a/grafana.spec +++ b/grafana.spec @@ -16,8 +16,8 @@ end} Name: grafana -Version: 6.2.2 -Release: 2%{?dist} +Version: 6.2.5 +Release: 1%{?dist} Summary: Metrics dashboard and graph editor License: ASL 2.0 URL: https://grafana.org @@ -50,7 +50,7 @@ ExclusiveArch: %{grafana_arches} %{?systemd_requires} Requires(pre): shadow-utils -BuildRequires: systemd, golang, go-srpm-macros +BuildRequires: git, systemd, golang, go-srpm-macros Recommends: grafana-cloudwatch = %{version}-%{release} Recommends: grafana-elasticsearch = %{version}-%{release} @@ -408,7 +408,7 @@ rm -f public/sass/.sass-lint.yml public/test/.jshintrc # Another exception is xerrors, which is a transition package # for the new Go 1.13 error values, see https://github.com/golang/xerrors cp --parents -a vendor/github.com/grafana vendor/golang.org/x/xerrors \ - vendor/github.com/robfig/cron %{_builddir} + vendor/github.com/robfig %{_builddir} rm -r vendor # remove all vendor sources mv %{_builddir}/vendor vendor # put back what we're keeping %endif @@ -438,15 +438,18 @@ go run build.go build [ ! -d bin/arm64 ] && ln -sf linux-arm64 bin/aarch64 [ ! -d bin/aarch64 ] && ln -sf linux-aarch64 bin/aarch64 -# binaries +# dirs, shared files, public html, webpack install -d %{buildroot}%{_sbindir} -install -p -m 755 bin/%{_arch}/%{name}-server %{buildroot}%{_sbindir} -install -p -m 755 bin/%{_arch}/%{name}-cli %{buildroot}%{_sbindir} - -# other shared files, public html, webpack -install -d %{buildroot}%{_datadir}/%{name} +install -d %{buildroot}%{_datadir}/%{name}/bin cp -a conf public %{buildroot}%{_datadir}/%{name} +# wrappers +install -p -m 755 packaging/wrappers/grafana-cli %{buildroot}%{_sbindir}/%{name}-cli + +# binaries +install -p -m 755 bin/%{_arch}/%{name}-server %{buildroot}%{_sbindir} +install -p -m 755 bin/%{_arch}/%{name}-cli %{buildroot}%{_datadir}/%{name}/bin + # man pages install -d %{buildroot}%{_mandir}/man1 install -p -m 644 docs/man/man1/* %{buildroot}%{_mandir}/man1 @@ -528,6 +531,7 @@ go test ./pkg/... %attr(-, %{GRAFANA_USER}, %{GRAFANA_GROUP}) %dir %{_sharedstatedir}/%{name}/plugins # shared directory and all files therein, except some datasources +%{_datadir}/%{name}/bin %{_datadir}/%{name}/public # built-in datasources that are sub-packaged @@ -604,6 +608,9 @@ go test ./pkg/... %changelog +* Tue Jul 30 2019 Mark Goodwin 6.2.5-1 +- update to latest upstream community sources, see CHANGELOG + * Thu Jul 25 2019 Fedora Release Engineering - 6.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 8835adcdb945539c4abfd66a773beae62fb1f2c4 Mon Sep 17 00:00:00 2001 From: Mark Goodwin Date: Tue, 30 Jul 2019 12:27:23 +1000 Subject: [PATCH 2/4] new or updated sources for 6.2.5 --- .gitignore | 2 ++ 003-new-files.patch | 63 +++++++++++++++++++++++++++++++++++---------- sources | 4 +-- 3 files changed, 53 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index a533fb5..9ecf9bc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ /grafana_webpack-6.1.6.tar.gz /grafana-6.2.2.tar.gz /grafana_webpack-6.2.2.tar.gz +/grafana-6.2.5.tar.gz +/grafana_webpack-6.2.5.tar.gz diff --git a/003-new-files.patch b/003-new-files.patch index 0701856..e9e0645 100644 --- a/003-new-files.patch +++ b/003-new-files.patch @@ -1,9 +1,9 @@ diff --git a/conf/distro-defaults.ini b/conf/distro-defaults.ini new file mode 100644 -index 000000000..eeb974369 +index 000000000..67d39b845 --- /dev/null +++ b/conf/distro-defaults.ini -@@ -0,0 +1,601 @@ +@@ -0,0 +1,626 @@ +##################### Grafana Configuration Defaults for distros ##################### +# +# Do not modify this file in grafana installs @@ -119,7 +119,7 @@ index 000000000..eeb974369 + +# cache connectionstring options +# database: will use Grafana primary database. -+# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana` ++# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=0`. Only addr is required. +# memcache: 127.0.0.1:11211 +connstr = + @@ -185,6 +185,31 @@ index 000000000..eeb974369 +# set to true if you want to allow browsers to render Grafana in a ,