diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2014-04-03 20:48:37 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2014-04-03 20:48:37 +0000 |
commit | bd716c57236ea41d16452bb8fb81500ae2f9ee56 (patch) | |
tree | aec3442978bcff41805f4585446baa9bca72ea0f /net-analyzer | |
parent | [QA] Revision bump. EAPI 5. src_unpack --> src_prepare. Removed extra die's. ... (diff) | |
download | gentoo-2-bd716c57236ea41d16452bb8fb81500ae2f9ee56.tar.gz gentoo-2-bd716c57236ea41d16452bb8fb81500ae2f9ee56.tar.bz2 gentoo-2-bd716c57236ea41d16452bb8fb81500ae2f9ee56.zip |
Version bump. Cleanup
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/nagstamon/ChangeLog | 14 | ||||
-rw-r--r-- | net-analyzer/nagstamon/files/nagstamon-0.9.10_p20130222.patch | 73 | ||||
-rw-r--r-- | net-analyzer/nagstamon/files/nagstamon-0.9.9-icinga_results_limitations.patch | 31 | ||||
-rw-r--r-- | net-analyzer/nagstamon/files/nagstamon-0.9.9-resources.patch | 33 | ||||
-rw-r--r-- | net-analyzer/nagstamon/files/nagstamon.desktop | 3 | ||||
-rw-r--r-- | net-analyzer/nagstamon/nagstamon-0.9.12_p20140402.ebuild (renamed from net-analyzer/nagstamon/nagstamon-0.9.10_p20130222.ebuild) | 12 | ||||
-rw-r--r-- | net-analyzer/nagstamon/nagstamon-0.9.9-r1.ebuild | 77 | ||||
-rw-r--r-- | net-analyzer/nagstamon/nagstamon-0.9.9.ebuild | 76 |
8 files changed, 19 insertions, 300 deletions
diff --git a/net-analyzer/nagstamon/ChangeLog b/net-analyzer/nagstamon/ChangeLog index 4486fadd2592..88b32f507afe 100644 --- a/net-analyzer/nagstamon/ChangeLog +++ b/net-analyzer/nagstamon/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for net-analyzer/nagstamon -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/ChangeLog,v 1.42 2013/08/28 10:27:38 ago Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/ChangeLog,v 1.43 2014/04/03 20:48:37 idl0r Exp $ + +*nagstamon-0.9.12_p20140402 (03 Apr 2014) + + 03 Apr 2014; Christian Ruppert <idl0r@gentoo.org> -nagstamon-0.9.9.ebuild, + -nagstamon-0.9.9-r1.ebuild, -nagstamon-0.9.10_p20130222.ebuild, + +nagstamon-0.9.12_p20140402.ebuild, + -files/nagstamon-0.9.9-icinga_results_limitations.patch, + -files/nagstamon-0.9.9-resources.patch, + -files/nagstamon-0.9.10_p20130222.patch, files/nagstamon.desktop: + Version bump. Cleanup 28 Aug 2013; Agostino Sarubbo <ago@gentoo.org> nagstamon-0.9.11_rc1.ebuild: Stable for x86, wrt bug #476538 diff --git a/net-analyzer/nagstamon/files/nagstamon-0.9.10_p20130222.patch b/net-analyzer/nagstamon/files/nagstamon-0.9.10_p20130222.patch deleted file mode 100644 index ca97c101d7cc..000000000000 --- a/net-analyzer/nagstamon/files/nagstamon-0.9.10_p20130222.patch +++ /dev/null @@ -1,73 +0,0 @@ -From a0c44eac2a152291e2ce04bb7c320da896c77af2 Mon Sep 17 00:00:00 2001 -From: Christian Ruppert <idl0r@gentoo.org> -Date: Tue, 26 Feb 2013 22:59:21 +0100 -Subject: [PATCH] Fix BeautifulSoup import - - -Signed-off-by: Christian Ruppert <idl0r@gentoo.org> ---- - Nagstamon/Nagstamon/Server/Ninja.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Nagstamon/Nagstamon/Server/Ninja.py b/Nagstamon/Nagstamon/Server/Ninja.py -index dd53cbe..4cee123 100644 ---- a/Nagstamon/Nagstamon/Server/Ninja.py -+++ b/Nagstamon/Nagstamon/Server/Ninja.py -@@ -13,7 +13,7 @@ import cookielib - from Nagstamon import Actions - from Nagstamon.Objects import * - from Nagstamon.Server.Generic import GenericServer, not_empty --from Nagstamon.BeautifulSoup import BeautifulSoup -+from BeautifulSoup import BeautifulSoup - - class NinjaServer(GenericServer): - """ --- -1.7.12.4 - -diff --git a/Nagstamon/nagstamon.py b/Nagstamon/nagstamon.py -index 2206db5..66da87e 100755 ---- a/Nagstamon/nagstamon.py -+++ b/Nagstamon/nagstamon.py -@@ -33,40 +33,7 @@ conf.Convert_Conf_to_Multiple_Servers() - conf.Convert_Conf_to_Custom_Actions() - - # try to get resources path if nagstamon got be installed by setup.py --Resources = "" --try: -- import pkg_resources -- Resources = pkg_resources.resource_filename("Nagstamon", "resources") --except Exception, err: -- # get resources directory from current directory - only if not being set before by pkg_resources -- # try-excepts necessary for platforms like Windows .EXE -- join = os.path.join -- normcase = os.path.normcase -- paths_to_check = [normcase(join(os.getcwd(), "Nagstamon", "resources")), -- normcase(join(os.getcwd(), "resources"))] -- try: -- # if resources dir is not available in CWD, try the -- # libs dir (site-packages) for the current Python -- from distutils.sysconfig import get_python_lib -- paths_to_check.append(normcase(join(get_python_lib(), "Nagstamon", "resources"))) -- except: -- pass -- -- #if we're still out of luck, maybe this was a user scheme install -- try: -- import site -- site.getusersitepackages() #make sure USER_SITE is set -- paths_to_check.append(normcase(join(site.USER_SITE, "Nagstamon", "resources"))) -- except: -- pass -- -- # add directory nagstamon.py where nagstamon.py resides for cases like 0install without installed pkg-resources -- paths_to_check.append(os.sep.join(sys.argv[0].split(os.sep)[:-1] + ["Nagstamon", "resources"])) -- -- for path in paths_to_check: -- if os.path.exists(path): -- Resources = path -- break -+Resources = "/usr/share/nagstamon/resources" - - # initialize GUI and actions - # if modules are not available from central python install try the ones in the same directory diff --git a/net-analyzer/nagstamon/files/nagstamon-0.9.9-icinga_results_limitations.patch b/net-analyzer/nagstamon/files/nagstamon-0.9.9-icinga_results_limitations.patch deleted file mode 100644 index 986ec51014b5..000000000000 --- a/net-analyzer/nagstamon/files/nagstamon-0.9.9-icinga_results_limitations.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 61928eea1075f22be24c4122c66ff7c2a1dcefae Mon Sep 17 00:00:00 2001 -From: Christian Ruppert <idl0r@gentoo.org> -Date: Mon, 25 Feb 2013 01:33:10 +0100 -Subject: [PATCH] Fix Icinga's default result limitations, - https://github.com/HenriWahl/Nagstamon/issues/10 - - -Signed-off-by: Christian Ruppert <idl0r@gentoo.org> ---- - Nagstamon/Server/Generic.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Nagstamon/Server/Generic.py b/Nagstamon/Server/Generic.py -index 0dfd1d6..cfe613d 100644 ---- a/Nagstamon/Server/Generic.py -+++ b/Nagstamon/Server/Generic.py -@@ -434,9 +434,9 @@ class GenericServer(object): - # group them together - hostserviceprops = 0 - # services (unknown, warning or critical?) -- nagcgiurl_services = self.monitor_cgi_url + "/status.cgi?host=all&servicestatustypes=" + str(servicestatustypes) + "&serviceprops=" + str(hostserviceprops) -+ nagcgiurl_services = self.monitor_cgi_url + "/status.cgi?host=all&limit=0&servicestatustypes=" + str(servicestatustypes) + "&serviceprops=" + str(hostserviceprops) - # hosts (up or down or unreachable) -- nagcgiurl_hosts = self.monitor_cgi_url + "/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=" + str(hoststatustypes) + "&hostprops=" + str(hostserviceprops) -+ nagcgiurl_hosts = self.monitor_cgi_url + "/status.cgi?hostgroup=all&limit=0&style=hostdetail&hoststatustypes=" + str(hoststatustypes) + "&hostprops=" + str(hostserviceprops) - # hosts - mostly the down ones - # unfortunately the hosts status page has a different structure so - # hosts must be analyzed separately --- -1.7.12.4 - diff --git a/net-analyzer/nagstamon/files/nagstamon-0.9.9-resources.patch b/net-analyzer/nagstamon/files/nagstamon-0.9.9-resources.patch deleted file mode 100644 index c5f709f05690..000000000000 --- a/net-analyzer/nagstamon/files/nagstamon-0.9.9-resources.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff --git a/nagstamon.py b/nagstamon.py -index 5d61ef8..0a4db87 100755 ---- a/nagstamon.py -+++ b/nagstamon.py -@@ -35,17 +35,17 @@ conf.Convert_Conf_to_Multiple_Servers() - conf.Convert_Conf_to_Custom_Actions() - - # try to get resources path if nagstamon got be installed by setup.py --Resources = "" --try: -- import pkg_resources -- Resources = pkg_resources.resource_filename("Nagstamon", "resources") --except Exception, err: -- # get resources directory from current directory - only if not being set before by pkg_resources -- if Resources == "": -- if os.path.exists(os.path.normcase(os.getcwd() + os.sep + "Nagstamon" + os.sep + "resources")): -- Resources = os.path.normcase(os.getcwd() + os.sep + "Nagstamon" + os.sep + "resources") -- else: -- Resources = os.path.normcase(os.getcwd() + os.sep + "resources") -+Resources = "/usr/share/nagstamon/resources" -+#try: -+# import pkg_resources -+# Resources = pkg_resources.resource_filename("Nagstamon", "resources") -+#except Exception, err: -+# # get resources directory from current directory - only if not being set before by pkg_resources -+# if Resources == "": -+# if os.path.exists(os.path.normcase(os.getcwd() + os.sep + "Nagstamon" + os.sep + "resources")): -+# Resources = os.path.normcase(os.getcwd() + os.sep + "Nagstamon" + os.sep + "resources") -+# else: -+# Resources = os.path.normcase(os.getcwd() + os.sep + "resources") - - # initialize GUI and actions - # if modules are not available from central python install try the ones in the same directory diff --git a/net-analyzer/nagstamon/files/nagstamon.desktop b/net-analyzer/nagstamon/files/nagstamon.desktop index 2875a72ac5ae..d853e1aae7ba 100644 --- a/net-analyzer/nagstamon/files/nagstamon.desktop +++ b/net-analyzer/nagstamon/files/nagstamon.desktop @@ -1,6 +1,5 @@ [Desktop Entry] Version=1.0 -Encoding=UTF-8 Type=Application Name=Nagstamon GenericName=Nagios status monitor @@ -8,5 +7,5 @@ Comment=Quick status overview of your Nagios monitoring system Exec=nagstamon Icon=/usr/share/nagstamon/resources/nagstamon.png Terminal=false -Categories=Application;System; +Categories=Network;Monitor; StartupNotify=true diff --git a/net-analyzer/nagstamon/nagstamon-0.9.10_p20130222.ebuild b/net-analyzer/nagstamon/nagstamon-0.9.12_p20140402.ebuild index aa0695ec43da..ff0c3347c6ef 100644 --- a/net-analyzer/nagstamon/nagstamon-0.9.10_p20130222.ebuild +++ b/net-analyzer/nagstamon/nagstamon-0.9.12_p20140402.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.9.10_p20130222.ebuild,v 1.1 2013/02/27 20:44:10 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.9.12_p20140402.ebuild,v 1.1 2014/04/03 20:48:37 idl0r Exp $ EAPI="5" @@ -10,12 +10,12 @@ RESTRICT_PYTHON_ABIS="3.* *-jython" inherit eutils python -MY_P="${PN}_${PV/_/-}" MY_PN="Nagstamon" +#MY_P="${MY_PN}-${PV/_/}-20130729" 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" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" @@ -31,10 +31,10 @@ RDEPEND="dev-python/pygobject:2 gnome? ( dev-python/egg-python ) sound? ( media-sound/sox )" -S="${WORKDIR}/Nagstamon" +S="${WORKDIR}/${MY_PN}" src_prepare() { - epatch "${FILESDIR}/${P}.patch" + epatch "${FILESDIR}/nagstamon-0.9.11_rc1-resources.patch" python_convert_shebangs 2 nagstamon.py diff --git a/net-analyzer/nagstamon/nagstamon-0.9.9-r1.ebuild b/net-analyzer/nagstamon/nagstamon-0.9.9-r1.ebuild deleted file mode 100644 index fdcd76c81989..000000000000 --- a/net-analyzer/nagstamon/nagstamon-0.9.9-r1.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2013 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-r1.ebuild,v 1.4 2013/04/04 19:46:37 ago 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:python-2 - gnome-base/librsvg - gnome? ( dev-python/egg-python ) - sound? ( media-sound/sox )" - -S="${WORKDIR}/Nagstamon" - -src_prepare() { - epatch "${FILESDIR}/${P}-resources.patch" - epatch "${FILESDIR}/${P}-icinga_results_limitations.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 - - domenu "${FILESDIR}"/${PN}.desktop || die - } - - python_execute_function nagstamon_install -} - -pkg_postinst() { - python_mod_optimize ${MY_PN} -} - -pkg_postrm() { - python_mod_cleanup ${MY_PN} -} diff --git a/net-analyzer/nagstamon/nagstamon-0.9.9.ebuild b/net-analyzer/nagstamon/nagstamon-0.9.9.ebuild deleted file mode 100644 index 8b77d323a6cb..000000000000 --- a/net-analyzer/nagstamon/nagstamon-0.9.9.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2013 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.6 2013/02/25 20:45:24 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:python-2 - gnome-base/librsvg - 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 - - domenu "${FILESDIR}"/${PN}.desktop || die - } - - python_execute_function nagstamon_install -} - -pkg_postinst() { - python_mod_optimize ${MY_PN} -} - -pkg_postrm() { - python_mod_cleanup ${MY_PN} -} |