summaryrefslogtreecommitdiff
path: root/pcr/ganglia/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/ganglia/PKGBUILD')
-rw-r--r--pcr/ganglia/PKGBUILD55
1 files changed, 26 insertions, 29 deletions
diff --git a/pcr/ganglia/PKGBUILD b/pcr/ganglia/PKGBUILD
index 3a2e54dd8..9fed072aa 100644
--- a/pcr/ganglia/PKGBUILD
+++ b/pcr/ganglia/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=ganglia
pkgver=3.6.0
-pkgrel=1
-pkgdesc='Scalable distributed monitoring system for high-performance computing systems such as clusters and Grids'
+pkgrel=4
+pkgdesc='Scalable distributed monitoring system for high-performance computing systems such as clusters and Grids.'
arch=(
i686
x86_64
@@ -18,41 +18,35 @@ depends=(
python2
rrdtool
)
+install=$pkgname.install
options=(!libtool)
optdepends="$pkgname-web: Web frontend"
backup=(
- etc/gmond.conf
- etc/gmetad.conf
+ 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
)
-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
+ sed -i 's|nobody|ganglia|' gmetad/gmetad.conf.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
+ # 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
}
build() {
@@ -60,13 +54,16 @@ build() {
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\
- --sysconfdir=/etc
+ --sbindir=/usr/bin\
+ --sysconfdir=/etc/ganglia
# --enable-php\
+# --enable-setgid=ganglia\
setarch $CARCH make
}
@@ -77,5 +74,5 @@ package() {
mkdir $pkgdir/usr/lib/$pkgname/python_modules
msg2 'Generating default gmond.conf'
- ./gmond/gmond --default_config > $pkgdir/etc/gmond.conf
+ ./gmond/gmond --default_config > $pkgdir/etc/ganglia/gmond.conf
}