]> git.pld-linux.org Git - packages/cacti-plugin-devices.git/blob - cacti-plugin-devices.spec
- cleanups
[packages/cacti-plugin-devices.git] / cacti-plugin-devices.spec
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
6 Version:        0.4
7 Release:        1
8 License:        GPL v2
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
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
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).
28
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).
37
38 %prep
39 %setup -q -n %{namesrc}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
44 cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %{webcactipluginroot}
This page took 1.798114 seconds and 3 git commands to generate.