]> git.pld-linux.org Git - packages/cacti-template-varnish.git/blob - cacti-template-varnish.spec
- note about management port
[packages/cacti-template-varnish.git] / cacti-template-varnish.spec
1 %define         template        varnish
2 Summary:        Varnish Cache statistics template for Cacti
3 Name:           cacti-template-%{template}
4 Version:        3
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/WWW
8 Source1:        get_varnish_stats.py
9 Source2:        cacti_host_template_varnish.xml
10 Source3:        README
11 URL:            http://forums.cacti.net/viewtopic.php?p=182152
12 BuildRequires:  rpm-pythonprov
13 BuildRequires:  rpmbuild(macros) >= 1.554
14 Requires:       cacti >= 0.8.7e-8
15 Conflicts:      cacti-spine < 0.8.7e-3
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         cactidir                /usr/share/cacti
20 %define         resourcedir             %{cactidir}/resource
21 %define         scriptsdir              %{cactidir}/scripts
22
23 %description
24 Template for Cacti - Varnish Cache statistics.
25
26 %prep
27 %setup -qcT
28 cp -a %{SOURCE3} .
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
33 install -p %{SOURCE1} $RPM_BUILD_ROOT%{scriptsdir}
34 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{resourcedir}
35
36 %post
37 %cacti_import_template %{resourcedir}/cacti_host_template_varnish.xml
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc README
45 %attr(755,root,root) %{scriptsdir}/get_varnish_stats.py
46 %{resourcedir}/*.xml
This page took 0.077454 seconds and 3 git commands to generate.