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
|
2019-07-09 01:48:14 +00:00
|
|
|
pkgver=1.16.0
|
2019-04-28 17:24:06 +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')
|
2017-03-26 21:34:52 +00:00
|
|
|
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'
|
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')
|
2017-03-26 21:34:52 +00:00
|
|
|
install="$pkgname.install"
|
2018-11-06 13:51:20 +00:00
|
|
|
source=("https://github.com/netdata/netdata/releases/download/v${pkgver}/netdata-v${pkgver}.tar.gz"
|
2017-12-18 13:26:20 +00:00
|
|
|
"${pkgname}.tmpfiles"
|
|
|
|
"${pkgname}.sysusers")
|
2019-07-09 01:48:14 +00:00
|
|
|
sha512sums=('a7d6da5665cbebb77c41a87ed391a16fcdd739e4014617d465925f0038e1e11cd57f15421a3338f15be606a0dec63ffa11bb801a0cd8efc392a19cdcef1f9546'
|
2017-12-18 13:26:20 +00:00
|
|
|
'3f934ddd1f5248f9e11c29050c023d60b76e4098ec9c8d413bb362d43e9242f767fd58310d966076e8400779af8bda2459afcc314b267fcb9f1c84173e14e313'
|
|
|
|
'a910809a823ba58ca7bdaa72e8d68427b48f452c1fbb2343fa182ecb0a091a7640e73af24b8ba2fdd90e00aed8ef53b7fccd25cb8f04ca9b9fa6c8e52223ca66')
|
2017-03-26 21:34:52 +00:00
|
|
|
|
|
|
|
build() {
|
2019-02-17 07:01:42 +00:00
|
|
|
cd "$pkgname-v$pkgver"
|
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-02-17 07:01:42 +00:00
|
|
|
cd "$pkgname-v$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
|
|
|
|
2017-12-18 13:26:20 +00:00
|
|
|
# Remove /var/*, pacman creates it via tmpfiles hook
|
|
|
|
rm -vrf "${pkgdir}/var"
|
|
|
|
touch "$pkgdir/etc/netdata/netdata.conf"
|
|
|
|
chown -R 134:134 "$pkgdir"/etc/netdata
|
|
|
|
chown -R 134:134 "$pkgdir"/usr/share/netdata/web
|
2017-03-26 21:34:52 +00:00
|
|
|
|
2017-12-18 13:26:20 +00:00
|
|
|
install -Dm0644 "system/netdata.service" "$pkgdir/usr/lib/systemd/system/netdata.service"
|
|
|
|
install -Dm0644 "system/netdata.logrotate" "$pkgdir/etc/logrotate.d/netdata"
|
|
|
|
install -Dm0644 "${srcdir}/${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
|
|
|
|
install -Dm0644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
|
2017-03-26 21:34:52 +00:00
|
|
|
}
|