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