]> git.pld-linux.org Git - packages/cacti-template-php-fpm.git/blob - cacti-template-php-fpm.spec
up to 0.4: supports polling over FCGI as well
[packages/cacti-template-php-fpm.git] / cacti-template-php-fpm.spec
1 %define         template        php-fpm
2 %include        /usr/lib/rpm/macros.perl
3 Summary:        PHP-FPM Pool Status template for Cacti
4 Name:           cacti-template-%{template}
5 Version:        0.4
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        https://github.com/glensc/cacti-template-php-fpm/archive/%{version}.tar.gz
10 # Source0-md5:  0f36fb8eefa60395a858f021b71260a5
11 URL:            https://github.com/glensc/cacti-template-php-fpm
12 BuildRequires:  rpm-perlprov >= 4.1-13
13 BuildRequires:  rpmbuild(macros) >= 1.654
14 Requires:       cacti >= 0.8.8a
15 Suggests:       perl-FCGI-Client
16 Suggests:       perl-libwww
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
25 PHP-FPM Pool Status template for Cacti.
26
27 %prep
28 %setup -q
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
33 install -p get_php_fpm_status.pl $RPM_BUILD_ROOT%{scriptsdir}
34 cp -p cacti_graph_template_php-fpm_pool_status.xml $RPM_BUILD_ROOT%{resourcedir}
35
36 %post
37 %cacti_import_template %{resourcedir}/cacti_graph_template_php-fpm_pool_status.xml
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc README.md
45 %attr(755,root,root) %{scriptsdir}/get_php_fpm_status.pl
46 %{resourcedir}/*.xml
This page took 0.080516 seconds and 3 git commands to generate.