4 %define webadminroot /var/www/html/admin
6 Summary: Cacti is a php frontend for rrdtool
12 URL: http://www.raxnet.net/
13 Source0: %{name}-%{version}.tar.bz2
14 Patch0: %{name}-%{version}-paths.patch.bz2
15 Requires: webserver mysqlserver mod_php php php-common php-gd php-mysql php-snmp
16 Requires: net-snmp-utils libnet-snmp50 net-snmp net-snmp-mibs
17 Requires: librrdtool0 rrdtool
19 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
21 Prefix: %{webadminroot}
24 Cacti is a complete frondend to rrdtool, it stores all of the
25 nessesary information to create graphs and populate them with
26 data in a MySQL database.
28 The frontend is completely PHP driven. Along with being able
29 to maintain Graphs, Data Sources, and Round Robin Archives in
30 a database, cacti handles the data gathering also. There is
31 also SNMP support for those used to creating traffic graphs
42 for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
43 if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
47 find . -type d | xargs chmod 755
50 find . -type f | xargs chmod 644
53 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
55 mkdir -p %{buildroot}%{webadminroot}/%{name}
56 cp -aRf * %{buildroot}%{webadminroot}/%{name}/
59 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
62 %defattr(-, root, root)
63 %doc docs/CHANGELOG docs/CONTRIB docs/README
64 %config(noreplace) %attr(0644,apache,apache) %{webadminroot}/%{name}/log/rrd.log
65 %config(noreplace) %attr(0644,root,root) %{webadminroot}/%{name}/rra/.placeholder
66 %config(noreplace) %attr(0644,apache,apache) %{webadminroot}/%{name}/include/config.php
67 %{webadminroot}/%{name}/*
70 * Thu Jan 16 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.6.8a-3mdk
73 * Thu Sep 19 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.6.8a-2mdk
74 - misc spec file fixes
75 - install in common and relocatable %%{webadminroot}/ directory
77 * Wed Sep 18 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.6.8a-1mdk
79 - do not require non existant php extensions
80 - misc spec file fixes
82 * Sun May 12 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.6.8-1mdk
83 - initial cooker contrib