]> git.pld-linux.org Git - packages/cacti-template-varnish.git/blobdiff - cacti-template-varnish.spec
- use rpm macros for cacti_import_template
[packages/cacti-template-varnish.git] / cacti-template-varnish.spec
index 9bb199f60880c1be459340e6e33b2ae29d009350..c4f219a5f0f5f7b7e47ec9514afc566fce5ee033 100644 (file)
@@ -1,15 +1,16 @@
 %define                template        varnish
 Summary:       Varnish Cache statistics template for Cacti
 Name:          cacti-template-%{template}
-Version:       0.0.2
-Release:       1
+Version:       0.0.3
+Release:       0.5
 License:       GPL v2
 Group:         Applications/WWW
-Source0:       http://forums.cacti.net/download.php?id=16163&/varnish-cacti-stats-%{version}.zip
-# Source0-md5: b7a4ff93877cbd395c58525887b52dd9
-URL:           http://forums.cacti.net/viewtopic.php?t=31260
-Requires:      cacti >= 0.8.6j
-Requires:      cacti-add_template
+Source1:       get_varnish_stats.py
+Source2:       cacti_host_template_varnish.xml
+URL:           http://forums.cacti.net/viewtopic.php?p=182152
+BuildRequires: rpmbuild(macros) >= 1.554
+Requires:      cacti >= 0.8.7e-8
+Conflicts:     cacti-spine < 0.8.7e-3
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -20,20 +21,23 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Template for Cacti - Varnish Cache statistics.
 
+Uses advanced template from
+<http://forums.cacti.net/viewtopic.php?p=182152>
+
+Combines script to pull data via varnish telnet port from
+<http://forums.cacti.net/viewtopic.php?t=31260>
+
 %prep
-%setup -q -n varnish-cacti-stats-%{version}
+%setup -qcT
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
-cp -a templates/*.xml $RPM_BUILD_ROOT%{resourcedir}
-install -p scripts/*.py $RPM_BUILD_ROOT%{scriptsdir}
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{scriptsdir}
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{resourcedir}
 
 %post
-%{_sbindir}/cacti-add_template \
-       %{resourcedir}/cacti_data_template_varnish_statistics.xml \
-       %{resourcedir}/cacti_graph_template_varnish_-_cache_hitrate.xml
-       %{resourcedir}/cacti_graph_template_varnish_-_number_of_requests.xml
+%cacti_import_template %{resourcedir}/cacti_host_template_varnish.xml
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.141033 seconds and 4 git commands to generate.