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