]> git.pld-linux.org Git - packages/cacti-plugin-boost.git/blame_incremental - cacti-plugin-boost.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-plugin-boost.git] / cacti-plugin-boost.spec
... / ...
CommitLineData
1# TODO
2# - sync pl
3# - init.d processes
4%define plugin boost
5%define php_min_version 5.2.0
6%include /usr/lib/rpm/macros.php
7Summary: Large Site Performance Booster for Cacti
8Summary(pl.UTF-8): Wtyczka do Cacti - Boost
9Name: cacti-plugin-%{plugin}
10Version: 5.1
11Release: 7
12License: GPL v2
13Group: Applications/WWW
14Source0: http://docs.cacti.net/_media/plugin:boost-v%{version}-1.tgz
15# Source0-md5: 31bda9b46d933e61bdcd77243928c89c
16Patch0: paths.patch
17Patch1: chmod.patch
18URL: http://docs.cacti.net/plugin:boost
19BuildRequires: rpmbuild(macros) >= 1.553
20Requires: cacti >= 0.8.7g-6
21Requires: cacti(pia) >= 2.8
22Requires: php(core) >= %{php_min_version}
23Requires: php(pcre)
24Requires: php(session)
25Requires: php(date)
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%define cactidir /usr/share/cacti
30%define plugindir %{cactidir}/plugins/%{plugin}
31%define cachedir /var/cache/cacti/%{plugin}
32
33%description
34Cacti plugin that boosts Cacti performance especially for large sites.
35
36This plugin boost's Cacti performance especially for Large Sites. It
37does this by introducing three new features to Cacti.
38
39First, it caches recently viewed images to a public Cache folder for
40all users to share.
41
42Second, it introduces an "on demand" RRD update feaure to Cacti. This
43feature will only update the RRD files when there is demand on the
44system to view a graph. The RRD's will be updated just before the
45Graph is rendered by the web server. Then, on a predetermined
46schedule, it conducts a batch update's of all remaining RRD's.
47
48Lastly, it introduces an RRD update service to Cacti. This service
49allows you to add multiple Cacti servers to your web farm allowing all
50the servers to participate in the "on demand" RRD update and viewing
51process.
52
53%description -l pl.UTF-8
54Wtyczka Cacti zwiększająca jego wydajność, szczególnie w przypadku
55dużych serwisów.
56
57%prep
58%setup -qc
59%undos -f php
60cd %{plugin}
61%patch0 -p1
62%patch1 -p1
63cd -
64
65mv %{plugin}/{README,LICENSE,cacti_rrdsvc} .
66
67# cleanup backups after patching
68find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
69
70%install
71rm -rf $RPM_BUILD_ROOT
72install -d $RPM_BUILD_ROOT{%{plugindir},%{cachedir}}
73cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%files
79%defattr(644,root,root,755)
80%doc README
81%{plugindir}
82%attr(770,root,http) %dir %{cachedir}
This page took 0.053848 seconds and 4 git commands to generate.