+# TODO
+# - sync pl
+# - init.d processes
%define plugin boost
-%include /usr/lib/rpm/macros.perl
Summary: Plugin for Cacti - Boost
Summary(pl.UTF-8): Wtyczka do Cacti - Boost
Name: cacti-plugin-boost
-Version: 1.7
-Release: 1
+Version: 4.3
+Release: 0.1
License: GPL v2
Group: Applications/WWW
-Source0: http://mirror.cactiusers.org/downloads/plugins/%{plugin}-%{version}.zip
-# Source0-md5: 49c5989cc421781fb8e983d70ba2bcac
-URL: http://www.cactiusers.org/
-BuildRequires: rpm-perlprov
-BuildRequires: unzip
-Requires: cacti
+Source0: http://docs.cacti.net/_media/plugin:boost-v%{version}-1.tgz
+# Source0-md5: f4df111245fd9c11c5496b36e7971ef6
+URL: http://docs.cacti.net/plugin:boost
+BuildRequires: rpmbuild(macros) >= 1.553
+Requires: cacti >= 0.8.7
+Provides: cacti(pia) >= 2.8
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Cacti plugin that boosts Cacti performance especially for large sites.
+This plugin boost's Cacti performance especially for Large Sites. It
+does this by introducing three new features to Cacti.
+
+First, it caches recently viewed images to a public Cache folder for
+all users to share.
+
+Second, it introduces an "on demand" RRD update feaure to Cacti. This
+feature will only update the RRD files when there is demand on the
+system to view a graph. The RRD's will be updated just before the
+Graph is rendered by the web server. Then, on a predetermined
+schedule, it conducts a batch update's of all remaining RRD's.
+
+Lastly, it introduces an RRD update service to Cacti. This service
+allows you to add multiple Cacti servers to your web farm allowing all
+the servers to participate in the "on demand" RRD update and viewing
+process.
+
%description -l pl.UTF-8
Wtyczka Cacti zwiększająca jego wydajność, szczególnie w przypadku
dużych serwisów.
%prep
-%setup -q -c
+%setup -qc
+mv boost/* .
+%undos -f php
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{plugindir}
cp -a . $RPM_BUILD_ROOT%{plugindir}
+%{__rm} $RPM_BUILD_ROOT%{plugindir}/{README,LICENSE}
+%{__rm} $RPM_BUILD_ROOT%{plugindir}/cacti_rrdsvc
%clean
rm -rf $RPM_BUILD_ROOT