]> git.pld-linux.org Git - packages/cacti-template-apache.git/blame - cacti-template-apache.spec
- release 3
[packages/cacti-template-apache.git] / cacti-template-apache.spec
CommitLineData
de02bf48
ER
1%define template apache
2Summary: Apache Stats
3Name: cacti-template-%{template}
4Version: 0.6
c07f546f 5Release: 3
de02bf48
ER
6License: GPL v2
7Group: Applications/WWW
8Source0: http://forums.cacti.net/download/file.php?id=301#/apachestats-0.4.zip
9# Source0-md5: 6d032addcc40db63c279fdcb2dbcb786
10Source1: http://forums.cacti.net/download/file.php?id=7674#/ss_apache_stats-wget.zip
11# Source1-md5: cb460f3c00707dcb960efe8c4ceff0c1
12Source2: http://forums.cacti.net/download/file.php?id=7534#/SS_Apache_Stats-curl.zip
13# Source2-md5: 71112bf32403e548120b3b76eadd5a75
64b7dc0a 14Patch0: fixes.patch
de02bf48
ER
15URL: http://forums.cacti.net/about17995.html
16BuildRequires: rpmbuild(macros) >= 1.554
9de5d9b5 17BuildRequires: unzip
de02bf48
ER
18Requires: cacti >= 0.8.7g-6
19BuildArch: noarch
20BuildRoot: %{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
28Apache Stats for Cacti (PHP Script Server Version).
29
30%prep
31%setup -qc -a1 -a2
32mv apachestats-0.4/* .
64b7dc0a 33%patch0 -p1
de02bf48
ER
34
35%install
36rm -rf $RPM_BUILD_ROOT
37install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{resourcedir},%{scriptsdir}}
38install -p ss_apache_stats.php $RPM_BUILD_ROOT%{scriptsdir}
c07f546f 39cp -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
46rm -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
This page took 0.103977 seconds and 4 git commands to generate.