diff options
author | Konstantin Kulikov <k.kulikov2@gmail.com> | 2020-03-27 06:11:13 +0000 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-27 09:23:33 +0000 |
commit | e3fc78dd04e0133b72b4bb39bf6e7f00068b656b (patch) | |
tree | 00335c9e321260492cd2356946c975bfcf6ef4d0 | |
parent | 6c49a97a47b3a7c7a3c9513b7047d25223068084 (diff) | |
download | aports-e3fc78dd04e0133b72b4bb39bf6e7f00068b656b.tar.bz2 aports-e3fc78dd04e0133b72b4bb39bf6e7f00068b656b.tar.xz |
testing/telegraf: upgrade to 1.14.0
-rw-r--r-- | testing/telegraf/APKBUILD | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/testing/telegraf/APKBUILD b/testing/telegraf/APKBUILD index 494338f64a..6b8ada34da 100644 --- a/testing/telegraf/APKBUILD +++ b/testing/telegraf/APKBUILD @@ -1,36 +1,27 @@ # Contributor: Katie Holly <holly@fuslvz.ws> # Maintainer: Konstantin Kulikov <k.kulikov2@gmail.com> pkgname=telegraf -pkgver=1.13.4 +pkgver=1.14.0 pkgrel=0 -_commit=ffabd6b5 # git rev-parse --short HEAD -_branch=release-1.13 # Just increment together with $pkgver +_commit=fefd7ff1 # git rev-parse --short HEAD +_branch=release-1.14 # Just increment together with $pkgver pkgdesc="A plugin-driven server agent for collecting & reporting metrics, part of the InfluxDB project" url="https://www.influxdata.com/time-series-platform/telegraf/" arch="x86_64 aarch64" license="MIT" -makedepends="go dep binutils-gold" +makedepends="go binutils-gold linux-headers" install="$pkgname.pre-install" subpackages="$pkgname-openrc" -source="telegraf-$pkgver.tar.gz::https://github.com/influxdata/telegraf/archive/$pkgver.tar.gz +options="net chmod-clean" +source="telegraf-$pkgver.tar.gz::https://github.com/influxdata/telegraf/archive/v$pkgver.tar.gz telegraf.initd telegraf.confd " -builddir="$srcdir/src/github.com/influxdata/$pkgname" -export GO111MODULE=off # Doesn't support modules mode yet. -export GOPATH="$srcdir" +export GOPATH=${GOPATH:-$srcdir/go} export GOCACHE=${GOCACHE:-$srcdir/go-build} export GOTMPDIR=${GOTMPDIR:-$srcdir} -prepare() { - mkdir -p ${builddir%/*} - mv "$srcdir"/$pkgname-$pkgver "$builddir"/ - cd "$builddir" - dep ensure -v - default_prepare -} - build() { local ldflags="-X main.version=$pkgver -X main.branch=$_branch -X main.commit=$_commit" go build -ldflags "$ldflags" ./cmd/telegraf @@ -50,6 +41,6 @@ package() { install -dm755 "$pkgdir/etc/$pkgname.conf.d" } -sha512sums="4d87d057761e790750c1a1d212c328d5a363aab12b28774b5d1d289f5da3f42c000253c83b7623f0cb04dbfd051bbbd7886e0e23c3657fa00d2b9f72a32124c6 telegraf-1.13.4.tar.gz +sha512sums="4791d6914aa0006a001c14159b33e3d9319d6a9451864204c638a0b520fde1f83dbd16bb838e64b655169e3b47b95e2a4f644e35fda08c1b5ee32f2bc743d239 telegraf-1.14.0.tar.gz abe483deb8e12fe140de2c36d17bbfbc97ed7a5de8c3d76162357f7ba6575b8236b7197b92a26ed6d54f95c1ccbfc12ca62d6cc0371bf49d10a1ea5622a51ed1 telegraf.initd d1a9aa57f8b5179f2d8396518b9db757fe1c40337b515c1f750cf577683ff15f3174bc757afa70d880a1fef809c873e6aa0da1b903a5a97934c14965712d47a4 telegraf.confd" |