]> git.pld-linux.org Git - packages/cacti-template-varnish.git/blob - cacti-template-varnish.spec
- new
[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:        0.0.2
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/WWW
8 Source0:        http://forums.cacti.net/download.php?id=16163&/varnish-cacti-stats-%{version}.zip
9 # Source0-md5:  b7a4ff93877cbd395c58525887b52dd9
10 URL:            http://forums.cacti.net/viewtopic.php?t=31260
11 Requires:       cacti >= 0.8.6j
12 Requires:       cacti-add_template
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         cactidir                /usr/share/cacti
17 %define         resourcedir             %{cactidir}/resource
18 %define         scriptsdir              %{cactidir}/scripts
19
20 %description
21 Template for Cacti - Varnish Cache statistics.
22
23 %prep
24 %setup -q -n varnish-cacti-stats-%{version}
25
26 %install
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
29 cp -a templates/*.xml $RPM_BUILD_ROOT%{resourcedir}
30 install -p scripts/*.py $RPM_BUILD_ROOT%{scriptsdir}
31
32 %post
33 %{_sbindir}/cacti-add_template \
34         %{resourcedir}/cacti_data_template_varnish_statistics.xml \
35         %{resourcedir}/cacti_graph_template_varnish_-_cache_hitrate.xml
36         %{resourcedir}/cacti_graph_template_varnish_-_number_of_requests.xml
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %attr(755,root,root) %{scriptsdir}/get_varnish_stats.py
44 %{resourcedir}/*.xml
This page took 0.111547 seconds and 3 git commands to generate.