summaryrefslogtreecommitdiff
blob: 68fd2f2474fb9239d73ce2c96087743738c5e62f (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosix-3dmon/openmosix-3dmon-0.2.1.ebuild,v 1.6 2006/02/17 16:47:16 blubb Exp $

inherit eutils

S=${WORKDIR}/3dmon-${PV}
DESCRIPTION="Three dimensional monitoring tool for openmosix cluster"
SRC_URI="mirror://sourceforge/threedmosmon/3dmon-${PV}.tar.gz"
HOMEPAGE="http://sourceforge.net/projects/threedmosmon"
DEPEND="virtual/libc
	virtual/opengl"
RDEPEND="${DEPEND}"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="-* ~x86"
IUSE=""

src_unpack() {
	unpack ${A}

	cd ${S}	&& \
		epatch ${FILESDIR}/${P}-trivial.patch || die "Failed to patch the source."
}

src_compile() {
	cd ${S}/3dmosmon
	make
}

src_install() {
	dodir /usr/bin
	dodir /usr/share/doc

	cd ${S}/3dmosmon
	chmod 0755 3dmosmon && cp -f ./3dmosmon ${D}/usr/bin

	cd ${S}
	dodoc COPYING README AUTHORS ChangeLog TODO
}

pkg_postinst() {
	einfo
	einfo "Don't forget to run statistics daemon (openmosix-3dmon-stats)"
	einfo "on one of yours openMosix's nodes."
	einfo
}