packages: cacti-template-apache/cacti-template-apache.spec (NEW) - combine ...
glen
glen at pld-linux.org
Thu Jan 6 14:09:23 CET 2011
Author: glen Date: Thu Jan 6 13:09:23 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- combine some versions to have script server with file_get_contents as fetch mode
---- Files affected:
packages/cacti-template-apache:
cacti-template-apache.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/cacti-template-apache/cacti-template-apache.spec
diff -u /dev/null packages/cacti-template-apache/cacti-template-apache.spec:1.1
--- /dev/null Thu Jan 6 14:09:23 2011
+++ packages/cacti-template-apache/cacti-template-apache.spec Thu Jan 6 14:09:17 2011
@@ -0,0 +1,59 @@
+# $Revision$, $Date$
+%define template apache
+Summary: Apache Stats
+Name: cacti-template-%{template}
+Version: 0.6
+Release: 0.1
+License: GPL v2
+Group: Applications/WWW
+Source0: http://forums.cacti.net/download/file.php?id=301#/apachestats-0.4.zip
+# Source0-md5: 6d032addcc40db63c279fdcb2dbcb786
+Source1: http://forums.cacti.net/download/file.php?id=7674#/ss_apache_stats-wget.zip
+# Source1-md5: cb460f3c00707dcb960efe8c4ceff0c1
+Source2: http://forums.cacti.net/download/file.php?id=7534#/SS_Apache_Stats-curl.zip
+# Source2-md5: 71112bf32403e548120b3b76eadd5a75
+URL: http://forums.cacti.net/about17995.html
+BuildRequires: rpmbuild(macros) >= 1.554
+Requires: cacti >= 0.8.7g-6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _sysconfdir /etc/webapps/cacti
+%define cactidir /usr/share/cacti
+%define resourcedir %{cactidir}/resource
+%define scriptsdir %{cactidir}/scripts
+
+%description
+Apache Stats for Cacti (PHP Script Server Version).
+
+%prep
+%setup -qc -a1 -a2
+mv apachestats-0.4/* .
+
+%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 xml/cacti_host_template_webserver_apache.xml \
+ $RPM_BUILD_ROOT%{resourcedir}
+
+%post
+%cacti_import_template %{resourcedir}/cacti_host_template_webserver_apache.xml
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%attr(755,root,root) %{scriptsdir}/*
+%{resourcedir}/*.xml
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/01/06 13:09:17 glen
+- combine some versions to have script server with file_get_contents as fetch mode
================================================================
More information about the pld-cvs-commit
mailing list