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