mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
61 lines
2.4 KiB
Bash
61 lines
2.4 KiB
Bash
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
|
|
# Contributor: SanskritFritz (gmail)
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - disable LTO
|
|
|
|
pkgname=netdata
|
|
pkgver=1.33.1
|
|
pkgrel=1
|
|
pkgdesc="Real-time performance monitoring, in the greatest possible detail, over the web"
|
|
url="https://github.com/netdata/netdata"
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
backup=('etc/netdata/netdata.conf')
|
|
depends=('libmnl' 'libnetfilter_acct' 'zlib' 'judy' 'libuv' 'json-c' 'libcap' 'lz4' 'openssl' 'which' 'snappy' 'protobuf'
|
|
'libwebsockets' 'mongo-c-driver')
|
|
makedepends=('cups')
|
|
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-mysqlclient: for monitoring MySQL/MariaDB databases'
|
|
'python-requests: for monitoring elasticsearch'
|
|
'hddtemp: for monitoring hhd temperature'
|
|
'fping: for for fping module'
|
|
'apcupsd: for monitoring APC UPS'
|
|
'cups: for CUPS plugin'
|
|
'iw: for monitoring Linux as access point')
|
|
install=$pkgname.install
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/netdata/netdata/releases/download/v$pkgver/netdata-v$pkgver.tar.gz"
|
|
"$pkgname.sysusers")
|
|
sha512sums=('f6586426bd0fe1ac3d903ec279b27177b1d232f5ca1fc28b01f052a5f2f57846d2d6369c9d5a1872fb97e31f86f1f7a11c600beda590447f9ca30c93e7ac262c'
|
|
'a910809a823ba58ca7bdaa72e8d68427b48f452c1fbb2343fa182ecb0a091a7640e73af24b8ba2fdd90e00aed8ef53b7fccd25cb8f04ca9b9fa6c8e52223ca66')
|
|
|
|
build() {
|
|
cd "$pkgname-v$pkgver"
|
|
|
|
autoreconf -i
|
|
./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-v$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 system/netdata.conf "$pkgdir"/etc/netdata/netdata.conf
|
|
chown -R 0:134 "$pkgdir"/usr/share/netdata/web
|
|
|
|
install -Dm0644 "system/netdata.service.v235" "$pkgdir/usr/lib/systemd/system/netdata.service"
|
|
install -Dm0644 "system/netdata.logrotate" "$pkgdir/etc/logrotate.d/netdata"
|
|
install -Dm0644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
|
|
}
|