blob: cca72e774a36605b850ad748e407cf2032e2cdff (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.6.2-r1.ebuild,v 1.1 2008/12/09 18:25:02 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.wiki.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
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() {
exeinto $(python_get_sitedir)/${PN}
doexe nagstamon.py
dosym $(python_get_sitedir)/${PN}/${PN}.py /usr/bin/${PN}
dodir /usr/share/${PN}/resources
insinto /usr/share/${PN}/resources
doins resources/*
insinto /usr/share/applications
doins "${FILESDIR}"/${PN}.desktop
}
|