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