Changes of Revision 7
[-] | Added | cacti.spec |
x 1
2 +# 3 +# spec file for package cacti (Version 0.8.7a) 4 +# 5 +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 +Name: cacti 15 +BuildRequires: apache2-devel libapr-util1-devel pcre-devel 16 +Version: 0.8.7a 17 +Release: 1 18 +Summary: Web Front-End to Monitor System Data via RRDtool 19 +License: GPL v2 or later 20 +Group: System/Monitoring 21 +Url: http://www.cacti.net/ 22 +Source0: %{name}-%{version}.tar.bz2 23 +Source1: %{name}.cron 24 +Source2: %{name}-httpd.conf 25 +Source3: %{name}.logrotate 26 +Patch0: %{name}-%{version}-cacti-log-path.patch 27 +Requires: http_daemon net-snmp rrdtool php mod_php_any 28 +Requires: php-snmp php-mysql php-session 29 +BuildArch: noarch 30 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 31 +%define prefix %{_datadir}/cacti 32 +%define apxs2 /usr/sbin/apxs2-prefork 33 +%define apache2_sysconfdir %(%{apxs2} -q SYSCONFDIR) 34 + 35 +%description 36 +Cacti is a complete front-end to RRDtool: it stores all necessary 37 +information for creating graphs and populates them with data from a 38 +MySQL database. The front-end is completely PHP driven. Along with 39 +being ableto maintain graphs, data sources, and round robin archives 40 +ina database, Cacti also handles data gathering. There exists an SNMP 41 +support for those accustomed to creating traffic graphs with MRTG as 42 +well. 43 + 44 + 45 + 46 +Authors: 47 +-------- 48 + Ian Berry <iberry@raxnet.net> 49 + 50 +%prep 51 +%setup -q 52 +%patch0 53 + 54 +%build 55 + 56 +%install 57 +install -d -m 755 $RPM_BUILD_ROOT%{prefix} 58 +install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name} 59 +install -d -m 755 $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name} 60 +install -d -m 755 $RPM_BUILD_ROOT%{_var}/log/%{name} 61 +cp *.php $RPM_BUILD_ROOT%{prefix} 62 +cp -pr lib $RPM_BUILD_ROOT%{prefix} 63 +cp -pr include $RPM_BUILD_ROOT%{prefix} 64 +cp -pr images $RPM_BUILD_ROOT%{prefix} 65 +cp -pr install $RPM_BUILD_ROOT%{prefix} 66 +cp -pr resource $RPM_BUILD_ROOT%{prefix} 67 +cp -pr scripts $RPM_BUILD_ROOT%{_datadir}/%{name} 68 +install -m 644 *.sql $RPM_BUILD_ROOT%{_datadir}/%{name} 69 +# cron task 70 +install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d 71 +install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/cacti 72 +# apache2 config 73 +install -d -m 755 $RPM_BUILD_ROOT%{apache2_sysconfdir}/conf.d 74 +install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{apache2_sysconfdir}/conf.d/cacti.conf 75 +# logrotate config 76 +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ 77 +install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name} 78 +# compute files list without config file 79 +find $RPM_BUILD_ROOT%{prefix} -type d | sed -e 's|'$RPM_BUILD_ROOT'|%dir |' >> %{name}.list 80 +find $RPM_BUILD_ROOT%{prefix} -type f ! -name config.php | sed -e 's|'$RPM_BUILD_ROOT'||' >> %{name}.list 81 + 82 +%clean 83 +[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT 84 + 85 +%files -f %{name}.list 86 +%defattr(-,root,root) 87 +%doc LICENSE docs/* 88 +%attr(-,wwwrun,www) %dir %{_localstatedir}/lib/cacti 89 +%attr(-,wwwrun,www) %dir /var/log/cacti 90 +%dir %{apache2_sysconfdir}/conf.d 91 +%config(noreplace) %{prefix}/include/config.php 92 +%config(noreplace) %{_sysconfdir}/cron.d/%{name} 93 +%config(noreplace) %{apache2_sysconfdir}/conf.d/cacti.conf 94 +%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} 95 +%changelog 96 +* Tue Nov 20 2007 - prusnak@suse.cz 97 +- updated to 0.8.7a 98 + * "Use Per-Data Source Value (Ignore this Value)" runs only when when checking "Allow Empty Input" 99 + * Add --autoscale-min (rrdtool 1.2.x only) and --autoscale-max (using upper AND lower limit) 100 + * Allow for --logarithmic scaling without autoscaling 101 + * Data sources in RRAs have random order, messing up predefined CDEFs 102 + * Graph Templates drop down populates with duplicates 103 + * Upgrade from 0.8.6j to 0.8.7 defaults to Authentication Method NONE 104 + * Graph template - GRINT creates CF function DEF 105 + * Invalid date format - "half hour" not the GNU Date format 106 + * SQL error when using 'Auth Method' None when no 'guest' user exists 107 + * Graph Filter dropdowns do not respect user graph permissions 108 + * Potential SQL injection vulnerability 109 + * RRDtool 1.2.15 complain for garbage characters when rrdtool_function_xport is used 110 + * cmd.php: potential call to invalid "availability_method" key on wrong hash 111 + * Log file viewer inefficient filtering uses excess memory 112 + * doc change for using COUNTERs as integers only 113 + * Fixed extra spaces in GPRINT. Better Alignment for Autopadding 114 + * doc change for patching cacti when running SELinux 115 + * Cron interval detection causes multiple pollers to run 116 + * Max OIDS is not saved in device view 117 + * Undefined variable: rra in graph.php on line 241 118 + * Dates are not stored in host table using correct format 119 + * Graph Export Generates SQL Errors 120 + * Usernames with spaces and dashes are not able to save 121 + * Allow for --units=si on logarithmic scaled graphs (rrdtool-1.2.x only). 122 + * add opacity/alpha channel to graph items (rrdtool-1.2.x only). 123 + * Move to Top for List and Tree View. Omit boring scrolling 124 + * add availability pings to host interface 125 +* Tue Oct 30 2007 - prusnak@suse.cz 126 +- update to 0.8.7 127 + * changes are too numerous to list 128 + * see CHANGELOG 129 +- dropped obsolete patches: 130 + * graph-image.patch (included in update) 131 +* Wed Sep 19 2007 - prusnak@suse.cz 132 +- fix CVE-2007-3112 and CVE-2007-3113 (graph-image.patch) [#326228] 133 +* Mon Jun 25 2007 - dmueller@suse.de 134 +- fix last checkin 135 +* Thu Jun 21 2007 - dmueller@suse.de 136 +- update buildrequires 137 +* Thu Feb 08 2007 - prusnak@suse.cz 138 +- updated to 0.8.6j: 139 + * fixed CVE-2006-6799 140 + * fixed hostname sorting on the devices page 141 + * fixed poller.php does not giving any output with MySQL disabled 142 + * added bottom navigation bar to graph viewing 143 + * added "collapsible" branches to the graph tree editor 144 + * added natural sort to graph items in the tree 145 +- dropped obsoleted patches: 146 + * cacti-0.8.6h-CVE-2006-6799.patch (included in update) 147 +- fixed spec file for #norootforbuild 148 +* Tue Jan 09 2007 - prusnak@suse.cz 149 +- fixed CVE-2006-6799 [#231082] 150 +* Fri Mar 17 2006 - stark@suse.de 151 +- fix path settings 152 +* Wed Jan 25 2006 - mls@suse.de 153 +- converted neededforbuild to BuildRequires 154 +* Wed Jan 18 2006 - mrueckert@suse.de 155 +- dont require php4 directly use the php abstraction 156 +* Fri Jan 06 2006 - stark@suse.de 157 +- update to 0.8.6h 158 +- fixed logrotate setting 159 +* Tue Jan 03 2006 - stark@suse.de 160 +- update to 0.8.6g 161 +* Tue Oct 25 2005 - stark@suse.de 162 +- added php4-session to required packages (#130282) 163 +* Sat Jul 02 2005 - stark@suse.de 164 +- update to 0.8.6f 165 +* Sat Jun 18 2005 - stark@suse.de 166 +- update to 0.8.6e final 167 +* Thu Jun 16 2005 - stark@suse.de 168 +- update to 0.8.6e 169 +* Fri Jan 21 2005 - stark@suse.de 170 +- update to 0.8.6c 171 +* Fri Nov 19 2004 - stark@suse.de 172 +- update to 0.8.6b 173 +- added logrotate config 174 +* Mon Sep 20 2004 - stark@suse.de 175 +- fix sql injection bug (#43908) 176 +* Mon Aug 30 2004 - ro@suse.de 177 +- remove apache1 traces 178 +* Wed Apr 28 2004 - stark@suse.de 179 +- update to 0.8.5a 180 +* Mon Feb 16 2004 - stark@suse.de 181 +- update to 0.8.5 182 +* Mon Dec 29 2003 - stark@suse.de 183 +- initial SUSE package 184 |