You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit webapp
|
||
|
|
||
|
MY_PN="${PN^^}"
|
||
|
MY_PV="fd8fa70739d18d786e88f7ffa57e250e0e41af8f"
|
||
|
|
||
|
DESCRIPTION="A graphical web-based front-end for visualizing RRD collected by collectd"
|
||
|
HOMEPAGE="https://github.com/pommi/CGP"
|
||
|
SRC_URI="https://github.com/pommi/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="CC-BY-2.0 GPL-2+ GPL-3 MIT"
|
||
4 years ago
|
KEYWORDS="amd64 x86"
|
||
4 years ago
|
|
||
|
RDEPEND="
|
||
4 years ago
|
dev-lang/php[json(+)]
|
||
4 years ago
|
net-analyzer/rrdtool[graph]
|
||
|
virtual/httpd-php
|
||
|
"
|
||
|
|
||
|
need_httpd_cgi
|
||
|
|
||
|
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||
|
|
||
|
DOCS=( "README.md" "doc/CHANGELOG" "doc/nginx.conf" )
|
||
|
|
||
|
PATCHES=( "${FILESDIR}/${P}-double-quote.patch" )
|
||
|
|
||
|
src_install() {
|
||
|
webapp_src_preinst
|
||
|
|
||
|
einstalldocs
|
||
|
|
||
|
# Since the docs are already installed, remove them from htdocs
|
||
|
# The file doc/CHANGELOG is needed, as CGP reads from there it's version
|
||
|
rm -r .gitignore LICENSE doc/nginx.conf || die
|
||
|
|
||
|
insinto "${MY_HTDOCSDIR}"
|
||
|
doins -r .
|
||
|
|
||
|
webapp_src_install
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
webapp_pkg_postinst
|
||
|
|
||
|
einfo "The command shell_exec must not be disabled"
|
||
|
einfo "through the disable_functions php.ini directive."
|
||
|
einfo "It must allow execution of the rrdtool program."
|
||
|
einfo ""
|
||
|
einfo "An configuration file for www-servers/nginx"
|
||
|
einfo "has been installed as an example."
|
||
|
}
|