]> git.pld-linux.org Git - packages/cacti-template-memcached.git/blob - cacti-template-memcached.spec
- release 1
[packages/cacti-template-memcached.git] / cacti-template-memcached.spec
1 %define         plugin memcached
2 Summary:        Memcached Cacti Template
3 Name:           cacti-plugin-%{plugin}
4 Version:        1.0
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/WWW
8 Source0:        http://content.dealnews.com/dealnews/developers/cacti-%{plugin}-%{version}.tar.gz
9 # Source0-md5:  1febadae299aff606860da60ef3bd80e
10 URL:            http://dealnews.com/developers/cacti/memcached.html
11 Requires:       cacti >= 0.8.6j
12 Requires:       cacti-add_template
13 Requires:       python-memcached
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         cactidir                /usr/share/cacti
18 %define         resourcedir             %{cactidir}/resource
19 %define         scriptsdir              %{cactidir}/scripts
20
21 %description
22 This template provides a host template and associated graphs for
23 graphing the output of the memcached stats command on individual
24 memcached installations.
25
26 Graphs are provided for Bytes Used with total capacity, Cache Hits and
27 Misses per second, Current Connections, Items Cached, Inbound and
28 Outbound Network Traffic (bits per second), and Requests per Second
29 for both the get and set commands.
30
31 %prep
32 %setup -q -n cacti-%{plugin}-%{version}
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
37 cp -a *.xml $RPM_BUILD_ROOT%{resourcedir}
38 install *.py $RPM_BUILD_ROOT%{scriptsdir}
39
40 %post
41 %{_sbindir}/cacti-add_template %{resourcedir}/cacti_memcached_host_template.xml
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc README
49 %attr(755,root,root) %{scriptsdir}/memcached.py
50 %{resourcedir}/cacti_memcached_host_template.xml
This page took 0.453886 seconds and 3 git commands to generate.