Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
cacti
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 7
[-]
[+]
Added
cacti.spec
@@ -0,0 +1,182 @@ +# +# spec file for package cacti (Version 0.8.7a) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: cacti +BuildRequires: apache2-devel libapr-util1-devel pcre-devel +Version: 0.8.7a +Release: 1 +Summary: Web Front-End to Monitor System Data via RRDtool +License: GPL v2 or later +Group: System/Monitoring +Url: http://www.cacti.net/ +Source0: %{name}-%{version}.tar.bz2 +Source1: %{name}.cron +Source2: %{name}-httpd.conf +Source3: %{name}.logrotate +Patch0: %{name}-%{version}-cacti-log-path.patch +Requires: http_daemon net-snmp rrdtool php mod_php_any +Requires: php-snmp php-mysql php-session +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%define prefix %{_datadir}/cacti +%define apxs2 /usr/sbin/apxs2-prefork +%define apache2_sysconfdir %(%{apxs2} -q SYSCONFDIR) + +%description +Cacti is a complete front-end to RRDtool: it stores all necessary +information for creating graphs and populates them with data from a +MySQL database. The front-end is completely PHP driven. Along with +being ableto maintain graphs, data sources, and round robin archives +ina database, Cacti also handles data gathering. There exists an SNMP +support for those accustomed to creating traffic graphs with MRTG as +well. + + + +Authors: +-------- + Ian Berry <iberry@raxnet.net> + +%prep +%setup -q +%patch0 + +%build + +%install +install -d -m 755 $RPM_BUILD_ROOT%{prefix} +install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name} +install -d -m 755 $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name} +install -d -m 755 $RPM_BUILD_ROOT%{_var}/log/%{name} +cp *.php $RPM_BUILD_ROOT%{prefix} +cp -pr lib $RPM_BUILD_ROOT%{prefix} +cp -pr include $RPM_BUILD_ROOT%{prefix} +cp -pr images $RPM_BUILD_ROOT%{prefix} +cp -pr install $RPM_BUILD_ROOT%{prefix} +cp -pr resource $RPM_BUILD_ROOT%{prefix} +cp -pr scripts $RPM_BUILD_ROOT%{_datadir}/%{name} +install -m 644 *.sql $RPM_BUILD_ROOT%{_datadir}/%{name} +# cron task +install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d +install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/cacti +# apache2 config +install -d -m 755 $RPM_BUILD_ROOT%{apache2_sysconfdir}/conf.d +install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{apache2_sysconfdir}/conf.d/cacti.conf +# logrotate config +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ +install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name} +# compute files list without config file +find $RPM_BUILD_ROOT%{prefix} -type d | sed -e 's|'$RPM_BUILD_ROOT'|%dir |' >> %{name}.list +find $RPM_BUILD_ROOT%{prefix} -type f ! -name config.php | sed -e 's|'$RPM_BUILD_ROOT'||' >> %{name}.list + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.list +%defattr(-,root,root) +%doc LICENSE docs/* +%attr(-,wwwrun,www) %dir %{_localstatedir}/lib/cacti +%attr(-,wwwrun,www) %dir /var/log/cacti +%dir %{apache2_sysconfdir}/conf.d +%config(noreplace) %{prefix}/include/config.php +%config(noreplace) %{_sysconfdir}/cron.d/%{name} +%config(noreplace) %{apache2_sysconfdir}/conf.d/cacti.conf +%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} +%changelog +* Tue Nov 20 2007 - prusnak@suse.cz +- updated to 0.8.7a + * "Use Per-Data Source Value (Ignore this Value)" runs only when when checking "Allow Empty Input" + * Add --autoscale-min (rrdtool 1.2.x only) and --autoscale-max (using upper AND lower limit) + * Allow for --logarithmic scaling without autoscaling + * Data sources in RRAs have random order, messing up predefined CDEFs + * Graph Templates drop down populates with duplicates + * Upgrade from 0.8.6j to 0.8.7 defaults to Authentication Method NONE + * Graph template - GRINT creates CF function DEF + * Invalid date format - "half hour" not the GNU Date format + * SQL error when using 'Auth Method' None when no 'guest' user exists + * Graph Filter dropdowns do not respect user graph permissions + * Potential SQL injection vulnerability + * RRDtool 1.2.15 complain for garbage characters when rrdtool_function_xport is used + * cmd.php: potential call to invalid "availability_method" key on wrong hash + * Log file viewer inefficient filtering uses excess memory + * doc change for using COUNTERs as integers only + * Fixed extra spaces in GPRINT. Better Alignment for Autopadding + * doc change for patching cacti when running SELinux + * Cron interval detection causes multiple pollers to run + * Max OIDS is not saved in device view + * Undefined variable: rra in graph.php on line 241 + * Dates are not stored in host table using correct format + * Graph Export Generates SQL Errors + * Usernames with spaces and dashes are not able to save + * Allow for --units=si on logarithmic scaled graphs (rrdtool-1.2.x only). + * add opacity/alpha channel to graph items (rrdtool-1.2.x only). + * Move to Top for List and Tree View. Omit boring scrolling + * add availability pings to host interface +* Tue Oct 30 2007 - prusnak@suse.cz +- update to 0.8.7 + * changes are too numerous to list + * see CHANGELOG +- dropped obsolete patches: + * graph-image.patch (included in update) +* Wed Sep 19 2007 - prusnak@suse.cz +- fix CVE-2007-3112 and CVE-2007-3113 (graph-image.patch) [#326228] +* Mon Jun 25 2007 - dmueller@suse.de +- fix last checkin +* Thu Jun 21 2007 - dmueller@suse.de +- update buildrequires +* Thu Feb 08 2007 - prusnak@suse.cz +- updated to 0.8.6j: + * fixed CVE-2006-6799 + * fixed hostname sorting on the devices page + * fixed poller.php does not giving any output with MySQL disabled + * added bottom navigation bar to graph viewing + * added "collapsible" branches to the graph tree editor + * added natural sort to graph items in the tree +- dropped obsoleted patches: + * cacti-0.8.6h-CVE-2006-6799.patch (included in update) +- fixed spec file for #norootforbuild +* Tue Jan 09 2007 - prusnak@suse.cz +- fixed CVE-2006-6799 [#231082] +* Fri Mar 17 2006 - stark@suse.de +- fix path settings +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Wed Jan 18 2006 - mrueckert@suse.de +- dont require php4 directly use the php abstraction +* Fri Jan 06 2006 - stark@suse.de +- update to 0.8.6h +- fixed logrotate setting +* Tue Jan 03 2006 - stark@suse.de +- update to 0.8.6g +* Tue Oct 25 2005 - stark@suse.de +- added php4-session to required packages (#130282) +* Sat Jul 02 2005 - stark@suse.de +- update to 0.8.6f +* Sat Jun 18 2005 - stark@suse.de +- update to 0.8.6e final +* Thu Jun 16 2005 - stark@suse.de +- update to 0.8.6e +* Fri Jan 21 2005 - stark@suse.de +- update to 0.8.6c +* Fri Nov 19 2004 - stark@suse.de +- update to 0.8.6b +- added logrotate config +* Mon Sep 20 2004 - stark@suse.de +- fix sql injection bug (#43908) +* Mon Aug 30 2004 - ro@suse.de +- remove apache1 traces +* Wed Apr 28 2004 - stark@suse.de +- update to 0.8.5a +* Mon Feb 16 2004 - stark@suse.de +- update to 0.8.5 +* Mon Dec 29 2003 - stark@suse.de +- initial SUSE package