diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 06:13:57 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 06:13:57 (GMT) |
commit | b172f79fadb565ecfbcec9508f9377d8618a4f4c (patch) | |
tree | bf8823b07e3313c3afa000a9b31e4f9a735cb818 /abs/extra/monitorix/PKGBUILD | |
parent | f9d54ab7c3853208484e304bc6cf40ab0f79d400 (diff) | |
parent | 5e7027c6194237ca1dc5fcbb3648483a970fb500 (diff) | |
download | linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.zip linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.gz linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.bz2 |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/extra/monitorix/PKGBUILD')
-rw-r--r-- | abs/extra/monitorix/PKGBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/abs/extra/monitorix/PKGBUILD b/abs/extra/monitorix/PKGBUILD new file mode 100644 index 0000000..e73fcd1 --- /dev/null +++ b/abs/extra/monitorix/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: graysky <da_audiophile yahoo> + +pkgname=monitorix +pkgver=1.4.2 +pkgrel=8 +pkgdesc='A lightweight system monitoring tool that uses rrd databases.' +arch=(i686) +url=http://www.$pkgname.org/ +license=(GPL) +depends=(dcron rrdtool lighttpd ) +optdepends=('lm_sensors: enable support for system temp monitoring' +'hddtemp: enable support for hdd temp monitoring') + +backup=(etc/$pkgname.conf) +source=($url$pkgname-$pkgver.tar.gz + monitorix.rc.d) +md5sums=('6db1bdbeeb0d128622590dfecb9694e4' +'34e7cb2d78bb4e3ece4aeb4ed26a0d43') +install=('monitorix.install') + +build() { + cd $pkgname-$pkgver + + install -D $pkgname.pl $pkgdir/usr/sbin/$pkgname.pl + install -D ../$pkgname.rc.d $pkgdir/etc/rc.d/$pkgname + +# use LinHES defaults + sed -e '/^our $OSTYPE/ s,RHFC,Arch,' \ + -e '/^our $TITLE/ s,FIBRANET NSP\, SL,LinHES,' \ + -e '/^our @HDDTEMP_LIST/ s,hda,sda,' \ + -e '/^our $ENABLE_CROND_MAIL/ s,Y,N,' \ + -e '/^our $ENABLE_SERVU/ s,Y,N,' \ + -e '/^our $ENABLE_PORT/ s,Y,N,' \ + -e '/^our $ENABLE_USER/ s,Y,N,' \ + -e '/^our $ENABLE_INT/ s,Y,N,' \ + -e '/^our @HDDTEMP_LIST/ s,hda,sda,' \ + -e '/^our @MNT_LIST/ s,boot,myth,' \ + -e '/^\s*"Linux-Arch"/ s,/var/log/httpd/access.log,/var/log/httpd/access_log,' \ + -e '/^\s*"Linux-Arch"/ s,/var/log/secure,/var/log/auth.log,' \ + -e '/^\s*"Linux-Arch"/ s,/srv/http,/data/srv/httpd/htdocs,' < $pkgname.conf \ + > $pkgdir/etc/$pkgname.conf + + mkdir -p $pkgdir/var/lib/$pkgname/usage + cp -r reports $pkgdir/var/lib/$pkgname + + mkdir -p $pkgdir/usr/share/doc/$pkgname + cp Changes $pkgname-apache.conf $pkgname-alert.sh README README.nginx TODO \ + $pkgdir/usr/share/doc/$pkgname + + install -dm777 $pkgdir/data/srv/httpd/htdocs/$pkgname/imgs + cp {logo_bot,logo_top,${pkgname}ico}.png $pkgdir/data/srv/httpd/htdocs/$pkgname + + install -D $pkgname.cgi $pkgdir/data/srv/httpd/htdocs/cgi-bin/$pkgname.cgi + + gzip -9 man/man5/$pkgname.conf.5 + install -Dm644 man/man5/$pkgname.conf.5.gz $pkgdir/usr/share/man/man5/$pkgname.conf.5.gz +} + |