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