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