From e30ea4382110b99725dbc7823f8a8b2ff5c4a78c Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Fri, 24 May 2013 22:30:35 -0300 Subject: ganglia: add pkg to pcr --- pcr/ganglia/PKGBUILD | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 pcr/ganglia/PKGBUILD (limited to 'pcr') diff --git a/pcr/ganglia/PKGBUILD b/pcr/ganglia/PKGBUILD new file mode 100644 index 000000000..3a2e54dd8 --- /dev/null +++ b/pcr/ganglia/PKGBUILD @@ -0,0 +1,81 @@ +# Maintainer (Parabola): Márcio Silva + +pkgname=ganglia +pkgver=3.6.0 +pkgrel=1 +pkgdesc='Scalable distributed monitoring system for high-performance computing systems such as clusters and Grids' +arch=( + i686 + x86_64 + mips64el +) +url=http://$pkgname.sourceforge.net/ +license=BSD +depends=( + apr + confuse + #php-embed + python2 + rrdtool +) +options=(!libtool) +optdepends="$pkgname-web: Web frontend" +backup=( + etc/gmond.conf + etc/gmetad.conf +) +source=http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz +sha512sums=2a05d37787f1440c0c4aa91cdf0f4f4cb39c840b3b0fdcd6fe58cfb5892a75f81d36f6191c83c17558c37154298268df74fa255d2c940a8b84a7bf3ddb102394 + +prepare() { + cd $srcdir/$pkgname-$pkgver + #sed -i 's|sapi/embed/php_embed.h|php/sapi/embed/php_embed.h|' configure + touch gm{on,eta}d/gm{on,eta}d.service.in + + echo '[Unit]' > gmetad/gmetad.service.in + echo 'Description=Ganglia Meta Daemon' >> gmetad/gmetad.service.in + echo 'After=network.target' >> gmetad/gmetad.service.in + echo '' >> gmetad/gmetad.service.in + echo '[Service]' >> gmetad/gmetad.service.in + echo 'Type=forking' >> gmetad/gmetad.service.in + echo 'PIDFile=/run/gmetad.pid' >> gmetad/gmetad.service.in + echo 'ExecStart=/usr/sbin/gmetad -p /run/gmetad.pid' >> gmetad/gmetad.service.in + echo '' >> gmetad/gmetad.service.in + echo '[Install]' >> gmetad/gmetad.service.in + echo 'WantedBy=multi-user.target' >> gmetad/gmetad.service.in + + echo '[Unit]' > gmond/gmond.service.in + echo 'Description=Ganglia Monitor Daemon' >> gmond/gmond.service.in + echo 'After=network.target' >> gmond/gmond.service.in + echo '' >> gmond/gmond.service.in + echo '[Service]' >> gmond/gmond.service.in + echo 'ExecStart=/usr/sbin/gmond -f -p /run/gmond.pid' >> gmond/gmond.service.in + echo '' >> gmond/gmond.service.in + echo '[Install]' >> gmond/gmond.service.in + echo 'WantedBy=multi-user.target' >> gmond/gmond.service.in +} + +build() { + cd $srcdir/$pkgname-$pkgver + setarch $CARCH ./configure --prefix=/usr\ + --enable-gexec\ + --enable-perl\ + --enable-status\ + --disable-static\ + --libdir=/usr/lib\ + --with-gmetad\ + --with-python=/usr/bin/python2\ + --sysconfdir=/etc +# --enable-php\ + setarch $CARCH make +} + +package() { + cd $srcdir/$pkgname-$pkgver + setarch $CARCH make DESTDIR=$pkgdir install + + mkdir $pkgdir/usr/lib/$pkgname/python_modules + + msg2 'Generating default gmond.conf' + ./gmond/gmond --default_config > $pkgdir/etc/gmond.conf +} -- cgit v1.2.3