diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-12 20:19:30 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-12 20:19:30 -0400 |
commit | 9061cbd4eedbcef1cf33f4fbf49b1033d40aa4ac (patch) | |
tree | 318afd7503e06b1811f6875c16afeca4159cc2f3 /pcr/ganglia/PKGBUILD | |
parent | ded3ff17a6b9867b2938b3393309f2c07a8c9725 (diff) | |
parent | 12c5c1055815eca712cb6dc36e258dce2599b72f (diff) | |
download | abslibre-9061cbd4eedbcef1cf33f4fbf49b1033d40aa4ac.tar.gz abslibre-9061cbd4eedbcef1cf33f4fbf49b1033d40aa4ac.tar.bz2 abslibre-9061cbd4eedbcef1cf33f4fbf49b1033d40aa4ac.zip |
Merge branch 'master' of git://projects.parabola.nu/abslibre/abslibre
Diffstat (limited to 'pcr/ganglia/PKGBUILD')
-rw-r--r-- | pcr/ganglia/PKGBUILD | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/pcr/ganglia/PKGBUILD b/pcr/ganglia/PKGBUILD index 94e32a211..d55265068 100644 --- a/pcr/ganglia/PKGBUILD +++ b/pcr/ganglia/PKGBUILD @@ -1,78 +1,78 @@ -# Maintainer: Márcio Silva <coadde@parabola.nu> +# Maintainer: David P. <megver83@parabola.nu> +# Contributor: Tyler Langlois <ty |at| tjll |dot| net> pkgname=ganglia -pkgver=3.6.0 -pkgrel=4 -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 -) -install=$pkgname.install -options=(!libtool) -optdepends="$pkgname-web: Web frontend" -backup=( - etc/ganglia/gmond.conf - etc/ganglia/gmetad.conf -) -source=( - http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz - gmetad.service.in - gmond.service.in -) -sha512sums=( - 2a05d37787f1440c0c4aa91cdf0f4f4cb39c840b3b0fdcd6fe58cfb5892a75f81d36f6191c83c17558c37154298268df74fa255d2c940a8b84a7bf3ddb102394 - a42b7dcb7dd81961cc9fef114f8c4c352375ed931dc2ae77b1139c6fde7cbd6544fcb5fe286ff6066ef37696821dc9f6fcab7c6b14d3ebaa59e895219cd89836 - c362a383cbbaf5540b5d698f664534bd0da73bcc5ee4336c468844ed17706e05450f35e4f6cf969f1d2495c462883873b30e4575b9ee8ded74ab475afda608bb -) +pkgver=3.7.2 +pkgrel=3 +pkgdesc="A scalable distributed monitoring system for high-performance computing systems such as clusters and Grids." +arch=('i686' 'x86_64' 'armv7h') +url="http://${pkgname}.sourceforge.net/" +license=('BSD') +depends=('apr' 'confuse' 'protobuf-c' 'python2' 'rrdtool') +options=('!libtool') +optdepends=('ganglia-web: Web frontend') +install='ganglia.install' +backup=('etc/ganglia/gmond.conf' + 'etc/ganglia/gmetad.conf') +source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" + 'riemann.proto::https://raw.githubusercontent.com/aphyr/riemann-java-client/2.5.0/src/main/proto/riemann/proto.proto' + 'ganglia.install' + 'ganglia.sysusers' + 'uid.patch' + 'runstatedir.patch') +sha256sums=('042dbcaf580a661b55ae4d9f9b3566230b2232169a0898e91a797a4c61888409' + '880a28fa0ed5b485bce58109fa694eca458693d69b7c297cdd77a1340f476c00' + '79df856f3b0623e736ea9c1f5c36c321769d6f161c85faf31fab3d7b872d6725' + '34506cdaab1a6250c9a0d6d9fb9c6a0a0dfe1187bcb0a5d6ca71491007116d05' + 'dc2cdffaf0cbedbbac2e654843803423f93da494aaeecda8a185ad3badea8e21' + 'e3abe8017bf3d974e2b4ba5e285e7a91e94dbb69ec6fdf128675a8868e28c8a4') prepare() { - cd $srcdir/$pkgname-$pkgver + cd "$srcdir" + protoc-c --c_out="$pkgname-$pkgver/gmetad" riemann.proto - #sed -i 's|sapi/embed/php_embed.h|php/sapi/embed/php_embed.h|' configure - - sed -i 's|nobody|ganglia|' gmetad/gmetad.conf.in - - # FIXME: Hopefully this will soon no longer be required? - msg2 'Copying systemd units into source as workaround for bug' - cp $srcdir/gmetad.service.in gmetad/gmetad.service.in - cp $srcdir/gmond.service.in gmond/gmond.service.in + cd "$pkgname-$pkgver" + for patch in $srcdir/*.patch; do + msg2 "Applying $(basename $patch)" + patch -Np1 -i $patch + done } build() { - cd $srcdir/$pkgname-$pkgver - setarch $CARCH ./configure --prefix=/usr\ - --enable-gexec\ - --enable-perl\ - --enable-setuid=ganglia\ - --enable-status\ - --disable-static\ - --libdir=/usr/lib\ - --with-gmetad\ - --with-python=/usr/bin/python2\ - --sbindir=/usr/bin\ - --sysconfdir=/etc/ganglia -# --enable-php\ -# --enable-setgid=ganglia\ - setarch $CARCH make + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --libdir=/usr/lib \ + --sysconfdir=/etc/ganglia \ + --enable-gexec \ + --enable-status \ + --with-gmetad \ + --with-riemann \ + --with-python=/usr/bin/python2 \ + --with-systemdsystemunitdir=/usr/lib/systemd/system + + make } package() { - cd $srcdir/$pkgname-$pkgver - setarch $CARCH make DESTDIR=$pkgdir install + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + + # Install Python modules + mkdir -p "$pkgdir/usr/lib/$pkgname/python_modules" + find "gmond/python_modules" -name *.py \ + -exec cp \{\} "$pkgdir/usr/lib/$pkgname/python_modules/" \; + cp -R "gmond/python_modules/conf.d" "$pkgdir/etc/$pkgname/" + + msg2 "Generating default gmond.conf" + ./gmond/gmond --default_config > "$pkgdir/etc/$pkgname/gmond.conf" - mkdir $pkgdir/usr/lib/$pkgname/python_modules + install -Dm755 -d "$pkgdir/var/lib/ganglia/rrds" + install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/COPYING" - msg2 'Generating default gmond.conf' - ./gmond/gmond --default_config > $pkgdir/etc/ganglia/gmond.conf + # See man page for sysusers.d(5) + install -Dm644 "$srcdir"/ganglia.sysusers \ + "$pkgdir"/usr/lib/sysusers.d/ganglia.conf } |