PKGBUILDs/community/netdata/PKGBUILD

58 lines
2.2 KiB
Bash
Raw Normal View History

2017-03-26 21:34:52 +00:00
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: SanskritFritz (gmail)
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable LTO
pkgname=netdata
pkgver=1.6.0
2017-05-24 12:37:55 +00:00
pkgrel=4
2017-03-26 21:34:52 +00:00
pkgdesc="Real-time performance monitoring, in the greatest possible detail, over the web."
url="https://github.com/firehol/netdata/wiki"
arch=('i686' 'x86_64')
license=('GPL')
depends=('libmnl' 'libnetfilter_acct' 'zlib')
2017-05-24 12:37:55 +00:00
optdepends=('nodejs: for monitoring named and SNMP devices'
'lm_sensors: for monitoring hardware sensors'
'iproute2: for monitoring Linux QoS'
'python: for most of the external plugins'
'python-psycopg2: for monitoring PostgreSQL databases'
'python-mysqldb: for monitoring mysql databases'
'python-requests: for monitoring elasticsearch'
'hddtemp: for monitoring hhd temperature'
'network-ups-tools: for monitoring UPS'
'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}.conf
'etc/netdata/health.d/'{apache,cpu,disks,entropy,memcached,mysql,named,net,nginx,qos,ram,redis,retroshare,squid,swap}.conf
'etc/netdata/python.d/'{apache_cache,apache,cpufreq,dovecot,example,exim,hddtemp,ipfs,memcached,mysql,nginx,nginx_log,phpfpm,postfix,redis,retroshare,sensors,squid,tomcat}.conf)
2017-03-26 21:34:52 +00:00
install="$pkgname.install"
source=("https://github.com/firehol/netdata/releases/download/v${pkgver}/netdata-${pkgver}.tar.xz")
sha512sums=('e091c2b3a619f62c209d2de8389bc33f98159071730344b17b66a766a3dcf2f598c95f10dbaf1421e32a468f18c975373291e3909002e9bf21dea9939559e1fc')
build() {
cd "$pkgname-$pkgver"
./autogen.sh
./configure \
--prefix="/usr" \
--sbindir="/usr/bin" \
--sysconfdir="/etc" \
--libexecdir="/usr/lib" \
--localstatedir="/var" \
--with-zlib --with-math --with-user=netdata --disable-lto
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
touch "$pkgdir/etc/netdata/netdata.conf"
install -Dm0644 "system/netdata.service" "$pkgdir/usr/lib/systemd/system/netdata.service"
2017-04-19 23:35:07 +00:00
install -Dm0644 "system/netdata.logrotate" "$pkgdir/etc/logrotate.d/netdata"
2017-03-26 21:34:52 +00:00
}