]>
Commit | Line | Data |
---|---|---|
b94c096a | 1 | %define plugin lighttpd |
08841bf1 | 2 | %define php_min_version 5.0.0 |
08841bf1 ER |
3 | Summary: Template for Cacti - Lighttpd stats |
4 | Name: cacti-template-%{plugin} | |
b94c096a | 5 | Version: 1.0 |
d5f52222 | 6 | Release: 9 |
b94c096a ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | # http://forums.cacti.net/download.php?id=8273 | |
10 | Source0: lighttpd_stats_%{version}.tar.gz | |
11 | # Source0-md5: 09aa6716901e08301517004de099d240 | |
08841bf1 | 12 | Patch0: fixes.patch |
51b53f33 | 13 | URL: http://forums.cacti.net/viewtopic.php?t=19676 |
08841bf1 ER |
14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
15 | BuildRequires: rpmbuild(macros) >= 1.554 | |
16 | Requires: cacti >= 0.8.7e-8 | |
d5f52222 | 17 | Requires: php(core) >= %{php_min_version} |
19070f17 | 18 | Requires: php(pcre) |
08841bf1 | 19 | Obsoletes: cacti-plugin-lighttpd |
b94c096a ER |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define cactidir /usr/share/cacti | |
13c541b5 | 24 | %define resourcedir %{cactidir}/resource |
b94c096a ER |
25 | %define scriptsdir %{cactidir}/scripts |
26 | ||
27 | %description | |
28 | This package provides a script server script and cacti templates for | |
29 | graphing statistics for a lighttpd webserver. | |
30 | ||
31 | %prep | |
32 | %setup -q -n lighttpd_stats_%{version} | |
3f7577ba | 33 | %patch0 -p1 |
b94c096a ER |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}} | |
08841bf1 ER |
38 | cp -p *.xml $RPM_BUILD_ROOT%{resourcedir} |
39 | install -p *.php $RPM_BUILD_ROOT%{scriptsdir} | |
b94c096a ER |
40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
6bf99f2a | 44 | %post |
08841bf1 | 45 | %cacti_import_template %{resourcedir}/cacti_host_template_webserver_lighttpd.xml |
6bf99f2a | 46 | |
b94c096a ER |
47 | %files |
48 | %defattr(644,root,root,755) | |
49 | %doc README INSTALL CHANGELOG | |
e55bf963 | 50 | %attr(755,root,root) %{scriptsdir}/ss_lighttpd_stats.php |
b94c096a | 51 | %{resourcedir}/cacti_host_template_webserver_lighttpd.xml |