summaryrefslogtreecommitdiff
blob: a8fc8924f0bb501fa86888ef4e0c8c7620a7b19b (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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.8.2.ebuild,v 1.1 2009/08/26 16:27:54 dertobi123 Exp $

EAPI="2"

inherit eutils python

MY_P=${P/-/_}

DESCRIPTION="Nagstamon is a Nagios status monitor for a systray and displays a realtime status of a Nagios box."
HOMEPAGE="http://nagstamon.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"

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

DEPEND=""
RDEPEND=">=dev-lang/python-2.4
	dev-python/pygtk
	dev-python/lxml
	gnome? ( || ( dev-python/gnome-python-extras dev-python/egg-python ) )"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	epatch "${FILESDIR}/${P}-sharedir.patch"
}

src_install() {
	cd "${S}/Nagstamon/"
	exeinto $(python_get_sitedir)/${PN}
	doexe nagstamon
	doexe nagstamonActions.py
	doexe nagstamonConfig.py
	doexe nagstamonGUI.py
	doexe nagstamonObjects.py
	dosym $(python_get_sitedir)/${PN}/${PN} /usr/bin/${PN}

	dodir /usr/share/${PN}/resources
	insinto /usr/share/${PN}/resources
	doins resources/*

	insinto /usr/share/applications
	doins "${FILESDIR}"/${PN}.desktop
}