summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-08-20 09:02:02 +0200
committerJeroen Roovers <jer@gentoo.org>2017-08-20 09:02:02 +0200
commit2a10b99341a3bc93d00cb9eba4a020cb71f78bf8 (patch)
treec520837b626bd917aa13cef86639591c82866f68 /net-analyzer/cacti
parentdev-python/zope-component: version bump to 4.4.0 (diff)
downloadgentoo-2a10b99341a3bc93d00cb9eba4a020cb71f78bf8.tar.gz
gentoo-2a10b99341a3bc93d00cb9eba4a020cb71f78bf8.tar.bz2
gentoo-2a10b99341a3bc93d00cb9eba4a020cb71f78bf8.zip
net-analyzer/cacti: Version bump.
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-analyzer/cacti')
-rw-r--r--net-analyzer/cacti/Manifest1
-rw-r--r--net-analyzer/cacti/cacti-1.1.18.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/net-analyzer/cacti/Manifest b/net-analyzer/cacti/Manifest
index a908097873e7..5a40dd11dabb 100644
--- a/net-analyzer/cacti/Manifest
+++ b/net-analyzer/cacti/Manifest
@@ -1,2 +1,3 @@
DIST cacti-0.8.8h.tar.gz 2585226 SHA256 0673bd9513dad381c8bbb9133c721a32bc6422dc91c5a81de16e3cd32e4d0600 SHA512 11bb0682a7220af5581f42579cf9c38d94aae202425ce15b824849684b1a6778d6f14e6a62ec94c608b7ba06562a825be7fd6d812d0800daa5eb56e640ac1c5f WHIRLPOOL 250ee38d969c9a7d9a71b15a25e48c2b9b22412c6c2394798d178172d9a1be056b009b328594559524adbd47ad05032992b13cb5a632af1a23f947fb55342402
DIST cacti-1.1.16.tar.gz 8893348 SHA256 97640c45859603b1a86d94fb917c1595515d08ed07e6c91cb953c97051389939 SHA512 5f7007fd69efb3fc3ac2daf687fc402923fd474e4f740283aca5ea599742f10f1bc85b8e76fc47bc7a6f6d82860cc518b56093f18c21e9a8b5d334e4c6313eea WHIRLPOOL a6c6b47a2a3f8a8dbbbb1b9cb5210eec37717541ee8402ba93a5d20b78a03b585caaf5da411dd55538c7d37190246f2c29b27ef7003de6ca2341c791167af5b1
+DIST cacti-1.1.18.tar.gz 8906439 SHA256 2f8ce97703b7c9426b57130bbeff4e4c5d068685668cd29959e6f4fd8be03edf SHA512 59651979f036b53f708046bfe9f534bbe39ea620e9a84684372b0c189f2adb5503304c9fff5df5180b9186da27602428b0cff0a4fff9beaf50b4c0ed69d252e2 WHIRLPOOL 5b28724a4dcd5544a1fc948c675a8d404672caf8a6f8a6e64503e21582525f515b42a01edcccae573d89ee38b38b116a5ea8ba0a0618e40f9e5ee6d846bf0a7e
diff --git a/net-analyzer/cacti/cacti-1.1.18.ebuild b/net-analyzer/cacti/cacti-1.1.18.ebuild
new file mode 100644
index 000000000000..8bd160234471
--- /dev/null
+++ b/net-analyzer/cacti/cacti-1.1.18.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="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() {
+ 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
+}