www-apps/icingaweb2-module-graphite: fix SRC_URI for 1.0.1, EAPI=7
authorLouis Sautier <sautier.louis@gmail.com>
Sat, 26 May 2018 20:50:51 +0000 (22:50 +0200)
committerAaron Bauman <bman@gentoo.org>
Sat, 26 May 2018 21:46:35 +0000 (17:46 -0400)
Also update HOMEPAGE and fix DESCRIPTION, remove deprecated patch from
live ebuild and add upstream info to metadata.xml.

Package-Manager: Portage-2.3.38, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/8601

www-apps/icingaweb2-module-graphite/Manifest
www-apps/icingaweb2-module-graphite/files/patch-unquote-service.patch [deleted file]
www-apps/icingaweb2-module-graphite/icingaweb2-module-graphite-1.0.1-r1.ebuild [moved from www-apps/icingaweb2-module-graphite/icingaweb2-module-graphite-1.0.1.ebuild with 65% similarity]
www-apps/icingaweb2-module-graphite/icingaweb2-module-graphite-9999.ebuild
www-apps/icingaweb2-module-graphite/metadata.xml

index 2713871762cc01a80b0aea9aaee62bce7fdafb89..72dd4c967863c132a817c42319a7ab91bf6829bc 100644 (file)
@@ -1 +1 @@
-DIST icingaweb2-module-graphite-1.0.1.tar.gz 5988 BLAKE2B 43f98d853643377cc8088e60845c603563ec5f3bee8d1e9f48e884677c7bfbc82da5603e1aae05634616a52bd387c1685bf2605d1abcae0a96cc88dad303dd1c SHA512 594a8d2a141bdf682fa37dc7b677a78f255dfa3d05071878a416b7426ed6355abc2a2864394e333a00c08aba8fd4f898e42c5a49ffeaf689a16de175f6ddb333
+DIST icingaweb2-module-graphite-1.0.1.tar.gz 329327 BLAKE2B e53f9ea0e3ca061fdec80da71b6624f97eeda04d78975ac198a6e75ae5300eabf50db3e95802e6d0108ee0314ad9af6108daa24d5b99228c7d9c2fcecfc80cac SHA512 1270d2e7768d3f9181950f08c703236042a9c99d337bd2964396890cdb645b72afabe387d35d232fb123d9f635cc27fc09ac374ec2c5707fa83706b0ba67ac2a
diff --git a/www-apps/icingaweb2-module-graphite/files/patch-unquote-service.patch b/www-apps/icingaweb2-module-graphite/files/patch-unquote-service.patch
deleted file mode 100644 (file)
index 3dde1f4..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-From 3e5921b96b17ea4d0a5f32a39940a9b762e5c3a4 Mon Sep 17 00:00:00 2001
-From: Matthew Thode <mthode@mthode.org>
-Date: Tue, 12 Apr 2016 03:14:16 +0000
-Subject: [PATCH] remove quotes around $service variable
-
-This fixes https://dev.icinga.org/issues/11572
-
-This still leaves $hostname being quoted, I don't know if that needs to go as well.
----
- application/controllers/ShowController.php | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/application/controllers/ShowController.php b/application/controllers/ShowController.php
-index f029b81..0457ce9 100644
---- a/application/controllers/ShowController.php
-+++ b/application/controllers/ShowController.php
-@@ -168,7 +168,7 @@ public function hostAction()
-             if (! array_key_exists('icingaHost', $patterns)) continue;
-             foreach ($set->loadTemplates() as $key => $template) {
--                if (strpos($template->getFilterString(), '$service') !== false) continue;
-+                if (strpos($template->getFilterString(), $service) !== false) continue;
-                 $imgParams = array(
-                     'template' => $key,
-@@ -228,7 +228,7 @@ public function serviceAction()
-             if (! array_key_exists('icingaHost', $patterns)) continue;
-             foreach ($set->loadTemplates() as $key => $template) {
--                if (strpos($template->getFilterString(), '$service') === false) continue;
-+                if (strpos($template->getFilterString(), $service) === false) continue;
-                 $imgParams = array(
-                     'template' => $key,
-@@ -289,7 +289,7 @@ public function XXXserviceAction()
-             foreach ($set->loadTemplates() as $key => $template) {
--                if (strpos($template->getFilterString(), '$service') === false) continue;
-+                if (strpos($template->getFilterString(), $service) === false) continue;
-                 $this->view->templates[$key] = $template;
-diff -Naur a/library/Graphite/ProvidedHook/Monitoring/ServiceActions.php b/library/Graphite/ProvidedHook/Monitoring/ServiceActions.php
---- a/library/Graphite/ProvidedHook/Monitoring/ServiceActions.php  2016-10-16 19:10:49.794640399 -0500
-+++ b/library/Graphite/ProvidedHook/Monitoring/ServiceActions.php  2016-10-16 19:11:17.136401235 -0500
-@@ -16,6 +16,7 @@
-                 array(
-                     'host'    => $service->host_name,
-                     'service' => $service->service_description,
-+                    'check_command' => $service->service_check_command,
-                 ))
-         );
-     }
similarity index 65%
rename from www-apps/icingaweb2-module-graphite/icingaweb2-module-graphite-1.0.1.ebuild
rename to www-apps/icingaweb2-module-graphite/icingaweb2-module-graphite-1.0.1-r1.ebuild
index 1722cdeaadb2c5ca2558062574f9ea4dce7c17b7..312bc419e294ca465a06eb536334e0afc1a30c4d 100644 (file)
@@ -1,18 +1,16 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-DESCRIPTION="Icinga Web 2 plugin for pnp4nagios"
-HOMEPAGE="http://www.icinga.org/"
+DESCRIPTION="Icinga Web 2 plugin for Graphite"
+HOMEPAGE="https://www.icinga.com/docs/graphite/latest/"
 if [[ "${PV}" == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/Icinga/icingaweb2-module-graphite.git"
 else
        KEYWORDS="~amd64 ~x86"
-       MY_PN="icingaweb2-module-pnp"
-       SRC_URI="https://codeload.github.com/Icinga/${MY_PN}/tar.gz/v${PV} -> ${P}.tar.gz"
-       S="${WORKDIR}/${MY_PN}-${PV}"
+       SRC_URI="https://github.com/Icinga/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 fi
 
 LICENSE="GPL-2"
@@ -22,8 +20,6 @@ DEPEND=">=net-analyzer/icinga2-2.4.0
        >=www-apps/icingaweb2-2.5.0"
 RDEPEND="${DEPEND}"
 
-PATCHES=()
-
 src_install() {
        insinto "/usr/share/icingaweb2/modules/graphite/"
        doins -r "${S}"/*
index 7e359c940e4c1c1c8682a16df0d87f06b7123295..312bc419e294ca465a06eb536334e0afc1a30c4d 100644 (file)
@@ -1,29 +1,25 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-DESCRIPTION="Icinga Web 2 plugin for pnp4nagios"
-HOMEPAGE="http://www.icinga.org/"
+DESCRIPTION="Icinga Web 2 plugin for Graphite"
+HOMEPAGE="https://www.icinga.com/docs/graphite/latest/"
 if [[ "${PV}" == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/Icinga/icingaweb2-module-graphite.git"
 else
        KEYWORDS="~amd64 ~x86"
-       MY_PN="icingaweb2-module-pnp"
-       SRC_URI="https://codeload.github.com/Icinga/${MY_PN}/tar.gz/v${PV} -> ${P}.tar.gz"
-       S="${WORKDIR}/${MY_PN}-${PV}"
+       SRC_URI="https://github.com/Icinga/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 fi
 
 LICENSE="GPL-2"
 SLOT="0"
 
-DEPEND=">=net-analyzer/icinga2-2.1.1
-       >=www-apps/icingaweb2-2.0.0"
+DEPEND=">=net-analyzer/icinga2-2.4.0
+       >=www-apps/icingaweb2-2.5.0"
 RDEPEND="${DEPEND}"
 
-PATCHES=( "${FILESDIR}/patch-unquote-service.patch" )
-
 src_install() {
        insinto "/usr/share/icingaweb2/modules/graphite/"
        doins -r "${S}"/*
index 3ffdeb4af3b5da62280f3c665ca833e28520b4ef..e6871e01f10dd6cc0b51e69cd63e493f6981bfad 100644 (file)
@@ -5,4 +5,8 @@
                <email>prometheanfire@gentoo.org</email>
                <name>Matthew Thode</name>
        </maintainer>
+       <upstream>
+               <remote-id type="github">Icinga/icingaweb2-module-graphite</remote-id>
+               <bugs-to>https://github.com/Icinga/icingaweb2-module-graphite/issues</bugs-to>
+       </upstream>
 </pkgmetadata>