summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-09-10 22:47:35 +0200
committerJeroen Roovers <jer@gentoo.org>2017-09-10 22:48:49 +0200
commit19bd323c30e9921ec1d2b63dcf695a3cdbdced0e (patch)
tree92f1ae92c46f930f6fb8f5c0908721621c5c8e81 /net-analyzer/cacti/cacti-1.1.21.ebuild
parentx11-terms/xterm: update HOMEPAGE and SRC_URI. (diff)
downloadgentoo-19bd323c30e9921ec1d2b63dcf695a3cdbdced0e.tar.gz
gentoo-19bd323c30e9921ec1d2b63dcf695a3cdbdced0e.tar.bz2
gentoo-19bd323c30e9921ec1d2b63dcf695a3cdbdced0e.zip
net-analyzer/cacti: Version bump.
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-analyzer/cacti/cacti-1.1.21.ebuild')
-rw-r--r--net-analyzer/cacti/cacti-1.1.21.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/net-analyzer/cacti/cacti-1.1.21.ebuild b/net-analyzer/cacti/cacti-1.1.21.ebuild
new file mode 100644
index 000000000000..08d211285f65
--- /dev/null
+++ b/net-analyzer/cacti/cacti-1.1.21.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils webapp
+
+# Support for _p* in version.
+MY_P=${P/_p*/}
+
+DESCRIPTION="Cacti is a complete frontend to rrdtool"
+HOMEPAGE="https://www.cacti.net/"
+SRC_URI="https://www.cacti.net/downloads/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="snmp doc"
+
+need_httpd
+
+RDEPEND="
+ dev-lang/php[cli,mysql,session,sockets,xml]
+ dev-php/adodb
+ net-analyzer/rrdtool[graph]
+ virtual/cron
+ virtual/mysql
+ snmp? ( >=net-analyzer/net-snmp-5.2.0 )
+"
+
+src_prepare() {
+ default
+ sed -i -e \
+ 's:$config\["library_path"\] . "/adodb/adodb.inc.php":"adodb/adodb.inc.php":' \
+ "${S}"/include/global.php || die
+
+ rm -rf lib/adodb || die # don't use bundled adodb
+}
+
+src_compile() { :; }
+
+src_install() {
+ dodoc docs/{CHANGELOG,txt/manual.txt}
+ dodoc -r docs/html/
+ rm -rf docs
+
+ webapp_src_preinst
+
+ edos2unix `find -type f -name '*.php'`
+
+ dodir ${MY_HTDOCSDIR}
+ cp -r . "${D}"${MY_HTDOCSDIR}
+
+ webapp_serverowned ${MY_HTDOCSDIR}/rra
+ webapp_serverowned ${MY_HTDOCSDIR}/log
+ webapp_configfile ${MY_HTDOCSDIR}/include/config.php
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+
+ webapp_src_install
+}