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