1 %define template poller
2 Summary: Cacti Poller Statistics
3 Name: cacti-template-%{template}
7 Group: Applications/WWW
8 Source0: http://docs.cacti.net/_media/usertemplate:host:cacti:poller_stats3.tgz
9 # Source0-md5: 8d994fa7c8bfc9e1e8b7e9d11788b8e9
10 URL: http://docs.cacti.net/usertemplate:host:cacti:poller
11 BuildRequires: rpmbuild(macros) >= 1.554
12 BuildRequires: sed >= 4.0
13 Requires: cacti >= 0.8.7g
14 Obsoletes: cacti-addons-Cacti_Poller_Statistics
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define cactidir /usr/share/cacti
19 %define resourcedir %{cactidir}/resource
20 %define scriptsdir %{cactidir}/scripts
23 Variety of Graphs for Cacti Poller/Boost Performance.
28 # sane filename, we use it in post
29 mv cacti{087g,}_host_template_cacti_polling_host.xml
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
34 install -p ss_poller.php $RPM_BUILD_ROOT%{scriptsdir}
35 cp -p *.xml $RPM_BUILD_ROOT%{resourcedir}
38 %cacti_import_template %{resourcedir}/cacti_host_template_cacti_polling_host.xml
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
45 %attr(755,root,root) %{scriptsdir}/ss_poller.php