[packages/cacti-template-haproxy] generate perl deps for agent
glen
glen at pld-linux.org
Thu May 12 10:50:21 CEST 2016
commit 1b3ffcadc8da59f790ffd23a2b08bb189c3aa574
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu May 12 11:14:32 2016 +0300
generate perl deps for agent
bang.patch | 7 +++++++
cacti-template-haproxy.spec | 8 +++++---
2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/cacti-template-haproxy.spec b/cacti-template-haproxy.spec
index e6a56d2..a1d1df2 100644
--- a/cacti-template-haproxy.spec
+++ b/cacti-template-haproxy.spec
@@ -1,18 +1,19 @@
# TODO
# - enable agent in snmpd
%define plugin haproxy
-%include /usr/lib/rpm/macros.php
+%include /usr/lib/rpm/macros.perl
Summary: Template for Cacti - HAProxy
Name: cacti-template-%{plugin}
Version: 0.1
-Release: 0.1
+Release: 0.2
License: GPL v2
Group: Applications/WWW
# the templates were last modified Oct 25, 2010, there's no point using newer version tarball
Source0: http://www.haproxy.org/download/1.6/src/haproxy-1.6.3.tar.gz
# Source0-md5: 3362d1e268c78155c2474cb73e7f03f9
+Patch0: bang.patch
URL: https://github.com/haproxy/haproxy/tree/master/contrib/netsnmp-perl
-BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.554
Requires: cacti >= 0.8.7e-8
BuildArch: noarch
@@ -38,6 +39,7 @@ SNMPd agent to provide HAProxy statistics
%prep
%setup -qc
mv haproxy-*/contrib/netsnmp-perl/* .
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/bang.patch b/bang.patch
new file mode 100644
index 0000000..df35c4a
--- /dev/null
+++ b/bang.patch
@@ -0,0 +1,7 @@
+--- cacti-template-haproxy-0.1/haproxy.pl~ 2015-12-27 16:04:17.000000000 +0200
++++ cacti-template-haproxy-0.1/haproxy.pl 2016-05-12 11:13:27.940400801 +0300
+@@ -1,3 +1,4 @@
++#!/usr/bin/perl
+ #
+ # Net-SNMP perl plugin for Haproxy
+ # Version 0.30
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cacti-template-haproxy.git/commitdiff/1b3ffcadc8da59f790ffd23a2b08bb189c3aa574
More information about the pld-cvs-commit
mailing list