summaryrefslogtreecommitdiff
blob: eee1bba6a5705265935b6c74c44474d22dbb9a57 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosixwebview/openmosixwebview-0.2.13.ebuild,v 1.3 2004/01/12 01:52:54 mr_bones_ Exp $

DESCRIPTION="Produces web charts for monitoring an openMosix cluster"
SRC_URI="http://laurel.datsi.fi.upm.es/~rpons/openmosix/download/openmosixwebview-${PV}.tar.gz"
HOMEPAGE="http://laurel.datsi.fi.upm.es/~rpons/openmosix/"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"

DEPEND=">=sys-cluster/openmosix-user-0.3.5
	>=net-www/apache-2
	>=dev-php/mod_php-4"
RDEPEND="${DEPEND}"

src_install() {
	use apache2 || insinto /etc/apache/conf/addon-modules
	use apache2 || newins  ${FILESDIR}/apache.conf openmosixwebview.conf
	use apache2 && insinto /etc/apache2/conf/modules.d
	use apache2 && newins ${FILESDIR}/apache.conf 70_openmosixwebview.conf

	dodir /var/www/openmosixwebview
	cp * ${D}/var/www/openmosixwebview
}

src_postinstall() {
	einfo
	einfo "Make sure to start openmosixcollector by running"
	einfo "\"/etc/init.d/openmosixcollector start\""
	einfo "or by adding it to your default runlevel with"
	einfo "\"rc-update add openmosixcollector default\""
	einfo
}