2019-08-07 19:24:23 +00:00
|
|
|
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
|
2017-03-26 21:34:52 +00:00
|
|
|
# Contributor: SanskritFritz (gmail)
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable LTO
|
|
|
|
|
|
|
|
pkgname=netdata
|
2020-07-18 17:16:55 +00:00
|
|
|
pkgver=1.23.2
|
2020-05-13 17:04:09 +00:00
|
|
|
pkgrel=1
|
2017-07-17 23:33:22 +00:00
|
|
|
pkgdesc="Real-time performance monitoring, in the greatest possible detail, over the web"
|
2018-11-06 13:51:20 +00:00
|
|
|
url="https://github.com/netdata/netdata"
|
2017-12-18 13:26:20 +00:00
|
|
|
arch=('x86_64')
|
2017-03-26 21:34:52 +00:00
|
|
|
license=('GPL')
|
2018-11-09 04:10:03 +00:00
|
|
|
backup=('etc/netdata/netdata.conf')
|
2020-06-26 12:42:30 +00:00
|
|
|
depends=('libmnl' 'libnetfilter_acct' 'zlib' 'judy' 'libuv' 'json-c' 'libcap' 'lz4' 'openssl')
|
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'
|
2019-04-12 17:44:15 +00:00
|
|
|
'python-mysqlclient: for monitoring MySQL/MariaDB databases'
|
2017-05-24 12:37:55 +00:00
|
|
|
'python-requests: for monitoring elasticsearch'
|
|
|
|
'hddtemp: for monitoring hhd temperature'
|
|
|
|
'apcupsd: for monitoring APC UPS'
|
|
|
|
'iw: for monitoring Linux as access point')
|
2020-03-19 23:56:54 +00:00
|
|
|
install=$pkgname.install
|
2019-09-22 01:50:49 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/netdata/netdata/archive/v${pkgver}.tar.gz"
|
|
|
|
"$pkgname.sysusers")
|
2020-07-18 17:16:55 +00:00
|
|
|
sha512sums=('4a4dc647e0326da4f785444e15e2f74af09428374bfe2db57c44dd2765ce77b2babbd8b52e33e04f49b95937a6ca8691ffa18b51d1717ea927025b70fa7e369f'
|
2017-12-18 13:26:20 +00:00
|
|
|
'a910809a823ba58ca7bdaa72e8d68427b48f452c1fbb2343fa182ecb0a091a7640e73af24b8ba2fdd90e00aed8ef53b7fccd25cb8f04ca9b9fa6c8e52223ca66')
|
2017-03-26 21:34:52 +00:00
|
|
|
|
|
|
|
build() {
|
2019-08-07 19:24:23 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2017-12-18 13:26:20 +00:00
|
|
|
|
2019-08-07 19:24:23 +00:00
|
|
|
autoreconf -i
|
2017-12-18 13:26:20 +00:00
|
|
|
./configure \
|
|
|
|
--prefix="/usr" \
|
|
|
|
--sbindir="/usr/bin" \
|
|
|
|
--sysconfdir="/etc" \
|
|
|
|
--libexecdir="/usr/lib" \
|
|
|
|
--localstatedir="/var" \
|
|
|
|
--with-zlib --with-math --with-user=netdata --disable-lto
|
|
|
|
make
|
2017-03-26 21:34:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-08-07 19:24:23 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2017-03-26 21:34:52 +00:00
|
|
|
|
2017-12-18 13:26:20 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2017-03-26 21:34:52 +00:00
|
|
|
|
2020-03-19 01:09:30 +00:00
|
|
|
install -Dm644 system/netdata.conf "$pkgdir"/etc/netdata/netdata.conf
|
2020-03-19 23:56:54 +00:00
|
|
|
chown -R 0:134 "$pkgdir"/usr/share/netdata/web
|
2017-03-26 21:34:52 +00:00
|
|
|
|
2020-04-06 12:33:25 +00:00
|
|
|
install -Dm0644 "system/netdata.service.v235" "$pkgdir/usr/lib/systemd/system/netdata.service"
|
2017-12-18 13:26:20 +00:00
|
|
|
install -Dm0644 "system/netdata.logrotate" "$pkgdir/etc/logrotate.d/netdata"
|
|
|
|
install -Dm0644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
|
2017-03-26 21:34:52 +00:00
|
|
|
}
|