]> git.pld-linux.org Git - packages/cacti-template-apache.git/blob - cacti-template-apache.spec
- BR: unzip
[packages/cacti-template-apache.git] / cacti-template-apache.spec
1 %define         template        apache
2 Summary:        Apache Stats
3 Name:           cacti-template-%{template}
4 Version:        0.6
5 Release:        2
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
14 Patch0:         fixes.patch
15 URL:            http://forums.cacti.net/about17995.html
16 BuildRequires:  rpmbuild(macros) >= 1.554
17 BuildRequires:  unzip
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/* .
33 %patch0 -p1
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}
39 cp -a SS_Apache_Stats/cacti_host_template_webserver_apache_5min.xml \
40         $RPM_BUILD_ROOT%{resourcedir}
41
42 %post
43 %cacti_import_template %{resourcedir}/cacti_host_template_webserver_apache_5min.xml
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README.txt docs/*
51 %attr(755,root,root) %{scriptsdir}/*
52 %{resourcedir}/*.xml
This page took 0.074182 seconds and 4 git commands to generate.