From 46f8ff85dbf944a21ca61fec8e5c4524ca9b060e Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Thu, 20 Aug 2015 21:39:08 +0200 Subject: [PATCH] net-analyzer/nagstamon: Version bump, also fixes bug 554770 Package-Manager: portage-2.2.20.1 --- net-analyzer/nagstamon/Manifest | 1 + .../nagstamon-1.0.1_p20150222.ebuild | 66 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 net-analyzer/nagstamon/nagstamon-1.0.1_p20150222.ebuild diff --git a/net-analyzer/nagstamon/Manifest b/net-analyzer/nagstamon/Manifest index 76c42365fa49..55209d7abd53 100644 --- a/net-analyzer/nagstamon/Manifest +++ b/net-analyzer/nagstamon/Manifest @@ -1,2 +1,3 @@ DIST Nagstamon-0.9.11rc1-20130729.tar.gz 399264 SHA256 feecfab9aa1f91599ccc9c1a948aee20ee65f6fb7852c3ef47a3849d053e0011 SHA512 5b1cf20059d3f3145743e25732a5a93969dd96328c0404efbc7cb540bd596d8d2b307b00c3a2435a047da4ea64f2b03f204be1cb90da60bb42df8fc25831c24d WHIRLPOOL 0eeb334afdd39de3409ff47710d2d4d8301ecf77c53b75a366105d69fea760c79f79b0147c4808525874cd82058a78a2ad1d28a7b3af48111192ba141639ee0b DIST Nagstamon-1.0.1.tar.gz 455110 SHA256 e60a2b1fef842deb8377ace02df6791f3dcc5683d9dae4323de3f5f1f8a9893b SHA512 040f3ac03c4945b25345f36d4749903238e05001f40f2777afe5277588aababb24212b538890c4b0ff0e1edef9a950804deb93fb2111bc25c8a773a84b69c353 WHIRLPOOL 8d040c7bb1573451ec0bb7439f0795b8ec6003d292429d3a96a07bb68d0617b23838677c93183d22a9cea10620152b51a3e7d4940642560986d5890f98b13822 +DIST Nagstamon-b7a91e68ca93ead4e5cfef22e2226c1ff9c7b52c.tar.gz 7021698 SHA256 0f3a6552d033ce91a5070ddb7570ce83c99f74b4e13f8e504f6d3fafc7b3f6a3 SHA512 f24d561127d6ae82acd084fbc4d7eeec6a31f0d37b123e42565347cd8eb2e8cac4f6c9ed77c50f8d16cc7f94fdf771404397ac7f847e7a7a094a7bb53c3fadab WHIRLPOOL 45d03e134687a7716a148d4cbff716cc8e933aef51eb9cdc46403f08243cc66afeb431eac2e1f18c8f0683ca4d5cf2bf8f9fd677f4d4df0f6e55a7b26b7ddda0 diff --git a/net-analyzer/nagstamon/nagstamon-1.0.1_p20150222.ebuild b/net-analyzer/nagstamon/nagstamon-1.0.1_p20150222.ebuild new file mode 100644 index 000000000000..d4761915afca --- /dev/null +++ b/net-analyzer/nagstamon/nagstamon-1.0.1_p20150222.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-r1 + +MY_PN="Nagstamon" +MY_P="${MY_PN}-${PV/_}" +MY_SHA="b7a91e68ca93ead4e5cfef22e2226c1ff9c7b52c" + +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="https://github.com/HenriWahl/${PN}/archive/${MY_SHA}.tar.gz -> ${MY_PN}-${MY_SHA}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gnome sound" + +DEPEND="" +RDEPEND="dev-python/pygobject:2 + dev-python/pygtk + dev-python/lxml + dev-python/beautifulsoup:python-2 + gnome-base/librsvg + dev-python/keyring + gnome? ( dev-python/egg-python ) + sound? ( media-sound/sox )" + +S="${WORKDIR}/${MY_PN}-${MY_SHA}/Nagstamon" + +src_prepare() { + epatch "${FILESDIR}/nagstamon-0.9.11_rc1-resources.patch" + + rm Nagstamon/resources/LICENSE +} + +src_install() { + # setup.py is broken + cd Nagstamon/ + + doman resources/nagstamon.1 + rm resources/nagstamon.1 + + newbin ../nagstamon.py nagstamon + + insinto /usr/share/${PN}/resources + doins resources/* + + domenu "${FILESDIR}"/${PN}.desktop + + nagstamon_install() { + insinto $(python_get_sitedir)/${MY_PN} + doins {GUI,Config,Objects,Custom,Actions}.py + touch "${D}/$(python_get_sitedir)/${MY_PN}/__init__.py" || die + doins -r Server/ thirdparty/ + } + + python_foreach_impl nagstamon_install + + python_replicate_script "${D}/usr/bin/nagstamon" +} -- 2.26.2