2 # - move config files to /etc/%{name}
4 %include /usr/lib/rpm/macros.perl
5 Summary: Cacti is a PHP frontend for rrdtool
6 Summary(pl): Cacti - frontend w PHP do rrdtoola
11 Group: Applications/WWW
12 Source0: http://www.cacti.net/downloads/%{name}-%{version}.tar.gz
13 # Source0-md5: f48b1cc12ebdf96358563760c812e227
14 URL: http://www.cacti.net/
15 BuildRequires: rpm-perlprov
17 Requires: net-snmp-utils
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define webadminroot /usr/share/%{name}
33 Cacti is a complete frondend to rrdtool, it stores all of the
34 nessesary information to create graphs and populate them with data in
37 The frontend is completely PHP driven. Along with being able to
38 maintain Graphs, Data Sources, and Round Robin Archives in a database,
39 cacti handles the data gathering also. There is also SNMP support for
40 those used to creating traffic graphs with MRTG.
43 Cacti to pe³ny frontend do rrdtoola, zapamiêtuj±cy wszystkie
44 informacje potrzebne do tworzenia wykresów i wype³niaj±ce je danymi w
47 Frontend jest w pe³ni oparty na PHP. Oprócz zarz±dzania wykresami,
48 ¼ród³ami danych, archiwami Round Robin w bazie danych, cacti obs³uguje
49 tak¿e gromadzenie danych. Ma tak¿e obs³ugê SNMP przydatn± przy
50 tworzeniu wykresów ruchu przy u¿yciu MRTG.
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{webadminroot}/%{name}
61 cp -aRf * $RPM_BUILD_ROOT%{webadminroot}/%{name}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc docs/CHANGELOG docs/CONTRIB docs/README
70 %dir %{webadminroot}/%{name}
71 %dir %{webadminroot}/%{name}/log
72 %config(noreplace) %verify(not size mtime md5) %attr(644,http,http) %{webadminroot}/%{name}/log/cacti.log
73 %dir %{webadminroot}/%{name}/rra
74 %config(noreplace) %verify(not size mtime md5) %{webadminroot}/%{name}/rra/.placeholder
75 %dir %{webadminroot}/%{name}/include
76 %config(noreplace) %verify(not size mtime md5) %attr(644,http,http) %{webadminroot}/%{name}/include/config.php
77 %{webadminroot}/%{name}/*