summaryrefslogtreecommitdiff
blob: c53b839be70a2d05321d9a72e183e367420e8211 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/xmlsysd/xmlsysd-0.1.5.ebuild,v 1.7 2007/07/14 22:18:04 mr_bones_ Exp $

DESCRIPTION="A beowulf monitor daemon."
SRC_URI="http://www.phy.duke.edu/~rgb/Beowulf/xmlsysd/${PN}.tgz"
HOMEPAGE="http://www.phy.duke.edu/~rgb/Beowulf/xmlsysd.php"

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

DEPEND="virtual/inetd
		virtual/libc
		dev-libs/libxml
		sys-libs/zlib
		sys-libs/ncurses"
RDEPEND=""

S=${WORKDIR}/${PN}

src_compile() {
	make || die "Make failed"
}

src_install() {
	dosbin xmlsysd
	doman xmlsysd.8

	insinto /etc/xinetd.d
	newins ${FILESDIR}/xmlsysd.xinetd xmlsysd
	dodoc CHANGES DESIGN README TODO
}

pkg_postinst() {
	einfo "If you havent done so already please execute the following command"
	einfo "\"emerge --config =${CATEGORY}/${PF}\""
	einfo "to add xmlsysd to /etc/services."
	einfo
	einfo "Be sure to edit /etc/xinetd.d/xmylsysd to suit your own options."
	einfo
}

pkg_config() {
	echo "xmlsysd		7887/tcp	# xmlsysd remote system stats" >> /etc/services
	einfo "Added xmlsysd to /etc/services"
}