Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 250271
Collapse All | Expand All

(-)/usr/portage/net-analyzer/nagstamon/nagstamon-0.6.2.ebuild (-17 / +24 lines)
Lines 1-41 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
1
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.6.2.ebuild,v 1.1 2008/12/05 14:21:42 dertobi123 Exp $
2
# $Header: 
3
# Nagstamon ebuild. Robin Atwood 2008 (robin@binro.org)
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
inherit eutils python
7
inherit eutils python
8
8
9
MY_P="${PN}_${PV}"
9
MY_P=${P/-/_}
10
10
11
DESCRIPTION="Nagstamon is a Nagios status monitor for a systray and displays a realtime status of a Nagios box."
11
DESCRIPTION="Nagios status monitor"
12
HOMEPAGE="http://nagstamon.wiki.sourceforge.net"
12
HOMEPAGE="http://nagstamon.wiki.sourceforge.net/"
13
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
13
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
14
14
15
LICENSE="GPL-2"
15
LICENSE="GPL-2"
16
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
16
KEYWORDS="~amd64 ~x86"
18
IUSE=""
17
SLOT="0"
18
IUSE="kde"
19
19
20
DEPEND=""
20
DEPEND=""
21
RDEPEND=">=dev-lang/python-2.4
21
RDEPEND=">=dev-lang/python-2.4
22
	dev-python/pygtk
22
				dev-python/lxml 
23
	dev-python/gnome-python-extras
23
				dev-python/pygtk 
24
	dev-python/lxml"
24
!kde? ( dev-python/egg-python )"
25
25
26
S="${WORKDIR}/${MY_P}"
26
S="${WORKDIR}/${MY_P}"
27
INS=$(python_get_sitedir)/${PN}
27
28
28
src_prepare() {
29
src_prepare() {
29
	epatch "${FILESDIR}/${P}-sharedir.patch"
30
	epatch "${FILESDIR}/${P}-sharedir.patch"
30
}
31
}
31
32
32
src_install() {
33
src_install() {
33
	insinto $(python_get_sitedir)/${PN}
34
	cd "${S}"
34
	insopts -m 0755
35
	doins nagstamon.py
36
35
37
	dodir /usr/share/nagstamon
36
	exeinto ${INS}
38
	cp -a resources "${D}"/usr/share/nagstamon
37
	newexe nagstamon.py ${PN}
39
38
	dosym ${INS}/${PN} /usr/bin/${PN}
40
	dosym $(python_get_sitedir)/${PN}/${PN}.py /usr/bin/${PN}
39
40
	dodir /usr/share/${PN}/resources
41
	insinto /usr/share/${PN}/resources
42
	doins resources/*
43
44
	insinto /usr/share/applications
45
	doins "${FILESDIR}"/${PN}.desktop
46
	dodoc LICENSE
41
}
47
}
48

Return to bug 250271