2006-02-07 01:42:50 +00:00
|
|
|
Name: cacti
|
2012-04-30 17:08:11 +00:00
|
|
|
Version: 0.8.8a
|
|
|
|
Release: 1%{?dist}
|
2006-02-07 01:42:50 +00:00
|
|
|
Summary: An rrd based graphing tool
|
|
|
|
|
|
|
|
Group: Applications/System
|
2008-07-19 16:01:16 +00:00
|
|
|
# There's a lot of stuff in there. It's all compatible.
|
|
|
|
License: GPLv2+ and LGPLv2 and (MPLv1.1 or GPLv2 or LGPLv2) and (LGPLv2 or BSD)
|
2006-02-07 01:42:50 +00:00
|
|
|
URL: http://www.cacti.net/
|
|
|
|
Source0: http://www.cacti.net/downloads/%{name}-%{version}.tar.gz
|
|
|
|
Source1: cacti-httpd.conf
|
|
|
|
Source2: cacti.logrotate
|
|
|
|
Source3: cacti.README.Fedora
|
2006-11-03 01:58:56 +00:00
|
|
|
|
2006-02-07 01:42:50 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
Requires: php, php-mysql, mysql, httpd, rrdtool, net-snmp, php-snmp
|
|
|
|
Requires(pre): %{_sbindir}/useradd
|
|
|
|
Requires(postun): /sbin/service
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Cacti is a complete frontend to RRDTool. It stores all of the
|
|
|
|
necessary information to create graphs and populate them with
|
|
|
|
data in a MySQL database. The frontend is completely PHP
|
|
|
|
driven. Along with being able to maintain graphs, data
|
|
|
|
sources, and round robin archives in a database, Cacti also
|
|
|
|
handles the data gathering. There is SNMP support for those
|
|
|
|
used to creating traffic graphs with MRTG.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
2006-02-22 08:34:48 +00:00
|
|
|
echo "#*/5 * * * * cacti %{_bindir}/php %{_datadir}/%{name}/poller.php > /dev/null 2>&1" >cacti.cron
|
2006-02-07 01:42:50 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/%{name}
|
|
|
|
%{__install} -d -m 0755 %{buildroot}/%{_docdir}/%{name}-%{version}
|
|
|
|
%{__install} -d -m 0755 %{buildroot}/%{_datadir}/%{name}/
|
|
|
|
%{__install} -m 0644 *.php %{buildroot}/%{_datadir}/%{name}/
|
|
|
|
%{__install} -d -m 0775 log/ %{buildroot}/%{_localstatedir}/log/%{name}/
|
|
|
|
%{__install} -m 0664 log/* %{buildroot}/%{_localstatedir}/log/%{name}/
|
|
|
|
%{__install} -d -m 0755 rra/ %{buildroot}/%{_localstatedir}/lib/%{name}/rra/
|
2006-11-03 01:58:56 +00:00
|
|
|
%{__install} -d -m 0755 scripts/ %{buildroot}/%{_localstatedir}/lib//%{name}/scripts/
|
2006-02-07 01:42:50 +00:00
|
|
|
%{__install} -m 0755 scripts/* %{buildroot}/%{_localstatedir}/lib/%{name}/scripts/
|
2009-02-23 17:14:22 +00:00
|
|
|
%{__install} -d -m 0755 cli/ %{buildroot}/%{_localstatedir}/lib//%{name}/cli/
|
|
|
|
%{__install} -m 0755 cli/* %{buildroot}/%{_localstatedir}/lib/%{name}/cli/
|
2006-02-07 01:42:50 +00:00
|
|
|
%{__install} -D -m 0644 cacti.cron %{buildroot}/%{_sysconfdir}/cron.d/cacti
|
|
|
|
%{__install} -D -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/cacti.conf
|
|
|
|
%{__install} -D -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/cacti
|
2011-12-13 16:16:00 +00:00
|
|
|
|
|
|
|
# The su parameter will trip up older logrotate versions.
|
|
|
|
# Conditionally remove it here.
|
|
|
|
%if (0%{?fedora} && 0%{?fedora} <= 15) || (0%{?rhel} && 0%{?rhel} <= 6)
|
|
|
|
sed -i %{buildroot}/%{_sysconfdir}/logrotate.d/cacti -e '/^[ \t]*su /d'
|
|
|
|
%endif
|
|
|
|
|
2006-02-07 01:42:50 +00:00
|
|
|
%{__cp} -a images/ include/ install/ lib/ resource/ %{buildroot}%{_datadir}/%{name}
|
|
|
|
%{__cp} %{SOURCE3} ./docs/README.cacti
|
|
|
|
%{__cp} -a docs/ %{buildroot}/%{_docdir}/%{name}-%{version}
|
2007-11-20 15:13:15 +00:00
|
|
|
%{__mv} %{buildroot}/%{_datadir}/%{name}/include/config.php %{buildroot}/%{_sysconfdir}/%{name}/db.php
|
2006-02-07 01:42:50 +00:00
|
|
|
%{__chmod} +x %{buildroot}/%{_datadir}/%{name}/cmd.php %{buildroot}/%{_datadir}/%{name}/poller.php
|
2007-11-20 15:13:15 +00:00
|
|
|
ln -s %{_sysconfdir}/%{name}/db.php %{buildroot}/%{_datadir}/%{name}/include/config.php
|
2006-02-07 01:42:50 +00:00
|
|
|
ln -s %{_localstatedir}/lib/%{name}/rra %{buildroot}/%{_datadir}/%{name}/
|
|
|
|
ln -s %{_localstatedir}/lib/%{name}/scripts %{buildroot}/%{_datadir}/%{name}/
|
2011-10-24 15:10:32 +00:00
|
|
|
ln -s %{_localstatedir}/lib/%{name}/cli %{buildroot}/%{_datadir}/%{name}/
|
2006-02-07 01:42:50 +00:00
|
|
|
ln -s %{_localstatedir}/log/%{name}/ %{buildroot}/%{_datadir}/%{name}/log
|
2006-11-03 01:58:56 +00:00
|
|
|
ln -s %{_datadir}/%{name}/lib %{buildroot}/%{_localstatedir}/lib/%{name}/
|
|
|
|
ln -s %{_datadir}/%{name}/include %{buildroot}/%{_localstatedir}/lib/%{name}/
|
2006-02-07 01:42:50 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%{_sbindir}/useradd -d %{_datadir}/%{name} -r -s /sbin/nologin cacti 2> /dev/null || :
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 == 1 ]; then
|
|
|
|
/sbin/service httpd condrestart > /dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/service httpd condrestart > /dev/null 2>&1 || :
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_localstatedir}/lib/%{name}
|
2009-08-17 02:15:04 +00:00
|
|
|
%dir %{_localstatedir}/lib/%{name}/cli
|
2006-02-07 01:42:50 +00:00
|
|
|
%dir %{_localstatedir}/lib/%{name}/scripts
|
|
|
|
%doc docs/ README LICENSE cacti.sql
|
|
|
|
%config(noreplace) %{_sysconfdir}/cron.d/cacti
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/cacti.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
2007-11-23 17:57:57 +00:00
|
|
|
%attr(0640,cacti,apache) %config(noreplace) %{_sysconfdir}/%{name}/db.php
|
2006-02-07 01:42:50 +00:00
|
|
|
%{_datadir}/%{name}/*.php
|
|
|
|
%{_datadir}/%{name}/images/
|
|
|
|
%{_datadir}/%{name}/include/
|
|
|
|
%{_datadir}/%{name}/install/
|
|
|
|
%{_datadir}/%{name}/lib/
|
|
|
|
%{_datadir}/%{name}/log
|
|
|
|
%{_datadir}/%{name}/resource/
|
|
|
|
%{_datadir}/%{name}/rra
|
|
|
|
%{_datadir}/%{name}/scripts
|
2011-10-24 15:10:32 +00:00
|
|
|
%{_datadir}/%{name}/cli
|
2006-02-07 01:42:50 +00:00
|
|
|
%{_localstatedir}/lib/%{name}/scripts/*[^p]
|
|
|
|
%attr(-,cacti,apache) %{_localstatedir}/log/%{name}/
|
|
|
|
%attr(-,cacti,root) %{_localstatedir}/lib/%{name}/rra/
|
|
|
|
%attr(0644,root,root) %{_localstatedir}/lib/%{name}/scripts/*php
|
2009-02-23 17:14:22 +00:00
|
|
|
%attr(0644,root,root) %{_localstatedir}/lib/%{name}/cli/*php
|
2006-11-03 01:58:56 +00:00
|
|
|
%attr(0644,root,root) %{_localstatedir}/lib/%{name}/include
|
|
|
|
%attr(0644,root,root) %{_localstatedir}/lib/%{name}/lib
|
2006-02-07 01:42:50 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-04-30 17:08:11 +00:00
|
|
|
* Mon Apr 30 2012 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.8a-1
|
|
|
|
- New upstream release (BZ #817506)
|
|
|
|
- Drop upstreamed $url_path patch
|
|
|
|
|
2012-04-11 19:15:13 +00:00
|
|
|
* Wed Apr 11 2012 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.8-3
|
|
|
|
- Patch $url_path to default to "/cacti/" (upstream bug 2217)
|
|
|
|
|
2012-04-06 15:59:08 +00:00
|
|
|
* Fri Apr 06 2012 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.8-2
|
|
|
|
- Adjust httpd ACL conditionals to test the presence of mod_authz_core
|
|
|
|
(as discussed on fedora-devel)
|
|
|
|
|
2012-04-04 14:01:37 +00:00
|
|
|
* Wed Apr 04 2012 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.8-1
|
|
|
|
- New upstream release (BZ #809753).
|
|
|
|
|
2012-03-27 02:14:52 +00:00
|
|
|
* Mon Mar 26 2012 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.7i-4
|
|
|
|
- Adjust ACLs to support httpd 2.4.
|
|
|
|
|
2012-01-12 23:00:08 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.7i-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-13 16:16:00 +00:00
|
|
|
* Tue Dec 13 2011 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.7i-2
|
|
|
|
- Only set "su" logrotate parameter for F16 and above.
|
|
|
|
- Tweak mod_security rules.
|
|
|
|
|
|
|
|
* Mon Dec 12 2011 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.7i-1
|
2011-12-12 15:01:54 +00:00
|
|
|
- New upstream release (BZ #766573).
|
2011-12-12 14:56:41 +00:00
|
|
|
|
2011-11-11 16:18:00 +00:00
|
|
|
* Fri Nov 11 2011 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.7h-2
|
2011-11-11 16:02:26 +00:00
|
|
|
- block HTTP access to log and rra directories (#609856)
|
|
|
|
- overrides for mod_security
|
2011-11-11 15:55:46 +00:00
|
|
|
- set logrotate to su to cacti apache when rotating (#753079)
|
|
|
|
|
2011-10-27 18:17:56 +00:00
|
|
|
* Thu Oct 27 2011 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.7h-1
|
|
|
|
- New upstream release.
|
|
|
|
- Remove upstream'd mysql patch.
|
|
|
|
|
2011-08-08 16:41:48 +00:00
|
|
|
* Mon Aug 08 2011 Jon Ciesla <limb@jcomserv.net> - 0.8.7g-3
|
|
|
|
- Patch for MySQL 5.5, BZ 728513.
|
|
|
|
|
2011-02-08 06:18:33 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.7g-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-07-12 15:31:02 +00:00
|
|
|
* Mon Jul 12 2010 Mike McGrath <mmcgrath@redhat.com> 0.8.7g-1
|
|
|
|
- Upstream released new version
|
|
|
|
|
2010-05-24 15:56:59 +00:00
|
|
|
* Mon May 24 2010 Mike McGrath <mmcgrath@redhat.com> - 0.8.7f-1
|
|
|
|
- Upstream released new version
|
|
|
|
- Contains security updates #595289
|
|
|
|
|
2010-04-23 13:54:04 +00:00
|
|
|
* Fri Apr 23 2010 Mike McGrath <mmcgrath@redhat.com> - 0.8.7e-4
|
|
|
|
- Pulling in patches from upstream
|
|
|
|
- SQL injection fix
|
|
|
|
- BZ #541279
|
|
|
|
|
2009-12-01 15:19:46 +00:00
|
|
|
* Tue Dec 1 2009 Mike McGrath <mmcgrath@redhat.com> - 0.8.7e-3
|
|
|
|
- Pulling in some official patches
|
|
|
|
- #541279
|
|
|
|
- #541962
|
|
|
|
|
2009-08-17 02:15:04 +00:00
|
|
|
* Sun Aug 16 2009 Mike McGrath <mmcgrath@redhat.com> - 0.8.7e-1
|
|
|
|
- Upstream released new version
|
|
|
|
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.7d-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Mar 31 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 0.8.7d-3
|
|
|
|
- Fix unowned cli directory (#473631)
|
|
|
|
|
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.7d-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-23 17:14:22 +00:00
|
|
|
* Sat Feb 21 2009 Mike McGrath <mmcgrath@redhat.com> - 0.8.7d-1
|
|
|
|
- Upstream released new version
|
|
|
|
|
|
|
|
* Mon Jul 28 2008 Mike McGrath <mmcgrath@redhat.com> - 0.8.7b-4
|
|
|
|
- Added cli directory
|
|
|
|
|
2008-07-19 16:01:16 +00:00
|
|
|
* Fri Jul 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8.7b-3
|
|
|
|
- fix my own mistake in the license tag
|
|
|
|
|
|
|
|
* Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8.7b-2
|
|
|
|
- fix license tag
|
|
|
|
|
|
|
|
* Thu Feb 14 2008 Mike McGrath <mmcgrath@redhat.com> - 0.8.7b-1
|
2008-02-14 14:42:47 +00:00
|
|
|
- Upstream released new version
|
|
|
|
|
2007-11-23 17:57:57 +00:00
|
|
|
* Fri Nov 23 2007 Mike McGrath <mmcgrath@redhat.com> - 0.8.7a-2
|
|
|
|
- db.php is now 640 instead of 660 - #396331
|
|
|
|
|
2007-11-20 15:13:15 +00:00
|
|
|
* Tue Nov 20 2007 Mike McGrath <mmcgrath@redhat.com> - 0.8.7a-1
|
|
|
|
- Upstream released new version
|
|
|
|
- Fixes for bug #391691 - CVE-2007-6035
|
|
|
|
|
|
|
|
* Fri Oct 13 2007 Mike McGrath <mmcgrath@redhat.com> - 0.8.7-2
|
|
|
|
- Upstream released new version
|
|
|
|
- No longer need to patch for /etc/cacti/*
|
2007-09-21 14:56:58 +00:00
|
|
|
|
2007-09-14 21:30:11 +00:00
|
|
|
* Fri Sep 14 2007 Mike McGrath <mmcgrath@redhat.com> - 0.8.6j-8
|
2007-09-14 21:26:02 +00:00
|
|
|
- Fix for CVE-2007-3112 bz#243592
|
|
|
|
|
|
|
|
* Sat Sep 08 2007 Mike McGrath <mmcgrath@redhat.com> - 0.8.6j-6
|
|
|
|
- rebuild
|
|
|
|
|
2007-05-05 20:46:41 +00:00
|
|
|
* Sat May 05 2007 Mike McGrath <mmcgrath@redhat.com> - 0.8.6j-5
|
|
|
|
- Upstream released new version
|
|
|
|
|
2007-01-12 15:52:07 +00:00
|
|
|
* Fri Jan 12 2007 Mike McGrath <imlinux@gmail.com> - 0.8.6i-5
|
|
|
|
- Added 4 upstream patches
|
|
|
|
- Fix for BZ 222410
|
|
|
|
|
2006-11-09 22:56:07 +00:00
|
|
|
* Thu Nov 09 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6i-4
|
|
|
|
- Patch now includes <?php BG# 214914
|
|
|
|
|
2006-11-03 02:06:29 +00:00
|
|
|
* Thu Sep 07 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6i-3
|
|
|
|
- Upstream released new version
|
|
|
|
|
2006-11-03 01:58:56 +00:00
|
|
|
* Thu Sep 07 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6i-2
|
|
|
|
- Upstream released new version
|
|
|
|
|
2006-09-07 20:31:46 +00:00
|
|
|
* Thu Sep 07 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6h-7
|
|
|
|
- Mass rebuild
|
|
|
|
|
2006-02-22 08:34:48 +00:00
|
|
|
* Wed Feb 22 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6h-6
|
|
|
|
- Disabled Cron job by default
|
|
|
|
|
2006-02-14 14:05:42 +00:00
|
|
|
* Tue Feb 14 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6h-5
|
|
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
|
2006-02-07 01:42:50 +00:00
|
|
|
* Mon Feb 6 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6h-4
|
|
|
|
- Fixed some scriptlets to always return 0
|
|
|
|
- Fixed extra '/' in logrotate
|
|
|
|
- Added README.Fedora
|
|
|
|
|
|
|
|
* Wed Jan 14 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6h-3
|
|
|
|
- Fixed device filter clear issue
|
|
|
|
- Fixed invalid SQL graph generation statement
|
|
|
|
- Fixed php warning for empty set non-existant rrd file
|
|
|
|
- Added MySQL 5.x 'strict mode' compatibility
|
|
|
|
|
|
|
|
* Mon Jan 09 2006 Mike McGrath <imlinux@gmail.com> - 0.8.6h-1
|
|
|
|
- MySQL 5.x support
|
|
|
|
- IPv6 support to lib/ping.php
|
|
|
|
- Command line scripts for copying users, reindxing and rebuilding cache
|
|
|
|
- Many Bug fixes
|
|
|
|
|
|
|
|
* Tue Dec 18 2005 Mike McGrath <imlinux@gmail.com> - 0.8.6g-7
|
|
|
|
- Separated database configs from config.php
|
|
|
|
- Fixed the 'short_open_tag" syntax error
|
|
|
|
- Fixed graph zoom graph bug
|
|
|
|
- Fixed SNMP auth bug
|
|
|
|
- Re-enables MIB file parsing in poller
|
|
|
|
- Created a Fedora frendly version of the RPM
|
|
|
|
|
|
|
|
* Wed Sep 7 2005 Ian Berry <iberry@raxnet.net> - 0.8.6g-1
|
|
|
|
- Updated to release 0.8.6g.
|
|
|
|
|
|
|
|
* Mon Jul 1 2005 Ian Berry <iberry@raxnet.net> - 0.8.6f-1
|
|
|
|
- Updated to release 0.8.6f.
|
|
|
|
|
|
|
|
* Mon Jun 20 2005 Ian Berry <iberry@raxnet.net> - 0.8.6e-1
|
|
|
|
- Updated to release 0.8.6e.
|
|
|
|
|
|
|
|
* Wed Apr 26 2005 Ian Berry <iberry@raxnet.net> - 0.8.6d-1
|
|
|
|
- Updated to release 0.8.6d.
|
|
|
|
|
|
|
|
* Wed Dec 12 2004 Ian Berry <iberry@raxnet.net> - 0.8.6c-1
|
|
|
|
- Updated to release 0.8.6c.
|
|
|
|
|
|
|
|
* Wed Oct 5 2004 Ian Berry <iberry@raxnet.net> - 0.8.6b-1
|
|
|
|
- Updated to release 0.8.6b.
|
|
|
|
|
|
|
|
* Sun Oct 3 2004 Ian Berry <iberry@raxnet.net> - 0.8.6a-1
|
|
|
|
- Updated to release 0.8.6a.
|
|
|
|
|
|
|
|
* Sat Sep 11 2004 Ian Berry <iberry@raxnet.net> - 0.8.6-1
|
|
|
|
- Updated to release 0.8.6.
|
|
|
|
- Broke cactid into its own package.
|
|
|
|
|
|
|
|
* Thu Apr 4 2004 Ian Berry <iberry@raxnet.net> - 0.8.5a-1
|
|
|
|
- Initial package.
|
|
|
|
|