[packages/cacti-template-varnish] Rel 3
arekm
arekm at pld-linux.org
Wed May 20 21:02:05 CEST 2026
commit f3bd1cf67fda96eaed462f2a4f63e4664846a8c0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 20 21:01:49 2026 +0200
Rel 3
cacti-template-varnish.spec | 4 +++-
shebang.patch | 19 +++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/cacti-template-varnish.spec b/cacti-template-varnish.spec
index 6d3c16a..48d6c3e 100644
--- a/cacti-template-varnish.spec
+++ b/cacti-template-varnish.spec
@@ -2,11 +2,12 @@
Summary: Varnish Cache statistics template for Cacti
Name: cacti-template-%{template}
Version: 5
-Release: 2
+Release: 3
License: GPL v2
Group: Applications/WWW
Source0: https://github.com/glensc/cacti-template-varnish/archive/v%{version}/%{template}-%{version}.tar.gz
# Source0-md5: 3ff32e25c6ea52ca46f4eda4139ea400
+Patch0: shebang.patch
URL: https://github.com/glensc/cacti-template-varnish
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.554
@@ -25,6 +26,7 @@ Template for Cacti - Varnish Cache statistics.
%prep
%setup -qc
mv cacti-template-varnish-*/* -v .
+%patch -P0 -p1
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/shebang.patch b/shebang.patch
new file mode 100644
index 0000000..61ee1a2
--- /dev/null
+++ b/shebang.patch
@@ -0,0 +1,19 @@
+--- a/get_varnish_stats.py
++++ b/get_varnish_stats.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python2
+ # vim: set encoding=utf-8:
+ # Author: Elan Ruusamäe <glen at delfi.ee>
+ # URL: https://github.com/glensc/cacti-template-varnish
+--- a/cacti_host_template_varnish.xml
++++ b/cacti_host_template_varnish.xml
+@@ -7823,7 +7823,7 @@
+ <hash_030024359867089c0559bbc7794f0ad9eb8df7>
+ <name>Varnish Stats</name>
+ <type_id>1</type_id>
+- <input_string>/usr/bin/python <path_cacti>/scripts/get_varnish_stats.py -h <hostname> -p <port> <varnish2></input_string>
++ <input_string>/usr/bin/python2 <path_cacti>/scripts/get_varnish_stats.py -h <hostname> -p <port> <varnish2></input_string>
+ <fields>
+ <hash_0700249fa26add6e0e00188a8d7412401d4dea>
+ <name>IP address of Varnish instance</name>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cacti-template-varnish.git/commitdiff/f3bd1cf67fda96eaed462f2a4f63e4664846a8c0
More information about the pld-cvs-commit
mailing list