]> git.pld-linux.org Git - packages/cacti-plugin-boost.git/blame - cacti-plugin-boost.spec
- use php(core) as dependency to require php version
[packages/cacti-plugin-boost.git] / cacti-plugin-boost.spec
CommitLineData
aa95af0e
ER
1# TODO
2# - sync pl
3# - init.d processes
16771d18 4%define plugin boost
70cfdb2d
ER
5%define php_min_version 5.2.0
6%include /usr/lib/rpm/macros.php
7Summary: Large Site Performance Booster for Cacti
eaf90b01 8Summary(pl.UTF-8): Wtyczka do Cacti - Boost
70cfdb2d
ER
9Name: cacti-plugin-%{plugin}
10Version: 5.1
fe30917a 11Release: 6
eaf90b01
MWP
12License: GPL v2
13Group: Applications/WWW
aa95af0e 14Source0: http://docs.cacti.net/_media/plugin:boost-v%{version}-1.tgz
70cfdb2d 15# Source0-md5: 31bda9b46d933e61bdcd77243928c89c
88963d24 16Patch0: paths.patch
f6b30c3a 17Patch1: chmod.patch
aa95af0e
ER
18URL: http://docs.cacti.net/plugin:boost
19BuildRequires: rpmbuild(macros) >= 1.553
88963d24 20Requires: cacti >= 0.8.7g-6
70cfdb2d 21Requires: cacti(pia) >= 2.8
fe30917a 22Requires: php(core) >= %{php_min_version}
229c4dde
ER
23Requires: php(pcre)
24Requires: php(session)
70cfdb2d 25Requires: php-date
eaf90b01
MWP
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
16771d18
ER
29%define cactidir /usr/share/cacti
30%define plugindir %{cactidir}/plugins/%{plugin}
88963d24 31%define cachedir /var/cache/cacti/%{plugin}
eaf90b01
MWP
32
33%description
227ccb52 34Cacti plugin that boosts Cacti performance especially for large sites.
eaf90b01 35
aa95af0e
ER
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
227ccb52
JB
53%description -l pl.UTF-8
54Wtyczka Cacti zwiększająca jego wydajność, szczególnie w przypadku
55dużych serwisów.
eaf90b01
MWP
56
57%prep
aa95af0e 58%setup -qc
aa95af0e 59%undos -f php
70cfdb2d 60cd %{plugin}
88963d24 61%patch0 -p1
f6b30c3a 62%patch1 -p1
70cfdb2d
ER
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
eaf90b01
MWP
69
70%install
71rm -rf $RPM_BUILD_ROOT
88963d24 72install -d $RPM_BUILD_ROOT{%{plugindir},%{cachedir}}
70cfdb2d 73cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
eaf90b01
MWP
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%files
79%defattr(644,root,root,755)
ece7afae 80%doc README
16771d18 81%{plugindir}
ece7afae 82%attr(770,root,http) %dir %{cachedir}
This page took 1.92543 seconds and 4 git commands to generate.