Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/cgp/
Date: Wed, 11 Jul 2018 08:39:03
Message-Id: 1531298330.54b9f2f29bdea49f51e69b4ee1566fe28afbae30.chainsaw@gentoo
1 commit: 54b9f2f29bdea49f51e69b4ee1566fe28afbae30
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Sat Jul 7 21:58:06 2018 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 11 08:38:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54b9f2f2
7
8 www-apps/cgp: new package
9
10 Closes: https://bugs.gentoo.org/654150
11 Package-Manager: Portage-2.3.41, Repoman-2.3.9
12 Closes: https://github.com/gentoo/gentoo/pull/9096
13 Closes: https://bugs.gentoo.org/654150
14
15 www-apps/cgp/Manifest | 1 +
16 www-apps/cgp/cgp-1.ebuild | 52 +++++++++++++++++++++++++++++++++++++++++++++++
17 www-apps/cgp/metadata.xml | 20 ++++++++++++++++++
18 3 files changed, 73 insertions(+)
19
20 diff --git a/www-apps/cgp/Manifest b/www-apps/cgp/Manifest
21 new file mode 100644
22 index 00000000000..7fddb0cd05d
23 --- /dev/null
24 +++ b/www-apps/cgp/Manifest
25 @@ -0,0 +1 @@
26 +DIST cgp-1.tar.gz 139265 BLAKE2B bf0f18def8ac3c2117b951172d4150f0626e8dcbe22accbcc6ad156e5f9f5c21792e38fa1bf5a964d8b50cbc7ee9003e4dcdcd75730ba2b0445f4dcfeffdda6c SHA512 fc5bc6d39dac896b56579cb6ca013c81493b994a7a190e0c0eec8a64f7b87c6eb2e0ad5cc969b8ea03ca4b00eee212ccee5c8785c23f5656bff3fe5490ff8f75
27
28 diff --git a/www-apps/cgp/cgp-1.ebuild b/www-apps/cgp/cgp-1.ebuild
29 new file mode 100644
30 index 00000000000..0d1bc985b14
31 --- /dev/null
32 +++ b/www-apps/cgp/cgp-1.ebuild
33 @@ -0,0 +1,52 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +inherit webapp
40 +
41 +MY_PN="${PN^^}"
42 +
43 +DESCRIPTION="A graphical web-based front-end for visualizing RRD collected by collectd"
44 +HOMEPAGE="https://github.com/pommi/CGP
45 + https://pommi.nethuis.nl/category/cgp/"
46 +SRC_URI="https://github.com/pommi/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="CC-BY-2.0 GPL-2+ GPL-3 MIT"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +RDEPEND="dev-lang/php[json]
52 + net-analyzer/rrdtool[graph]
53 + virtual/httpd-php"
54 +
55 +need_httpd_cgi
56 +
57 +S="${WORKDIR}/${MY_PN}-${PV}"
58 +
59 +DOCS=( "README.md" "doc/CHANGELOG" "doc/nginx.conf" )
60 +
61 +src_install() {
62 + webapp_src_preinst
63 +
64 + einstalldocs
65 +
66 + # Since the docs are already installed, remove them from htdocs
67 + # The file doc/CHANGELOG is needed, as CGP reads from there it's version
68 + rm -r .gitignore doc/LICENSE doc/nginx.conf || die
69 +
70 + insinto "${MY_HTDOCSDIR}"
71 + doins -r .
72 +
73 + webapp_src_install
74 +}
75 +
76 +pkg_postinst() {
77 + webapp_pkg_postinst
78 +
79 + einfo "The command shell_exec must not be disabled"
80 + einfo "through the disable_functions php.ini directive."
81 + einfo "It must allow execution of the rrdtool program."
82 + einfo ""
83 + einfo "An configuration file for www-servers/nginx"
84 + einfo "has been installed as an example."
85 +}
86
87 diff --git a/www-apps/cgp/metadata.xml b/www-apps/cgp/metadata.xml
88 new file mode 100644
89 index 00000000000..10b010911e4
90 --- /dev/null
91 +++ b/www-apps/cgp/metadata.xml
92 @@ -0,0 +1,20 @@
93 +<?xml version="1.0" encoding="UTF-8"?>
94 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
95 +<pkgmetadata>
96 + <maintainer type="person">
97 + <email>ck+gentoo@××××××××.de</email>
98 + <name>Conrad Kostecki</name>
99 + </maintainer>
100 + <maintainer type="project">
101 + <email>proxy-maint@g.o</email>
102 + <name>Proxy Maintainers</name>
103 + </maintainer>
104 + <longdescription>
105 + Collectd Graph Panel (CGP) is a graphical web-based front-end
106 + for visualizing RRD collected by collectd, written in the PHP language.
107 + </longdescription>
108 + <upstream>
109 + <bugs-to>https://github.com/pommi/CGP/issues</bugs-to>
110 + <remote-id type="github">pommi/CGP</remote-id>
111 + </upstream>
112 +</pkgmetadata>