]> git.pld-linux.org Git - packages/cacti-template-memcached.git/blame - cacti-template-memcached.spec
- release 5
[packages/cacti-template-memcached.git] / cacti-template-memcached.spec
CommitLineData
b11e5cac
ER
1%define plugin memcached
2Summary: Memcached Cacti Template
b9ed98cb 3Name: cacti-template-%{plugin}
b11e5cac 4Version: 1.0
f9569a72 5Release: 5
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
b9ed98cb
ER
12BuildRequires: rpmbuild(macros) >= 1.554
13Requires: cacti >= 0.8.7e-8
b11e5cac 14Requires: python-memcached
b9ed98cb 15Obsoletes: cacti-plugin-memcached
b11e5cac
ER
16BuildArch: noarch
17BuildRoot: %{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
24This template provides a host template and associated graphs for
25graphing the output of the memcached stats command on individual
26memcached installations.
27
28Graphs are provided for Bytes Used with total capacity, Cache Hits and
29Misses per second, Current Connections, Items Cached, Inbound and
30Outbound Network Traffic (bits per second), and Requests per Second
31for both the get and set commands.
32
33%prep
34%setup -q -n cacti-%{plugin}-%{version}
b65ce528 35%patch0 -p1
b11e5cac
ER
36
37%install
38rm -rf $RPM_BUILD_ROOT
39install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
b9ed98cb
ER
40cp -p *.xml $RPM_BUILD_ROOT%{resourcedir}
41install -p *.py $RPM_BUILD_ROOT%{scriptsdir}
b11e5cac
ER
42
43%post
b9ed98cb 44%cacti_import_template %{resourcedir}/cacti_memcached_host_template.xml
b11e5cac
ER
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
51%doc README
52%attr(755,root,root) %{scriptsdir}/memcached.py
53%{resourcedir}/cacti_memcached_host_template.xml
This page took 0.077503 seconds and 4 git commands to generate.