Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/cacti: ChangeLog cacti-0.8.7e-r3.ebuild
Date: Sat, 03 Jul 2010 13:25:32
Message-Id: 20100703132530.3CB9A2CE15@corvid.gentoo.org
1 mabi 10/07/03 13:25:29
2
3 Modified: ChangeLog
4 Added: cacti-0.8.7e-r3.ebuild
5 Log:
6 eapi bump for bug #298205
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.172 net-analyzer/cacti/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cacti/ChangeLog?rev=1.172&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cacti/ChangeLog?rev=1.172&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cacti/ChangeLog?r1=1.171&r2=1.172
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v
19 retrieving revision 1.171
20 retrieving revision 1.172
21 diff -u -r1.171 -r1.172
22 --- ChangeLog 1 Jun 2010 15:22:56 -0000 1.171
23 +++ ChangeLog 3 Jul 2010 13:25:29 -0000 1.172
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-analyzer/cacti
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.171 2010/06/01 15:22:56 josejx Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.172 2010/07/03 13:25:29 mabi Exp $
29 +
30 +*cacti-0.8.7e-r3 (03 Jul 2010)
31 +
32 + 03 Jul 2010; Matti Bickel <mabi@g.o> +cacti-0.8.7e-r3.ebuild:
33 + eapi bump for php-5.3 (bug #298205)
34
35 01 Jun 2010; Joseph Jezak <josejx@g.o> cacti-0.8.7e-r2.ebuild:
36 Marked ppc stable for bug #317615.
37
38
39
40 1.1 net-analyzer/cacti/cacti-0.8.7e-r3.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cacti/cacti-0.8.7e-r3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cacti/cacti-0.8.7e-r3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: cacti-0.8.7e-r3.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.8.7e-r3.ebuild,v 1.1 2010/07/03 13:25:29 mabi Exp $
50
51 EAPI="2"
52
53 inherit eutils webapp depend.php
54
55 # Support for _p* in version.
56 MY_P=${P/_p*/}
57 HAS_PATCHES=1
58
59 DESCRIPTION="Cacti is a complete frontend to rrdtool"
60 HOMEPAGE="http://www.cacti.net/"
61 SRC_URI="http://www.cacti.net/downloads/${MY_P}.tar.gz"
62
63 # patches
64 if [ "${HAS_PATCHES}" == "1" ] ; then
65 UPSTREAM_PATCHES="cli_add_graph
66 snmp_invalid_response
67 template_duplication
68 fix_icmp_on_windows_iis_servers
69 cross_site_fix
70 sql_injection_template_export"
71 for i in ${UPSTREAM_PATCHES} ; do
72 SRC_URI="${SRC_URI} http://www.cacti.net/downloads/patches/${PV/_p*}/${i}.patch"
73 done
74 fi
75
76 LICENSE="GPL-2"
77 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
78 IUSE="snmp doc"
79
80 DEPEND=""
81
82 need_httpd_cgi
83
84 RDEPEND="snmp? ( >=net-analyzer/net-snmp-5.1.2 )
85 <net-analyzer/rrdtool-1.4
86 dev-php/adodb
87 virtual/mysql
88 virtual/cron
89 dev-lang/php[cli,mysql,xml,session,sockets]
90 || ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 )"
91
92 src_unpack() {
93 unpack ${MY_P}.tar.gz
94 if [ "${HAS_PATCHES}" == "1" ] ; then
95 [ ! ${MY_P} == ${P} ] && mv ${MY_P} ${P}
96 fi
97 }
98
99 src_prepare() {
100 if [ "${HAS_PATCHES}" == "1" ] ; then
101 # patches
102 for i in ${UPSTREAM_PATCHES} ; do
103 EPATCH_OPTS="-p1 -d ${S} -N" epatch "${DISTDIR}"/${i}.patch
104 done ;
105 fi
106
107 sed -i -e \
108 's:$config\["library_path"\] . "/adodb/adodb.inc.php":"adodb/adodb.inc.php":' \
109 "${S}"/include/global.php
110
111 rm -rf lib/adodb # don't use bundled adodb
112 }
113
114 src_compile() { :; }
115
116 src_install() {
117 webapp_src_preinst
118
119 rm LICENSE README
120 dodoc docs/{CHANGELOG,CONTRIB,README,txt/manual.txt} || die
121 use doc && dohtml -r docs/html/
122 rm -rf docs
123
124 edos2unix `find -type f -name '*.php'`
125
126 dodir ${MY_HTDOCSDIR}
127 cp -r . "${D}"${MY_HTDOCSDIR}
128
129 webapp_serverowned ${MY_HTDOCSDIR}/rra
130 webapp_serverowned ${MY_HTDOCSDIR}/log/cacti.log
131 webapp_configfile ${MY_HTDOCSDIR}/include/config.php
132 webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
133
134 webapp_src_install
135 }