%define plugin devices %define php_min_version 5.0.0 Summary: Plugin for Cacti - Devices Summary(pl.UTF-8): Wtyczka do Cacti - Devices Name: cacti-plugin-%{plugin} Version: 0.4 Release: 2 License: GPL v2 Group: Applications/WWW Source0: http://wotsit.thingy.com/haj/cacti/%{plugin}-%{version}.zip # Source0-md5: c2464ec843cc6d3d464ca179cb4b053a URL: http://wotsit.thingy.com/haj/cacti/devices-plugin.html BuildRequires: rpm-php-pearprov >= 4.4.2-11 BuildRequires: unzip Requires: cacti Requires: php-common >= 4:%{php_min_version} Requires: php-pcre BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define cactidir /usr/share/cacti %define plugindir %{cactidir}/plugins/%{plugin} %description This is a simple plugin for the Cacti Plugin Architecture for Cacti 0.8.x. Wanted a tab to show the current availability of his devices, but without the ability to edit the devices. This is a hacked up copy of the 'hosts.php' page that forms the Devices page within the console. All the editing code is removed, and the device devices go to the Graph Preview mode, with that device as the filter (so you see only that device's graphs). %description -l pl.UTF-8 To jest prosta wtyczka dla architektury wtyczek Cacti dla Cacti 0.8.x. Ma być zakładką pokazującą aktualną dostępność urządzeń, ale bez możliwości edycji urządzeń. Jest to zmodyfikowana kopia strony 'hosts.php' tworzącej stronę Devices wewnątrz konsoli. Cały kod do modyfikacji ustawień został usunięty, a urządzenie przechodzi do trybu podglądu wykresu (Graph Preview) z ustawionym tym urządzeniem jako filtrem (więc widać tylko wykres dla tego urządzenia). %prep %setup -qc %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{plugindir} cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{plugindir}