summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2012-04-22 18:27:19 +0000
committerChristian Ruppert <idl0r@gentoo.org>2012-04-22 18:27:19 +0000
commit8563fb30f6ea3fa87141040376abe0a2cb767064 (patch)
treee62b6dda4eec9cedc7ac56976404e79d2446dd5f /net-analyzer/nagstamon/nagstamon-0.9.9.ebuild
parentRename USE="ios" to USE="ipod" which is designed for controlling libgpod depe... (diff)
downloadgentoo-2-8563fb30f6ea3fa87141040376abe0a2cb767064.tar.gz
gentoo-2-8563fb30f6ea3fa87141040376abe0a2cb767064.tar.bz2
gentoo-2-8563fb30f6ea3fa87141040376abe0a2cb767064.zip
Version bump
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/nagstamon/nagstamon-0.9.9.ebuild')
-rw-r--r--net-analyzer/nagstamon/nagstamon-0.9.9.ebuild76
1 files changed, 76 insertions, 0 deletions
diff --git a/net-analyzer/nagstamon/nagstamon-0.9.9.ebuild b/net-analyzer/nagstamon/nagstamon-0.9.9.ebuild
new file mode 100644
index 000000000000..d293feb5c036
--- /dev/null
+++ b/net-analyzer/nagstamon/nagstamon-0.9.9.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.9.9.ebuild,v 1.1 2012/04/22 18:27:19 idl0r Exp $
+
+EAPI="4"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit eutils python
+
+MY_P="${PN}_${PV/_/-}"
+MY_PN="Nagstamon"
+
+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 sound"
+
+DEPEND=""
+RDEPEND="dev-python/pygtk
+ dev-python/lxml
+ dev-python/beautifulsoup
+ gnome? ( dev-python/egg-python )
+ sound? ( media-sound/sox )"
+
+S="${WORKDIR}/Nagstamon"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-resources.patch"
+
+ python_convert_shebangs 2 nagstamon.py
+
+ rm Nagstamon/resources/LICENSE
+ rm Nagstamon/BeautifulSoup.py
+}
+
+src_install() {
+ # setup.py is broken
+ cd Nagstamon/
+
+ doman resources/nagstamon.1 || die
+ rm resources/nagstamon.1
+
+ nagstamon_install() {
+ exeinto $(python_get_sitedir)/${MY_PN}
+ doexe ../nagstamon.py || die
+ dosym $(python_get_sitedir)/${MY_PN}/${PN}.py /usr/bin/${PN} || die
+
+ insinto $(python_get_sitedir)/${MY_PN}
+ doins {GUI,Config,Objects,Custom,Actions}.py || die
+ touch "${D}/$(python_get_sitedir)/${MY_PN}/__init__.py" || die
+ doins -r Server/ || die
+
+ insinto /usr/share/${PN}/resources
+ doins resources/* || die
+
+ insinto /usr/share/applications
+ doins "${FILESDIR}"/${PN}.desktop || die
+ }
+
+ python_execute_function nagstamon_install
+}
+
+pkg_postinst() {
+ python_mod_optimize ${MY_PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup ${MY_PN}
+}