From facbbc2f4257944596c54a8c3b18b1778e4d07be Mon Sep 17 00:00:00 2001 From: Henrik Riomar Date: Thu, 22 Nov 2018 21:17:23 +0100 Subject: testing/netdata: upgrade to 1.11.1 --- testing/netdata/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 8 deletions(-) (limited to 'testing') diff --git a/testing/netdata/APKBUILD b/testing/netdata/APKBUILD index a47fdedac6..a6c33a3879 100644 --- a/testing/netdata/APKBUILD +++ b/testing/netdata/APKBUILD @@ -1,21 +1,22 @@ # Contributor: Carlo Landmeter # Maintainer: pkgname=netdata -pkgver=1.10.0 +pkgver=1.11.1 pkgrel=0 pkgdesc="Real-time performance monitoring" -url="https://github.com/firehol/netdata" +url="https://github.com/netdata/netdata" license="GPL-3.0-or-later" arch="all" depends="bash" -makedepends="zlib-dev e2fsprogs-dev" +makedepends="zlib-dev e2fsprogs-dev linux-headers libcap-dev" pkgusers="netdata" pkggroups="netdata" subpackages="$pkgname-openrc $pkgname-nodejs::noarch $pkgname-python::noarch" install="$pkgname.pre-install" -source="https://github.com/firehol/netdata/releases/download/v$pkgver/netdata-$pkgver.tar.xz +source="$pkgname-$pkgver.tar.gz::https://github.com/netdata/netdata/releases/download/v${pkgver}/netdata-v${pkgver}.tar.gz $pkgname.initd" -builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir"/$pkgname-${pkgver}_rolling + build() { cd "$builddir" @@ -44,23 +45,51 @@ package() { install -Dm755 $srcdir/$pkgname.initd \ $pkgdir/etc/init.d/$pkgname install -Dm644 ./system/netdata.conf $pkgdir/etc/netdata/netdata.conf + + # cap needed for disk I/O utilization reporting + setcap cap_dac_read_search,cap_sys_ptrace+ep \ + "$pkgdir"/usr/libexec/netdata/plugins.d/apps.plugin } nodejs() { pkgdesc="$pkgdesc (nodejs support)" depends="$pkgname nodejs" - mkdir -p "$subpkgdir"/usr/libexec/netdata + + mkdir -p "$subpkgdir"/etc/netdata + mkdir -p "$subpkgdir"/usr/libexec/netdata/plugins.d + mkdir -p "$subpkgdir"/usr/lib/netdata/conf.d + mv $pkgdir/usr/libexec/netdata/node.d \ $subpkgdir/usr/libexec/netdata + mv $pkgdir/usr/libexec/netdata/plugins.d/node.d.plugin \ + $subpkgdir/usr/libexec/netdata/plugins.d + mv $pkgdir/etc/netdata/node.d \ + $subpkgdir/etc/netdata/ + mv $pkgdir/usr/lib/netdata/conf.d/node.d \ + $subpkgdir/usr/lib/netdata/conf.d + mv $pkgdir/usr/lib/netdata/conf.d/node.d.conf \ + $subpkgdir/usr/lib/netdata/conf.d } python() { pkgdesc="$pkgdesc (python support)" depends="$pkgname python2" - mkdir -p "$subpkgdir"/usr/libexec/netdata + + mkdir -p "$subpkgdir"/etc/netdata + mkdir -p "$subpkgdir"/usr/libexec/netdata/plugins.d + mkdir -p "$subpkgdir"/usr/lib/netdata/conf.d + mv $pkgdir/usr/libexec/netdata/python.d \ "$subpkgdir"/usr/libexec/netdata + mv $pkgdir/usr/libexec/netdata/plugins.d/python.d.plugin \ + "$subpkgdir"/usr/libexec/netdata/plugins.d + mv $pkgdir/etc/netdata/python.d \ + $subpkgdir/etc/netdata/ + mv $pkgdir/usr/lib/netdata/conf.d/python.d \ + $subpkgdir/usr/lib/netdata/conf.d + mv $pkgdir/usr/lib/netdata/conf.d/python.d.conf \ + $subpkgdir/usr/lib/netdata/conf.d } -sha512sums="ae1e3f06b175321d0bfb9818e7c4dbfb73f957b7d086580c33a8db3e4cc6b6fdeb57d84bd210a77db7f63c84286fcf988d7e03627bf6217110b038fd132c44e1 netdata-1.10.0.tar.xz +sha512sums="249fcc6fb27301214cec9f0c1e091409cae9408f973865813a1fd471e5dd5f2bdd625ec5c644f83a50f74f06be962963ba94e971783cbd3e15ac1c331d3ea465 netdata-1.11.1.tar.gz 0cc96162524bec0562e7ba0449d7d39ca6edd1928e2c1ac9f579a1fe5ea442f8ce670d04e84d2cac7c09843a9df7ed8151a6a3d2377713ffba4c86b43b8d9096 netdata.initd" -- cgit v1.2.3