]> git.pld-linux.org Git - packages/cacti-template-poller.git/blob - cacti-template-poller.spec
- release 2
[packages/cacti-template-poller.git] / cacti-template-poller.spec
1 %define         template        poller
2 Summary:        Cacti Poller Statistics
3 Name:           cacti-template-%{template}
4 Version:        0.3
5 Release:        2
6 License:        GPL v2
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
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
23 Variety of Graphs for Cacti Poller/Boost Performance.
24
25 %prep
26 %setup -qc
27
28 # sane filename, we use it in post
29 mv cacti{087g,}_host_template_cacti_polling_host.xml
30
31 %install
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}
36
37 %post
38 %cacti_import_template %{resourcedir}/cacti_host_template_cacti_polling_host.xml
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
This page took 0.0759 seconds and 3 git commands to generate.