summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-02-03 20:20:47 +0100
committerJeroen Roovers <jer@gentoo.org>2017-02-03 20:21:44 +0100
commit74dd1bef95ce1d3d102f7f8b169f5acc4dd0452a (patch)
treee845331889e60b099cfa230ca8f6d040329a5529 /net-analyzer/cacti
parentnet-wireless/inspectrum: bump to 0.2 (diff)
downloadgentoo-74dd1bef95ce1d3d102f7f8b169f5acc4dd0452a.tar.gz
gentoo-74dd1bef95ce1d3d102f7f8b169f5acc4dd0452a.tar.bz2
gentoo-74dd1bef95ce1d3d102f7f8b169f5acc4dd0452a.zip
net-analyzer/cacti: Version bump.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-analyzer/cacti')
-rw-r--r--net-analyzer/cacti/Manifest1
-rw-r--r--net-analyzer/cacti/cacti-1.0.0.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/net-analyzer/cacti/Manifest b/net-analyzer/cacti/Manifest
index e6e7dfcf8cea..f6dafbd5b5d9 100644
--- a/net-analyzer/cacti/Manifest
+++ b/net-analyzer/cacti/Manifest
@@ -1 +1,2 @@
DIST cacti-0.8.8h.tar.gz 2585226 SHA256 0673bd9513dad381c8bbb9133c721a32bc6422dc91c5a81de16e3cd32e4d0600 SHA512 11bb0682a7220af5581f42579cf9c38d94aae202425ce15b824849684b1a6778d6f14e6a62ec94c608b7ba06562a825be7fd6d812d0800daa5eb56e640ac1c5f WHIRLPOOL 250ee38d969c9a7d9a71b15a25e48c2b9b22412c6c2394798d178172d9a1be056b009b328594559524adbd47ad05032992b13cb5a632af1a23f947fb55342402
+DIST cacti-1.0.0.tar.gz 7275783 SHA256 180a23102af0415b961ef4d4181f93f49d40ebed36c5392ac988650d3753e693 SHA512 9133bb3d34ee6a4fe94e8258ce76df1ceac5cc76ccc8a492ae9a1263cbfb765f88f169c2780f2b36c14d8df4607e8effaf448bcb632cd4171533d0f9842550b1 WHIRLPOOL 145de8eca23e5ce031aef8572aad2847b6cf5d920661f1785078b62d268ee62c3b690c3e3fcf6c9a352a468297cf726dc213838bf0b3f4235e03d25ff290ea07
diff --git a/net-analyzer/cacti/cacti-1.0.0.ebuild b/net-analyzer/cacti/cacti-1.0.0.ebuild
new file mode 100644
index 000000000000..55a7e4332b09
--- /dev/null
+++ b/net-analyzer/cacti/cacti-1.0.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils webapp
+
+# Support for _p* in version.
+MY_P=${P/_p*/}
+
+DESCRIPTION="Cacti is a complete frontend to rrdtool"
+HOMEPAGE="http://www.cacti.net/"
+SRC_URI="http://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() {
+ webapp_src_preinst
+
+ dodoc docs/{CHANGELOG,txt/manual.txt}
+ docinto html
+ doins -r docs/html/
+ rm -rf docs
+
+ edos2unix `find -type f -name '*.php'`
+
+ dodir ${MY_HTDOCSDIR}
+ cp -r . "${D}"${MY_HTDOCSDIR}
+
+ webapp_serverowned ${MY_HTDOCSDIR}/rra
+ webapp_serverowned ${MY_HTDOCSDIR}/log/cacti.log
+ webapp_configfile ${MY_HTDOCSDIR}/include/config.php
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+
+ webapp_src_install
+}