1 # Maintainer: Daniel Milde <info@milde.cz>
6 pkgdesc="Lightweight load monitoring tool written in C"
8 url="http://github.com/Dundee/Cimon"
10 depends=('rrdtool' 'libmicrohttpd')
11 makedepends=('cmake' 'cunit')
12 install='cimon.install'
13 source=(https://github.com/downloads/Dundee/Cimon/${pkgname}-${pkgver}.tar.gz
16 md5sums=('613c3a40691ae73d94459089938fcd2a'
17 'f118ae5c3469103b162583312aaaf400'
18 '11ea0d51380414ef58d7bb5f327d4b7c')
21 datadir=/var/lib/${pkgname}
22 cd ${srcdir}/${pkgname}
23 cmake -D DEBUG_MODE:BOOL=OFF -D DATA_DIR:PATH="\"${datadir}\"" -D REFRESH_GRAPH_INTERVAL:STRING="600" -D PORT:STRING="8080" .
26 install -D -m755 ${srcdir}/cimon/cimond ${pkgdir}/usr/sbin/cimond
27 install -D -m644 ${srcdir}/cimon/cimon.conf ${pkgdir}/etc/cimon.conf
28 install -D -m755 ${srcdir}/cimon.rc ${pkgdir}/etc/rc.d/cimon
29 install -D -m644 ${srcdir}/cimon.conf ${pkgdir}/etc/conf.d/cimon
31 install -d ${pkgdir}${datadir}