1 # Contributor: Lee.MaRS <leemars@gmail.com>
5 pkgdesc="A scalable distributed monitoring system for high-performance computing systems such as clusters and Grids."
7 url="http://ganglia.sourceforge.net/"
9 depends=('rrdtool' 'python2' 'expat' 'confuse' 'apr')
11 install='ganglia.install'
12 source=("http://downloads.sourceforge.net/ganglia/$pkgname-$pkgver.tar.gz"
18 md5sums=('6aa5e2109c2cc8007a6def0799cf1b4c'
19 '63f56c2cccf0092d6bff23db2f48b8ce'
20 'da4034ac64c9c7f99a1437bf07d91ad1'
21 'b94ecc823d4969cb66dc1731663b6003'
22 '1dae4eb8b1cd408c03c333e0dec850d6'
23 '3c5d0736fca25d19e8367b838bea69aa')
27 srcpkg="$src/$pkgname-$pkgver"
28 dstpkg="$startdir/pkg"
32 ./configure --prefix=/usr --sysconfdir=/etc --with-gmetad --enable-gexec --enable-status --with-python=/usr/bin/python2
34 make DESTDIR="$dstpkg" install
37 mkdir -p "$dstpkg/usr/share/man/man1"
38 cp -f "$srcpkg/mans"/* "$dstpkg/usr/share/man/man1"
40 # Copy the example configuration files
41 install -m 644 -D "$src/gmond.conf" "$dstpkg/etc/ganglia/gmond.conf.example"
42 install -m 644 -D "$src/gmetad.conf" "$dstpkg/etc/ganglia/gmetad.conf.example"
44 # Copy the web frontend
45 mkdir -p "$dstpkg/usr/share/ganglia"
46 cp -rf "$srcpkg/web" "$dstpkg/usr/share/ganglia/web"
48 # Install the services
49 install -m 755 -D "$src/gmond.service" "$dstpkg/etc/rc.d/gmond"
50 install -m 755 -D "$src/gmetad.service" "$dstpkg/etc/rc.d/gmetad"