1 %define namesrc devices
2 %include /usr/lib/rpm/macros.perl
3 Summary: Plugin for Cacti - Devices
4 Summary(pl.UTF-8): Wtyczka do Cacti - Devices
5 Name: cacti-plugin-devices
9 Group: Applications/WWW
10 Source0: http://wotsit.thingy.com/haj/cacti/%{namesrc}-%{version}.zip
11 # Source0-md5: c2464ec843cc6d3d464ca179cb4b053a
12 URL: http://wotsit.thingy.com/haj/cacti/devices-plugin.html
13 BuildRequires: rpm-perlprov
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
21 This is a simple plugin for the Cacti Plugin Architecture for Cacti
22 0.8.x. Wanted a tab to show the current availability of his devices,
23 but without the ability to edit the devices. This is a hacked up copy
24 of the 'hosts.php' page that forms the Devices page within the
25 console. All the editing code is removed, and the device devices go to
26 the Graph Preview mode, with that device as the filter (so you see
27 only that device's graphs).
29 %description -l pl.UTF-8
30 To jest prosta wtyczka dla architektury wtyczek Cacti dla Cacti 0.8.x.
31 Ma być zakładką pokazującą aktualną dostępność urządzeń, ale bez
32 możliwości edycji urządzeń. Jest to zmodyfikowana kopia strony
33 'hosts.php' tworzącej stronę Devices wewnątrz konsoli. Cały kod do
34 modyfikacji ustawień został usunięty, a urządzenie przechodzi do
35 trybu podglądu wykresu (Graph Preview) z ustawionym tym urządzeniem
36 jako filtrem (więc widać tylko wykres dla tego urządzenia).
39 %setup -q -n %{namesrc}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
44 cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)