]>
Commit | Line | Data |
---|---|---|
de02bf48 ER |
1 | %define template apache |
2 | Summary: Apache Stats | |
3 | Name: cacti-template-%{template} | |
4 | Version: 0.6 | |
c07f546f | 5 | Release: 3 |
de02bf48 ER |
6 | License: GPL v2 |
7 | Group: Applications/WWW | |
8 | Source0: http://forums.cacti.net/download/file.php?id=301#/apachestats-0.4.zip | |
9 | # Source0-md5: 6d032addcc40db63c279fdcb2dbcb786 | |
10 | Source1: http://forums.cacti.net/download/file.php?id=7674#/ss_apache_stats-wget.zip | |
11 | # Source1-md5: cb460f3c00707dcb960efe8c4ceff0c1 | |
12 | Source2: http://forums.cacti.net/download/file.php?id=7534#/SS_Apache_Stats-curl.zip | |
13 | # Source2-md5: 71112bf32403e548120b3b76eadd5a75 | |
64b7dc0a | 14 | Patch0: fixes.patch |
de02bf48 ER |
15 | URL: http://forums.cacti.net/about17995.html |
16 | BuildRequires: rpmbuild(macros) >= 1.554 | |
9de5d9b5 | 17 | BuildRequires: unzip |
de02bf48 ER |
18 | Requires: cacti >= 0.8.7g-6 |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _sysconfdir /etc/webapps/cacti | |
23 | %define cactidir /usr/share/cacti | |
24 | %define resourcedir %{cactidir}/resource | |
25 | %define scriptsdir %{cactidir}/scripts | |
26 | ||
27 | %description | |
28 | Apache Stats for Cacti (PHP Script Server Version). | |
29 | ||
30 | %prep | |
31 | %setup -qc -a1 -a2 | |
32 | mv apachestats-0.4/* . | |
64b7dc0a | 33 | %patch0 -p1 |
de02bf48 ER |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{resourcedir},%{scriptsdir}} | |
38 | install -p ss_apache_stats.php $RPM_BUILD_ROOT%{scriptsdir} | |
c07f546f | 39 | cp -p SS_Apache_Stats/cacti_host_template_webserver_apache_5min.xml \ |
de02bf48 ER |
40 | $RPM_BUILD_ROOT%{resourcedir} |
41 | ||
42 | %post | |
eb5dae34 | 43 | %cacti_import_template %{resourcedir}/cacti_host_template_webserver_apache_5min.xml |
de02bf48 ER |
44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
eb5dae34 | 50 | %doc README.txt docs/* |
de02bf48 ER |
51 | %attr(755,root,root) %{scriptsdir}/* |
52 | %{resourcedir}/*.xml |