summaryrefslogtreecommitdiffstats
path: root/netdata.spec.in
diff options
context:
space:
mode:
authorPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-08-08 00:24:18 +0300
committerGitHub <noreply@github.com>2019-08-08 00:24:18 +0300
commit66d6498ed4fa433fdd397da5ef1470312e539bd6 (patch)
treeb655b18d5107dbd9a76aa14ad2e373bbb64fd2b9 /netdata.spec.in
parent4a8d5c5fd405b2de55eb01087467b1d76f9295c3 (diff)
netdata/packaging: Expect .tar.gz version of go.d plugin (#6590)
* netdata/packaging: Expect .tar.gz version of go.d plugin, after go.d PR248 * netdata/packaging: Checksum comes on the tarball * netdata/packaging: dont mv the file after extraction, just directly extract to destination, its cleaner. Also, make sure you remove the tmp folder * netdata/packaging: bump go.d to v0.8.0 * netdata/packaging: actually fix * netdata/packaging: change the way we extract it, wasnt right after all * netdata/packaging: update go.d checksums
Diffstat (limited to 'netdata.spec.in')
-rw-r--r--netdata.spec.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/netdata.spec.in b/netdata.spec.in
index d686906f4e..ed139ccb5b 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -322,7 +322,7 @@ download_go() {
install_go() {
# When updating this value, ensure correct checksums in packaging/go.d.checksums
- GO_PACKAGE_VERSION="v0.7.0"
+ GO_PACKAGE_VERSION="v0.8.0"
ARCH_MAP=(
'i386::386'
'i686::386'
@@ -348,7 +348,7 @@ install_go() {
fi
done
tmp=$(mktemp -d /tmp/netdata-go-XXXXXX)
- GO_PACKAGE_BASENAME="go.d.plugin-${GO_PACKAGE_VERSION}.${OS}-${ARCH}"
+ GO_PACKAGE_BASENAME="go.d.plugin-${GO_PACKAGE_VERSION}.${OS}-${ARCH}.tar.gz"
download_go "https://github.com/netdata/go.d.plugin/releases/download/${GO_PACKAGE_VERSION}/${GO_PACKAGE_BASENAME}" "${tmp}/${GO_PACKAGE_BASENAME}"
download_go "https://github.com/netdata/go.d.plugin/releases/download/${GO_PACKAGE_VERSION}/config.tar.gz" "${tmp}/config.tar.gz"
@@ -374,7 +374,9 @@ install_go() {
# Install files
tar -xf "${tmp}/config.tar.gz" -C "${RPM_BUILD_ROOT}%{_libdir}/%{name}/conf.d/"
- mv "${tmp}/$GO_PACKAGE_BASENAME" "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/go.d.plugin"
+ tar xf "${tmp}/${GO_PACKAGE_BASENAME}"
+ mv "${GO_PACKAGE_BASENAME/\.tar\.gz/}" "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/go.d.plugin"
+ rm -rf "${tmp}"
fi
return 0
}