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