]> git.pld-linux.org Git - SPECS.git/blob - cacti-plugin-devices.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / cacti-plugin-devices.spec
1 %define         plugin devices
2 %define         php_min_version 5.0.0
3 Summary:        Plugin for Cacti - Devices
4 Summary(pl.UTF-8):      Wtyczka do Cacti - Devices
5 Name:           cacti-plugin-%{plugin}
6 Version:        0.4
7 Release:        2
8 License:        GPL v2
9 Group:          Applications/WWW
10 Source0:        http://wotsit.thingy.com/haj/cacti/%{plugin}-%{version}.zip
11 # Source0-md5:  c2464ec843cc6d3d464ca179cb4b053a
12 URL:            http://wotsit.thingy.com/haj/cacti/devices-plugin.html
13 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
14 BuildRequires:  unzip
15 Requires:       cacti
16 Requires:       php-common >= 4:%{php_min_version}
17 Requires:       php-pcre
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         cactidir                /usr/share/cacti
22 %define         plugindir               %{cactidir}/plugins/%{plugin}
23
24 %description
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,
27 but without the ability to edit the devices. This is a hacked up copy
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).
32
33 %description -l pl.UTF-8
34 To jest prosta wtyczka dla architektury wtyczek Cacti dla Cacti 0.8.x.
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
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).
41
42 %prep
43 %setup -qc
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{plugindir}
48 cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %{plugindir}
This page took 0.137372 seconds and 3 git commands to generate.