1 %include /usr/lib/rpm/macros.perl
2 Summary: Cacti is a php frontend for rrdtool
3 Summary(pl): Cacti - frontend w PHP do rrdtoola
8 Group: Applications/WWW
9 Source0: http://www.raxnet.net/downloads/%{name}-%{version}.tar.gz
10 # Source0-md5: 2f10bfc2b01f1b11866f319fe74b93e7
11 #Patch0: %{name}-%{version}-paths.patch.bz2
12 URL: http://www.raxnet.net/
13 BuildRequires: rpm-perlprov
14 Requires: libnet-snmp50
16 Requires: net-snmp-utils
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define webadminroot /home/services/httpd
30 Cacti is a complete frondend to rrdtool, it stores all of the
31 nessesary information to create graphs and populate them with data in
34 The frontend is completely PHP driven. Along with being able to
35 maintain Graphs, Data Sources, and Round Robin Archives in a database,
36 cacti handles the data gathering also. There is also SNMP support for
37 those used to creating traffic graphs with MRTG.
40 Cacti to pe³ny frontent do rrdtoola, zapamiêtuj±cy wszystkie
41 informacje potrzebne do tworzenia wykresów i wype³niaj±ce je danymi w
44 Frontend jest w pe³ni oparty na PHP. Oprócz zarz±dzania wykresami,
45 ¼ród³ami danych, archiwami Round Robin w bazie danych, cacti obs³uguje
46 tak¿e gromadzenie danych. Ma tak¿e obs³ugê SNMP przydatn± przy
47 tworzeniu wykresów ruchu przy u¿yciu MRTG.
55 #for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
56 # if [ -e "$i" ]; then rm -r $i; fi >/dev/null 2>&1
60 #find . -type d | xargs chmod 755
63 #find . -type f | xargs chmod 644
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{webadminroot}/%{name}
69 cp -aRf * $RPM_BUILD_ROOT%{webadminroot}/%{name}
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc docs/CHANGELOG docs/CONTRIB docs/README
77 %dir %{webadminroot}/%{name}
78 %config(noreplace) %verify(not size mtime md5) %attr(644,http,http) %{webadminroot}/%{name}/log/rrd.log
79 %config(noreplace) %verify(not size mtime md5) %{webadminroot}/%{name}/rra/.placeholder
80 %config(noreplace) %verify(not size mtime md5) %attr(644,http,http) %{webadminroot}/%{name}/include/config.php
81 %{webadminroot}/%{name}/*