]> git.pld-linux.org Git - packages/cacti-plugin-devices.git/blob - cacti-plugin-devices.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-plugin-devices.git] / cacti-plugin-devices.spec
1 %define         plugin devices
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}
7 Version:        0.4
8 Release:        2
9 License:        GPL v2
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
15 BuildRequires:  unzip
16 Requires:       cacti
17 Requires:       php-common >= 4:%{php_min_version}
18 Requires:       php-pcre
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         cactidir                /usr/share/cacti
23 %define         plugindir               %{cactidir}/plugins/%{plugin}
24
25 %description
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).
33
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).
42
43 %prep
44 %setup -qc
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{plugindir}
49 cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %{plugindir}
This page took 0.195152 seconds and 3 git commands to generate.