2022-01-18 15:25:06 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
2015-06-09 00:01:20 +02:00
|
|
|
# Contributor: graysky <graysky AT archlinux dot us>
|
|
|
|
|
|
|
|
pkgname=monitorix
|
2022-12-13 09:12:59 +01:00
|
|
|
pkgver=3.15.0
|
2016-10-14 20:26:47 +02:00
|
|
|
pkgrel=1
|
2015-06-09 00:01:20 +02:00
|
|
|
pkgdesc='A lightweight system monitoring tool that uses rrd databases.'
|
|
|
|
arch=('any')
|
2021-01-23 13:12:50 +01:00
|
|
|
url='https://www.monitorix.org'
|
2022-01-18 15:25:06 +01:00
|
|
|
license=('GPL2')
|
2015-06-09 00:01:20 +02:00
|
|
|
depends=('perl' 'perl-cgi' 'perl-mailtools' 'perl-mime-lite' 'perl-libwww'
|
|
|
|
'perl-dbi' 'perl-xml-simple' 'perl-config-simple' 'perl-config-general'
|
|
|
|
'rrdtool' 'perl-http-server-simple')
|
|
|
|
optdepends=(
|
|
|
|
'anything-sync-daemon: offload your databases to tmpfs to save i/o to your disk.'
|
|
|
|
'hddtemp: enable support for hdd temp monitoring.'
|
|
|
|
'lm_sensors: enable support for system temp monitoring.'
|
2016-06-30 22:52:53 +02:00
|
|
|
'net-tools: for netstat monitoring'
|
2015-06-09 00:01:20 +02:00
|
|
|
'nvidia: enable support for nVidia card temp and usage monitoring.'
|
2016-06-30 22:52:53 +02:00
|
|
|
'perl-dbd-mysql: for mysql monitoring'
|
2015-06-09 00:01:20 +02:00
|
|
|
'smartmontools: enable support for hdd bad sector monitoring.'
|
|
|
|
'terminus-font: if graphs do not contain characters, you may need this font package.')
|
2016-02-02 09:06:38 +01:00
|
|
|
conflicts=("$pkgname-git")
|
|
|
|
backup=("etc/$pkgname/$pkgname.conf" "etc/$pkgname.conf")
|
2015-06-09 00:01:20 +02:00
|
|
|
install=readme.install
|
|
|
|
source=("http://www.$pkgname.org/$pkgname-$pkgver.tar.gz")
|
2022-12-13 09:12:59 +01:00
|
|
|
sha256sums=('7eb0dea6ab272cf8838cf06d0cfd0325cfda9128d43a4743752f6bc4fafeb5de')
|
2015-06-09 00:01:20 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
|
|
|
# use Arch default location for http servers and enable built-in httpd
|
|
|
|
sed -i -e '/^base_dir/ s,var\/lib\/monitorix\/www,srv\/http\/monitorix,' \
|
|
|
|
-i -e '/^<httpd_builtin>/{$!N; s/y/n/}' $pkgname.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" BASEDIR=/srv/http/monitorix \
|
|
|
|
WWWDIR=/srv/http/monitorix install-systemd-all
|
|
|
|
|
|
|
|
# Arch provides the license so do not duplicate it
|
|
|
|
rm -f "$pkgdir/usr/share/doc/$pkgname/COPYING"
|
2022-01-18 15:25:06 +01:00
|
|
|
|
2015-06-09 00:01:20 +02:00
|
|
|
# remove unneed files
|
|
|
|
rm -f "$pkgdir/usr/share/doc/$pkgname/README.OpenBSD"
|
|
|
|
rm -f "$pkgdir/usr/share/doc/$pkgname/README.NetBSD"
|
|
|
|
rm -f "$pkgdir/usr/share/doc/$pkgname/README.FreeBSD"
|
|
|
|
}
|