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