]>
Commit | Line | Data |
---|---|---|
e6190def ER |
1 | %define template poller |
2 | Summary: Cacti Poller Statistics | |
3 | Name: cacti-template-%{template} | |
76c75a67 | 4 | Version: 0.3 |
cabf797b | 5 | Release: 1 |
e6190def ER |
6 | License: GPL v2 |
7 | Group: Applications/WWW | |
76c75a67 ER |
8 | Source0: http://docs.cacti.net/_media/usertemplate:host:cacti:poller_stats3.tgz |
9 | # Source0-md5: 8d994fa7c8bfc9e1e8b7e9d11788b8e9 | |
43fdd163 | 10 | URL: http://docs.cacti.net/usertemplate:host:cacti:poller |
e6190def ER |
11 | BuildRequires: rpmbuild(macros) >= 1.554 |
12 | BuildRequires: sed >= 4.0 | |
76c75a67 | 13 | Requires: cacti >= 0.8.7g |
41d1d454 | 14 | Obsoletes: cacti-addons-Cacti_Poller_Statistics |
e6190def ER |
15 | BuildArch: noarch |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define cactidir /usr/share/cacti | |
19 | %define resourcedir %{cactidir}/resource | |
20 | %define scriptsdir %{cactidir}/scripts | |
21 | ||
22 | %description | |
43fdd163 | 23 | Variety of Graphs for Cacti Poller/Boost Performance. |
e6190def ER |
24 | |
25 | %prep | |
43fdd163 | 26 | %setup -qc |
e6190def | 27 | |
43fdd163 | 28 | # sane filename, we use it in post |
76c75a67 | 29 | mv cacti{087g,}_host_template_cacti_polling_host.xml |
43fdd163 | 30 | |
e6190def ER |
31 | %install |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}} | |
76c75a67 ER |
34 | install -p ss_poller.php $RPM_BUILD_ROOT%{scriptsdir} |
35 | cp -p *.xml $RPM_BUILD_ROOT%{resourcedir} | |
e6190def ER |
36 | |
37 | %post | |
43fdd163 | 38 | %cacti_import_template %{resourcedir}/cacti_host_template_cacti_polling_host.xml |
e6190def ER |
39 | |
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %attr(755,root,root) %{scriptsdir}/ss_poller.php | |
46 | %{resourcedir}/*.xml |