summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-10-25 22:41:05 +0000
committerChristian Ruppert <idl0r@gentoo.org>2011-10-25 22:41:05 +0000
commit972f203e74c32796d2dae86dd4862330d7253d35 (patch)
tree398929ef36521fe599d6f321c458f59495b10c16 /net-analyzer/nagstamon
parentUpdate sed line (fixes bug #380489) and use D instead of ED. (diff)
downloadgentoo-2-972f203e74c32796d2dae86dd4862330d7253d35.tar.gz
gentoo-2-972f203e74c32796d2dae86dd4862330d7253d35.tar.bz2
gentoo-2-972f203e74c32796d2dae86dd4862330d7253d35.zip
Version bump.
(Portage version: 2.2.0_alpha70/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/nagstamon')
-rw-r--r--net-analyzer/nagstamon/ChangeLog7
-rw-r--r--net-analyzer/nagstamon/nagstamon-0.9.8.ebuild76
2 files changed, 82 insertions, 1 deletions
diff --git a/net-analyzer/nagstamon/ChangeLog b/net-analyzer/nagstamon/ChangeLog
index 7d79213bc516..18ce55d11ee4 100644
--- a/net-analyzer/nagstamon/ChangeLog
+++ b/net-analyzer/nagstamon/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/nagstamon
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/ChangeLog,v 1.24 2011/09/21 15:18:03 nativemad Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/ChangeLog,v 1.25 2011/10/25 22:41:05 idl0r Exp $
+
+*nagstamon-0.9.8 (25 Oct 2011)
+
+ 25 Oct 2011; Christian Ruppert <idl0r@gentoo.org> +nagstamon-0.9.8.ebuild:
+ Version bump.
21 Sep 2011; Andreas Schuerch <nativemad@gentoo.org>
nagstamon-0.9.7.1.ebuild:
diff --git a/net-analyzer/nagstamon/nagstamon-0.9.8.ebuild b/net-analyzer/nagstamon/nagstamon-0.9.8.ebuild
new file mode 100644
index 000000000000..dd61a1362bd4
--- /dev/null
+++ b/net-analyzer/nagstamon/nagstamon-0.9.8.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.9.8.ebuild,v 1.1 2011/10/25 22:41:05 idl0r Exp $
+
+EAPI="3"
+
+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"
+
+DEPEND=""
+RDEPEND="dev-python/pygtk
+ dev-python/lxml
+ dev-python/beautifulsoup
+ gnome? ( dev-python/egg-python )"
+
+#S="${WORKDIR}/${MY_P}"
+S="${WORKDIR}/Nagstamon"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-0.9.5-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}
+}