community/netdata to 1.11.0-1

This commit is contained in:
Kevin Mihelich 2018-11-06 13:51:20 +00:00
parent 4f1d16c536
commit 9a6eddd60e
2 changed files with 9 additions and 21 deletions

View file

@ -5,10 +5,10 @@
# - disable LTO
pkgname=netdata
pkgver=1.10.0
pkgver=1.11.0
pkgrel=1
pkgdesc="Real-time performance monitoring, in the greatest possible detail, over the web"
url="https://github.com/firehol/netdata/wiki"
url="https://github.com/netdata/netdata"
arch=('x86_64')
license=('GPL')
depends=('libmnl' 'libnetfilter_acct' 'zlib')
@ -21,21 +21,17 @@ optdepends=('nodejs: for monitoring named and SNMP devices'
'hddtemp: for monitoring hhd temperature'
'apcupsd: for monitoring APC UPS'
'iw: for monitoring Linux as access point')
backup=('etc/netdata/'{apps_groups,charts.d,health_alarm_notify,health_email_recipients,netdata,python.d,stream}.conf
'etc/netdata/health.d/'{apache,beanstalkd,couchdb,cpu,disks,entropy,memcached,mysql,named,net,nginx,qos,ram,redis,retroshare,squid,swap,tcp_conn,tcp_mem,tcp_orphans}.conf
'etc/netdata/python.d/'{apache_cache,apache,beanstalk,couchdb,cpufreq,dnsdist,dovecot,example,exim,hddtemp,ipfs,memcached,mysql,nginx,nginx_log,phpfpm,powerdns,postfix,redis,retroshare,sensors,squid,tomcat}.conf)
install="$pkgname.install"
source=("https://github.com/firehol/netdata/releases/download/v${pkgver}/netdata-${pkgver}.tar.xz"
source=("https://github.com/netdata/netdata/releases/download/v${pkgver}/netdata-v${pkgver}.tar.gz"
"${pkgname}.tmpfiles"
"${pkgname}.sysusers")
sha512sums=('ae1e3f06b175321d0bfb9818e7c4dbfb73f957b7d086580c33a8db3e4cc6b6fdeb57d84bd210a77db7f63c84286fcf988d7e03627bf6217110b038fd132c44e1'
sha512sums=('9e0fb1755785d6fa4c878ed7b7765d363d1afd3c97496f20715bb17745e727dbe72e06504bd26339b5bd459364b585cd9453b8cc9e48833cb0c70e4ded278129'
'3f934ddd1f5248f9e11c29050c023d60b76e4098ec9c8d413bb362d43e9242f767fd58310d966076e8400779af8bda2459afcc314b267fcb9f1c84173e14e313'
'a910809a823ba58ca7bdaa72e8d68427b48f452c1fbb2343fa182ecb0a091a7640e73af24b8ba2fdd90e00aed8ef53b7fccd25cb8f04ca9b9fa6c8e52223ca66')
build() {
cd "$pkgname-$pkgver"
cd "$pkgname-$pkgver"*
./autogen.sh
./configure \
--prefix="/usr" \
--sbindir="/usr/bin" \
@ -47,7 +43,7 @@ build() {
}
package() {
cd "$pkgname-$pkgver"
cd "$pkgname-$pkgver"*
make DESTDIR="$pkgdir" install

View file

@ -1,20 +1,12 @@
setcap_netdata() {
#https://github.com/firehol/netdata/wiki/Apps-Plugin#apps-plugin-is-missing-information
# https://github.com/netdata/netdata/tree/master/collectors/apps.plugin#permissions
setcap cap_dac_read_search,cap_sys_ptrace+ep /usr/lib/netdata/plugins.d/apps.plugin || chmod 1755 /usr/lib/netdata/plugins.d/apps.plugin
}
post_install() {
setcap_netdata
echo
echo "After the daemon has been started for the first time,"
echo "download the default config file from"
echo "http://127.0.0.1:19999/netdata.conf"
echo
echo "Copy it to /etc/netdata/ and modify it."
echo
setcap_netdata
}
post_upgrade() {
setcap_netdata
setcap_netdata
}