summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-analyzer/cacti/Manifest1
-rw-r--r--net-analyzer/cacti/cacti-1.0.2.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/net-analyzer/cacti/Manifest b/net-analyzer/cacti/Manifest
index a05b79487282..dfbba55152c4 100644
--- a/net-analyzer/cacti/Manifest
+++ b/net-analyzer/cacti/Manifest
@@ -1,3 +1,4 @@
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
DIST cacti-1.0.1.tar.gz 7230227 SHA256 cc36b83653cecd2be0a4a239927dcdaafeb81e7fd7ad6f97c664edcb7fb07628 SHA512 b87837f2f9ec634dcf6477baa827d489485c0b93702c9ba6e4ae35772dfb828a25bb3a0ac7920103afcd8fe88baf5096e985496de09343de73bceddef8b19ec4 WHIRLPOOL 04865593375f802d8e809d1a6180dce07d33d0e98feb450a24123526e2daa9525f0e7445aad786765390e5b1ba826578ac96eb52a06e61cb4460c165b75d726d
+DIST cacti-1.0.2.tar.gz 7230604 SHA256 8dd4650ce6c81019a7606b66a5ecf08a26f46122ca930e4dd225ed19d813377d SHA512 f7842cc4b89a9a8ca9e1d2c113300aee81d364806bbbcaac87e95a09e3dfbb81cd4dfbb15bf0667e35715a81712bb91e4a3b66af381c95b42e0f0b29d7b05243 WHIRLPOOL ed8069078928050b23d424798d0590c8f58bf920adcbe411f4ef0b2fa239a505a70bdc657a84e60e76bfe9010d8881d2df44007abd4e9a8bc05e4afe82ac3fb0
diff --git a/net-analyzer/cacti/cacti-1.0.2.ebuild b/net-analyzer/cacti/cacti-1.0.2.ebuild
new file mode 100644
index 000000000000..55a7e4332b09
--- /dev/null
+++ b/net-analyzer/cacti/cacti-1.0.2.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
+}