diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2011-02-12 02:12:58 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2011-02-12 02:12:58 +0000 |
commit | 2a09f069693a7c7de75de57bc2ed92344e7bda05 (patch) | |
tree | 65b2f3652907a96c451e9b94a67b46eaf3c5ba37 /net-analyzer/nagstamon | |
parent | Version bump to 3.0.7, removed 3.0.6-r1 (diff) | |
download | gentoo-2-2a09f069693a7c7de75de57bc2ed92344e7bda05.tar.gz gentoo-2-2a09f069693a7c7de75de57bc2ed92344e7bda05.tar.bz2 gentoo-2-2a09f069693a7c7de75de57bc2ed92344e7bda05.zip |
Version bump to 0.9.5-rc1.
(Portage version: 2.2.0_alpha23/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/nagstamon')
-rw-r--r-- | net-analyzer/nagstamon/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/nagstamon/nagstamon-0.9.5_rc1.ebuild | 69 |
2 files changed, 77 insertions, 2 deletions
diff --git a/net-analyzer/nagstamon/ChangeLog b/net-analyzer/nagstamon/ChangeLog index 829fc91b459d..e5d73a901e5e 100644 --- a/net-analyzer/nagstamon/ChangeLog +++ b/net-analyzer/nagstamon/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/nagstamon -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/ChangeLog,v 1.12 2010/06/17 03:51:47 idl0r Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/ChangeLog,v 1.13 2011/02/12 02:12:55 idl0r Exp $ + +*nagstamon-0.9.5_rc1 (12 Feb 2011) + + 12 Feb 2011; Christian Ruppert <idl0r@gentoo.org> + +nagstamon-0.9.5_rc1.ebuild: + Version bump to 0.9.5-rc1. *nagstamon-0.9.4 (17 Jun 2010) diff --git a/net-analyzer/nagstamon/nagstamon-0.9.5_rc1.ebuild b/net-analyzer/nagstamon/nagstamon-0.9.5_rc1.ebuild new file mode 100644 index 000000000000..de124234c0f6 --- /dev/null +++ b/net-analyzer/nagstamon/nagstamon-0.9.5_rc1.ebuild @@ -0,0 +1,69 @@ +# 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.5_rc1.ebuild,v 1.1 2011/02/12 02:12:58 idl0r Exp $ + +EAPI="3" + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit eutils python + +MY_P="${PN}_${PV/_/-}" + +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 + gnome? ( || ( dev-python/gnome-python-extras dev-python/egg-python ) )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + sed -i -e 's:Resources = "":Resources = "/usr/share/nagstamon/resources":' nagstamon.py || die + + python_convert_shebangs 2 nagstamon.py +} + +src_install() { + # setup.py is broken + cd Nagstamon/ + + doman resources/nagstamon.1 || die + rm resources/{LICENSE,nagstamon.1} + + nagstamon_install() { + exeinto $(python_get_sitedir)/${PN} + newexe ../nagstamon.py nagstamon || die + dosym $(python_get_sitedir)/${PN}/${PN} /usr/bin/${PN} || die + + insinto $(python_get_sitedir)/${PN} + doins {GUI,Config,Objects,Custom,Actions}.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 ${PN} +} + +pkg_postrm() { + python_mod_cleanup ${PN} +} |