Summary: Apache Stats
Name: cacti-template-%{template}
Version: 0.6
-Release: 1
+Release: 3
License: GPL v2
Group: Applications/WWW
Source0: http://forums.cacti.net/download/file.php?id=301#/apachestats-0.4.zip
# Source1-md5: cb460f3c00707dcb960efe8c4ceff0c1
Source2: http://forums.cacti.net/download/file.php?id=7534#/SS_Apache_Stats-curl.zip
# Source2-md5: 71112bf32403e548120b3b76eadd5a75
+Patch0: fixes.patch
URL: http://forums.cacti.net/about17995.html
BuildRequires: rpmbuild(macros) >= 1.554
+BuildRequires: unzip
Requires: cacti >= 0.8.7g-6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -qc -a1 -a2
mv apachestats-0.4/* .
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{resourcedir},%{scriptsdir}}
install -p ss_apache_stats.php $RPM_BUILD_ROOT%{scriptsdir}
-cp -a SS_Apache_Stats/cacti_host_template_webserver_apache_5min.xml \
+cp -p SS_Apache_Stats/cacti_host_template_webserver_apache_5min.xml \
$RPM_BUILD_ROOT%{resourcedir}
%post