diff options
author | Peter Volkov <pva@gentoo.org> | 2008-03-07 16:44:03 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-03-07 16:44:03 +0000 |
commit | e7f4eabec702806551cdffe0b773d80003b155c6 (patch) | |
tree | 661d200d60dfe11daba04ed7e687ed2bd339f49a /net-analyzer/cacti | |
parent | stable x86, bug 212062 (diff) | |
download | gentoo-2-e7f4eabec702806551cdffe0b773d80003b155c6.tar.gz gentoo-2-e7f4eabec702806551cdffe0b773d80003b155c6.tar.bz2 gentoo-2-e7f4eabec702806551cdffe0b773d80003b155c6.zip |
Another patch from upstream, finally it applies correctly.
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-analyzer/cacti')
-rw-r--r-- | net-analyzer/cacti/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/cacti/cacti-0.8.7b-r2.ebuild | 87 |
2 files changed, 93 insertions, 1 deletions
diff --git a/net-analyzer/cacti/ChangeLog b/net-analyzer/cacti/ChangeLog index 675952c0faa3..bdc8d6e4b666 100644 --- a/net-analyzer/cacti/ChangeLog +++ b/net-analyzer/cacti/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/cacti # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.134 2008/03/03 18:50:54 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.135 2008/03/07 16:44:03 pva Exp $ + +*cacti-0.8.7b-r2 (07 Mar 2008) + + 07 Mar 2008; <pva@gentoo.org> +cacti-0.8.7b-r2.ebuild: + Another patch from upstream, finally it applies correctly. *cacti-0.8.7b-r1 (03 Mar 2008) diff --git a/net-analyzer/cacti/cacti-0.8.7b-r2.ebuild b/net-analyzer/cacti/cacti-0.8.7b-r2.ebuild new file mode 100644 index 000000000000..5612bc6b0f9a --- /dev/null +++ b/net-analyzer/cacti/cacti-0.8.7b-r2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.8.7b-r2.ebuild,v 1.1 2008/03/07 16:44:03 pva Exp $ + +inherit eutils webapp depend.apache depend.php + +# Support for _p* in version. +MY_P=${P/_p*/} +HAS_PATCHES=1 + +DESCRIPTION="Cacti is a complete frontend to rrdtool" +HOMEPAGE="http://www.cacti.net/" +SRC_URI="http://www.cacti.net/downloads/${MY_P}.tar.gz" + +# patches +if [ "${HAS_PATCHES}" == "1" ] ; then + UPSTREAM_PATCHES="upgrade_from_086k_fix + snmp_auth_none_notice" + for i in $UPSTREAM_PATCHES ; do + SRC_URI="${SRC_URI} http://www.cacti.net/downloads/patches/${PV/_p*}/${i}.patch" + done +fi + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="snmp" + +DEPEND="" + +want_apache +need_php_cli +need_php_httpd + +RDEPEND="!apache2? ( www-servers/lighttpd ) + snmp? ( net-analyzer/net-snmp ) + net-analyzer/rrdtool + dev-php/adodb + virtual/mysql + virtual/cron" + +src_unpack() { + if [ "${HAS_PATCHES}" == "1" ] ; then + unpack ${MY_P}.tar.gz + [ ! ${MY_P} == ${P} ] && mv ${MY_P} ${P} + # patches + for i in ${UPSTREAM_PATCHES} ; do + EPATCH_OPTS="-p1 -d ${S} -N" epatch "${DISTDIR}"/${i}.patch + done ; + else + unpack ${MY_P}.tar.gz + fi + + sed -i -e \ + 's:$config\["library_path"\] . "/adodb/adodb.inc.php":"adodb/adodb.inc.php":' \ + "${S}"/include/global.php +} + +pkg_setup() { + webapp_pkg_setup + has_php + require_php_with_use cli mysql xml session pcre sockets +} + +src_compile() { + einfo "Nothing to compile." +} + +src_install() { + webapp_src_preinst + + rm LICENSE README + dodoc docs/{CHANGELOG,CONTRIB,INSTALL,README,REQUIREMENTS,UPGRADE} + rm -rf docs + rm -rf lib/adodb + + 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 +} |