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