/[gentoo-x86]/sys-cluster/ganglia-web/ganglia-web-3.5.8-r1.ebuild
Gentoo

Contents of /sys-cluster/ganglia-web/ganglia-web-3.5.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Apr 13 11:05:56 2014 UTC (4 years, 6 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for ppc, wrt bug #462500

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/ganglia-web/ganglia-web-3.5.8-r1.ebuild,v 1.3 2014/04/12 09:35:28 ago Exp $
4
5 EAPI=4
6 WEBAPP_MANUAL_SLOT="yes"
7 inherit webapp eutils
8
9 DESCRIPTION="Web frontend for sys-cluster/ganglia"
10 HOMEPAGE="http://ganglia.sourceforge.net"
11 SRC_URI="mirror://sourceforge/ganglia/${PN}/${PV}/${P}.tar.gz"
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15 IUSE="vhosts"
16
17 DEPEND="net-misc/rsync"
18 RDEPEND="
19 ${DEPEND}
20 ${WEBAPP_DEPEND}
21 >=sys-cluster/ganglia-3.3.7[-minimal]
22 dev-lang/php[gd,xml,ctype,cgi]
23 media-fonts/dejavu"
24
25 src_configure() {
26 return 0
27 }
28
29 src_compile() {
30 return 0
31 }
32
33 src_prepare() {
34 epatch "${FILESDIR}"/CVE-2013-6395-fix-xss.patch
35 }
36
37 src_install() {
38 webapp_src_preinst
39 cd "${S}"
40 emake \
41 GDESTDIR="${MY_HTDOCSDIR}" \
42 DESTDIR="${D}" \
43 APACHE_USER=nobody \
44 install || die
45 webapp_configfile "${MY_HTDOCSDIR}"/conf_default.php
46 webapp_src_install
47
48 fowners -R nobody:nobody /var/lib/ganglia-web/dwoo
49 fperms -R 777 /var/lib/ganglia-web/dwoo
50
51 dodoc AUTHORS README TODO || die
52 }
53
54 pkg_postinst() {
55 webapp_pkg_postinst
56
57 # upgrade from < 3.5.6
58 if [ -d "${ROOT}"/var/lib/ganglia/dwoo ]; then
59 rm -rf "${ROOT}"/var/lib/ganglia/dwoo || die
60 fi
61 }

  ViewVC Help
Powered by ViewVC 1.1.20