Gentoo Archives: gentoo-commits

From: "Markus Ullmann (jokey)" <jokey@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/cacti: metadata.xml ChangeLog cacti-0.8.7.ebuild
Date: Mon, 29 Oct 2007 15:03:55
Message-Id: E1ImW9b-0005oJ-DV@stork.gentoo.org
1 jokey 07/10/29 15:03:47
2
3 Modified: metadata.xml ChangeLog
4 Added: cacti-0.8.7.ebuild
5 Log:
6 Version bump with a bunch of fixes, check upstream changelog for details
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.4 net-analyzer/cacti/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti/metadata.xml?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti/metadata.xml?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti/metadata.xml?r1=1.3&r2=1.4
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/cacti/metadata.xml,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- metadata.xml 2 Jul 2005 02:13:10 -0000 1.3
23 +++ metadata.xml 29 Oct 2007 15:03:46 -0000 1.4
24 @@ -2,10 +2,6 @@
25 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
26 <pkgmetadata>
27 <herd>netmon</herd>
28 - <maintainer>
29 - <email>ramereth@g.o</email>
30 - <name>Lance Albertson</name>
31 - </maintainer>
32 <longdescription lang="en">
33 Cacti is a complete network graphing solution designed to harness the
34 power of RRDTool's data storage and graphing functionality. Cacti
35
36
37
38 1.112 net-analyzer/cacti/ChangeLog
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti/ChangeLog?rev=1.112&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti/ChangeLog?rev=1.112&content-type=text/plain
42 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti/ChangeLog?r1=1.111&r2=1.112
43
44 Index: ChangeLog
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v
47 retrieving revision 1.111
48 retrieving revision 1.112
49 diff -u -r1.111 -r1.112
50 --- ChangeLog 19 Jul 2007 13:27:37 -0000 1.111
51 +++ ChangeLog 29 Oct 2007 15:03:46 -0000 1.112
52 @@ -1,6 +1,12 @@
53 # ChangeLog for net-analyzer/cacti
54 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
55 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.111 2007/07/19 13:27:37 angelos Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.112 2007/10/29 15:03:46 jokey Exp $
57 +
58 +*cacti-0.8.7 (29 Oct 2007)
59 +
60 + 29 Oct 2007; Markus Ullmann <jokey@g.o> metadata.xml,
61 + +cacti-0.8.7.ebuild:
62 + Version bump with a bunch of fixes, check upstream changelog for details
63
64 19 Jul 2007; Christoph Mende <angelos@g.o> cacti-0.8.6j-r6.ebuild:
65 Stable on amd64 wrt bug #172378
66
67
68
69 1.1 net-analyzer/cacti/cacti-0.8.7.ebuild
70
71 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti/cacti-0.8.7.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti/cacti-0.8.7.ebuild?rev=1.1&content-type=text/plain
73
74 Index: cacti-0.8.7.ebuild
75 ===================================================================
76 # Copyright 1999-2007 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.8.7.ebuild,v 1.1 2007/10/29 15:03:46 jokey Exp $
79
80 inherit eutils webapp depend.apache depend.php
81
82 # Support for _p* in version.
83 MY_P=${P/_p*/}
84 HAS_PATCHES=0
85
86 DESCRIPTION="Cacti is a complete frontend to rrdtool"
87 HOMEPAGE="http://www.cacti.net/"
88 SRC_URI="http://www.cacti.net/downloads/${MY_P}.tar.gz"
89
90 # patches
91 if [ $HAS_PATCHES == 1 ] ; then
92 UPSTREAM_PATCHES="ping_php_version4_snmpgetnext
93 tree_console_missing_hosts
94 thumbnail_graphs_not_working
95 graph_debug_lockup_fix
96 snmpwalk_fix"
97 for i in $UPSTREAM_PATCHES ; do
98 SRC_URI="${SRC_URI} http://www.cacti.net/downloads/patches/${PV/_p*}/${i}.patch"
99 done
100 fi
101
102 LICENSE="GPL-2"
103 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
104 IUSE="snmp bundled-adodb"
105
106 DEPEND=""
107
108 want_apache
109 need_php_cli
110 need_php_httpd
111
112 RDEPEND="!apache2? ( www-servers/lighttpd )
113 snmp? ( net-analyzer/net-snmp )
114 net-analyzer/rrdtool
115 !bundled-adodb? ( dev-php/adodb )
116 virtual/mysql
117 virtual/cron"
118
119 src_unpack() {
120 if [ $HAS_PATCHES == 1 ] ; then
121 unpack ${MY_P}.tar.gz
122 [ ! ${MY_P} == ${P} ] && mv ${MY_P} ${P}
123 # patches
124 for i in ${UPSTREAM_PATCHES} ; do
125 EPATCH_OPTS="-p1 -d ${S} -N" epatch "${DISTDIR}"/${i}.patch
126 done ;
127 else
128 unpack ${MY_P}.tar.gz
129 fi
130
131 use bundled-adodb || sed -i -e \
132 's:$config\["library_path"\] . "/adodb/adodb.inc.php":"/usr/share/php5/adodb/adodb.inc.php":' \
133 "${S}"/include/global.php
134 }
135
136 pkg_setup() {
137 webapp_pkg_setup
138 has_php
139 if [ $PHP_VERSION = 5 ] ; then
140 phpUseFlags="cli mysql xml session pcre"
141 elif [ $PHP_VERSION = 4 ] ; then
142 phpUseFlags="cli mysql xml session pcre expat"
143 fi
144 use bundled-adodb || phpUseFlags="${phpUseFlags} sockets"
145 require_php_with_use ${phpUseFlags}
146 }
147
148 src_compile() {
149 einfo "Nothing to compile."
150 }
151
152 src_install() {
153 webapp_src_preinst
154
155 dodoc docs/{CHANGELOG,CONTRIB,INSTALL,README,REQUIREMENTS,UPGRADE}
156 rm -rf docs
157 use bundled-adodb || rm -rf lib/adodb
158
159 edos2unix `find -type f -name '*.php'`
160
161 dodir ${MY_HTDOCSDIR}
162 cp -r . "${D}"${MY_HTDOCSDIR}
163
164 webapp_serverowned ${MY_HTDOCSDIR}/rra
165 webapp_serverowned ${MY_HTDOCSDIR}/log/cacti.log
166 webapp_configfile ${MY_HTDOCSDIR}/include/config.php
167 webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
168
169 webapp_src_install
170 }
171
172
173
174 --
175 gentoo-commits@g.o mailing list