mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
46 lines
1.4 KiB
Bash
46 lines
1.4 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=2
|
|
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')
|
|
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"
|
|
}
|
|
|