Lines 2-19
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.0.6.ebuild,v 1.2 2008/01/05 11:34:10 maekke Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia/ganglia-3.0.6.ebuild,v 1.2 2008/01/05 11:34:10 maekke Exp $ |
4 |
|
4 |
|
|
|
5 |
WEBAPP_OPTIONAL="yes" |
6 |
inherit webapp depend.php |
7 |
|
5 |
DESCRIPTION="Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and grids" |
8 |
DESCRIPTION="Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and grids" |
6 |
HOMEPAGE="http://ganglia.sourceforge.net/" |
9 |
HOMEPAGE="http://ganglia.sourceforge.net/" |
7 |
SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz" |
10 |
SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz" |
8 |
LICENSE="BSD" |
11 |
LICENSE="BSD" |
9 |
|
12 |
|
|
|
13 |
WEBAPP_MANUAL_SLOT="yes" |
10 |
SLOT="0" |
14 |
SLOT="0" |
11 |
KEYWORDS="~amd64 ~ppc x86" |
15 |
KEYWORDS="~amd64 ~ppc x86" |
12 |
IUSE="test minimal" |
16 |
IUSE="test minimal vhosts" |
13 |
|
17 |
|
14 |
DEPEND="!minimal? ( net-analyzer/rrdtool ) |
18 |
RDEPEND="!minimal? ( net-analyzer/rrdtool |
|
|
19 |
${WEBAPP_DEPEND} |
20 |
virtual/httpd-cgi |
21 |
virtual/php-httpd )" |
22 |
DEPEND="${RDEPEND} |
15 |
test? ( >=dev-libs/check-0.8.2 )" |
23 |
test? ( >=dev-libs/check-0.8.2 )" |
16 |
RDEPEND="!minimal? ( net-analyzer/rrdtool )" |
24 |
|
|
|
25 |
pkg_setup() { |
26 |
if ! use minimal ; then |
27 |
require_gd |
28 |
webapp_pkg_setup |
29 |
fi |
30 |
} |
17 |
|
31 |
|
18 |
src_compile() { |
32 |
src_compile() { |
19 |
econf \ |
33 |
econf \ |
Lines 38-45
Link Here
|
38 |
keepdir /var/lib/ganglia/rrds |
52 |
keepdir /var/lib/ganglia/rrds |
39 |
fowners nobody:nobody /var/lib/ganglia/rrds |
53 |
fowners nobody:nobody /var/lib/ganglia/rrds |
40 |
newinitd "${FILESDIR}"/gmetad.rc gmetad |
54 |
newinitd "${FILESDIR}"/gmetad.rc gmetad |
41 |
insinto /usr/share/${PN}/ |
55 |
|
42 |
doins -r web |
56 |
webapp_src_preinst |
|
|
57 |
insinto "${MY_HTDOCSDIR}" |
58 |
doins -r web/* |
59 |
|
60 |
webapp_configfile "${MY_HTDOCSDIR}"/conf.php |
61 |
webapp_src_install |
43 |
fi |
62 |
fi |
44 |
} |
63 |
} |
45 |
|
64 |
|
Lines 50-58
Link Here
|
50 |
elog " /usr/sbin/gmond -t > /etc/gmond.conf" |
69 |
elog " /usr/sbin/gmond -t > /etc/gmond.conf" |
51 |
elog "and customize it from there or provide your own." |
70 |
elog "and customize it from there or provide your own." |
52 |
|
71 |
|
53 |
if ! use minimal; then |
72 |
use minimal || webapp_pkg_postinst |
54 |
elog |
73 |
} |
55 |
elog "All the files necessary for the PHP frontend have been installed" |
74 |
|
56 |
elog "into ${ROOT}usr/share/${PN}/web/." |
75 |
pkg_prerm() { |
57 |
fi |
76 |
use minimal || webapp_pkg_prerm |
58 |
} |
77 |
} |