]>
Commit | Line | Data |
---|---|---|
026a24ae MWP |
1 | %define namesrc devices |
2 | %include /usr/lib/rpm/macros.perl | |
3 | Summary: Plugin for Cacti - Devices | |
ac86f5d0 | 4 | Summary(pl.UTF-8): Wtyczka do Cacti - Devices |
026a24ae MWP |
5 | Name: cacti-plugin-devices |
6 | Version: 0.4 | |
bd0a9403 | 7 | Release: 1 |
026a24ae MWP |
8 | License: GPL v2 |
9 | Group: Applications/WWW | |
026a24ae MWP |
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 | |
14 | Requires: cacti | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define webcactipluginroot /usr/share/cacti/plugins/%{namesrc} | |
19 | ||
20 | %description | |
dc68725c JB |
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, | |
026a24ae | 23 | but without the ability to edit the devices. This is a hacked up copy |
dc68725c JB |
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). | |
026a24ae | 28 | |
2b6554bd | 29 | %description -l pl.UTF-8 |
dc68725c | 30 | To jest prosta wtyczka dla architektury wtyczek Cacti dla Cacti 0.8.x. |
2b6554bd JR |
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). | |
026a24ae MWP |
37 | |
38 | %prep | |
39 | %setup -q -n %{namesrc} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT%{webcactipluginroot} | |
5f97164e | 44 | cp -a * $RPM_BUILD_ROOT%{webcactipluginroot} |
026a24ae MWP |
45 | |
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
026a24ae | 51 | %{webcactipluginroot} |