]>
Commit | Line | Data |
---|---|---|
b2ebf224 | 1 | %define template php-fpm |
33301c5f | 2 | Summary: PHP-FPM Pool Status template for Cacti |
b2ebf224 | 3 | Name: cacti-template-%{template} |
a7df9b98 | 4 | Version: 0.6.0 |
2aa516fc | 5 | Release: 1 |
b2ebf224 ER |
6 | License: GPL v2 |
7 | Group: Applications/WWW | |
2aa516fc | 8 | Source0: https://github.com/glensc/cacti-template-php-fpm/archive/%{version}/%{template}-%{version}.tar.gz |
a7df9b98 | 9 | # Source0-md5: d3f32f5e2fccb4169901a73f54ba20cc |
35bb28cc | 10 | URL: https://github.com/glensc/cacti-template-php-fpm |
b2ebf224 | 11 | BuildRequires: rpm-perlprov >= 4.1-13 |
33301c5f ER |
12 | BuildRequires: rpmbuild(macros) >= 1.654 |
13 | Requires: cacti >= 0.8.8a | |
14 | Suggests: perl-FCGI-Client | |
35f45764 | 15 | Suggests: perl-Moose |
33301c5f | 16 | Suggests: perl-libwww |
b2ebf224 ER |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define cactidir /usr/share/cacti | |
21 | %define resourcedir %{cactidir}/resource | |
22 | %define scriptsdir %{cactidir}/scripts | |
23 | ||
24 | %description | |
33301c5f | 25 | PHP-FPM Pool Status template for Cacti. |
b2ebf224 ER |
26 | |
27 | %prep | |
33301c5f | 28 | %setup -q |
b2ebf224 ER |
29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}} | |
35bb28cc | 33 | install -p get_php_fpm_status.pl $RPM_BUILD_ROOT%{scriptsdir} |
33301c5f | 34 | cp -p cacti_graph_template_php-fpm_pool_status.xml $RPM_BUILD_ROOT%{resourcedir} |
b2ebf224 ER |
35 | |
36 | %post | |
33301c5f | 37 | %cacti_import_template %{resourcedir}/cacti_graph_template_php-fpm_pool_status.xml |
b2ebf224 ER |
38 | |
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
35bb28cc ER |
44 | %doc README.md |
45 | %attr(755,root,root) %{scriptsdir}/get_php_fpm_status.pl | |
b2ebf224 | 46 | %{resourcedir}/*.xml |