mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
|
|
# Contributor: SanskritFritz (gmail)
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - disable LTO
|
|
|
|
pkgname=netdata
|
|
pkgver=1.6.0
|
|
pkgrel=3
|
|
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')
|
|
optdepends=('nodejs: Webbox plugin'
|
|
'lm_sensors: sensors module')
|
|
backup=('etc/netdata/netdata.conf'
|
|
'etc/netdata/charts.d.conf'
|
|
'etc/netdata/apps_groups.conf'
|
|
'etc/netdata/health_alarm_notify.conf'
|
|
'etc/netdata/health_email_recipients.conf')
|
|
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"
|
|
install -Dm0644 "system/netdata.logrotate" "$pkgdir/etc/logrotate.d/netdata"
|
|
}
|
|
|