blob: 3a2e54dd8968b3899a40847cd3f2c737978effbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
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
}
|