updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / cimon / PKGBUILD
blobbdcb887d4357f49da7ce374988151e9c865e8caf
1 # Maintainer: Daniel Milde <info@milde.cz>
3 pkgname=cimon
4 pkgver=0.4.1
5 pkgrel=2
6 pkgdesc="Lightweight load monitoring tool written in C"
7 arch=('i686' 'x86_64')
8 url="http://github.com/Dundee/Cimon"
9 license=('GPL')
10 depends=('rrdtool' 'libmicrohttpd')
11 makedepends=('cmake' 'cunit')
12 install='cimon.install'
13 source=(https://github.com/downloads/Dundee/Cimon/${pkgname}-${pkgver}.tar.gz
14         cimon.rc
15         cimon.conf)
16 md5sums=('613c3a40691ae73d94459089938fcd2a'
17          'f118ae5c3469103b162583312aaaf400'
18          '11ea0d51380414ef58d7bb5f327d4b7c')
20 build() {
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" .
24     make
25     
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
30     
31     install -d ${pkgdir}${datadir}