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