1 # Contributor: ugaciaka <ugaciaka@gmail.com>
6 pkgdesc="Monitor CPU load, memory, processes, disk usage, network traffic, Apache, MySQL & Nginx"
7 url="http://www.serverdensity.com"
9 backup=('etc/sd-agent/config.cfg')
11 source=('http://www.serverdensity.com/downloads/sd-agent.tar.gz' 'agent.patch' 'sd-agent.init')
12 md5sums=('34e09005c4512f9fc33ae2201f5d4936' '94133e7298fb82ccac419bb93382e2a2' '7ed983eb4a5cc7e9ae9bdb9ba0fca1c5')
13 depends=('python>=2.6')
14 optdepends=('mysql, apache2, nginx: for not free service')
15 install=(sd-agent.install)
20 patch -Np0 -i $srcdir/agent.patch || return 1
22 mkdir -p $pkgdir/etc/{rc.d,sd-agent}
23 mkdir -p $pkgdir/usr/bin/sd-agent
25 install -m755 $srcdir/sd-agent.init $pkgdir/etc/rc.d/sd-agent
28 install -m644 config.cfg $pkgdir/etc/sd-agent/config.cfg
31 # not necessary with python 2.6
32 rm LICENSE-minjson minjson.py
34 cp *.py $pkgdir/usr/bin/sd-agent
35 cp LICENSE $pkgdir/usr/bin/sd-agent