[Pkg-nagios-changes] [pkg-nagios-plugins] 293/413: patch accepted upstream

Jan Wagner waja at moszumanska.debian.org
Tue Nov 26 23:13:34 UTC 2013


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-nagios-plugins.

commit 49bd4b96a7e7d215bda7a90aedc2bf60907fb169
Author: Jan Wagner <waja at cyconet.org>
Date:   Fri Feb 24 12:03:19 2012 +0000

    patch accepted upstream
---
 debian/changelog                           |  2 +-
 debian/patches/00list                      |  2 +-
 debian/patches/04_check_snmp_labels.dpatch | 18 ----------------
 debian/patches/18_check_snmp_labels.dpatch | 34 ++++++++++++++++++++++++++++++
 4 files changed, 36 insertions(+), 20 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6e6a630..6518995 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,7 +11,7 @@ nagios-plugins (1.4.15-6) UNRELEASED; urgency=low
   * Add build-arch and build-indep targets to debian/rules
   * Add 03_check_disk_smb_perfdata.dpatch to add perfdata to check_disk_smb
    (Closes: #654259), thanks to G. Leimua
-  * Add 04_check_snmp_labels.dpatch to fix multiple labels in check_snmp
+  * Add 18_check_snmp_labels.dpatch to fix multiple labels in check_snmp
    (Closes: #647020), thanks to Oskar Liljeblad
 
  -- Jan Wagner <waja at cyconet.org>  Wed, 07 Sep 2011 15:33:55 +0200
diff --git a/debian/patches/00list b/debian/patches/00list
index cae78e8..f19666c 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -1,6 +1,5 @@
 01_subst.in.dpatch
 02_check_icmp_links.dpatch
-04_check_snmp_labels.dpatch
 # commited upstream
 05_check_linux_raid_fix_striped.dpatch
 10_check_disk_smb_spaces.dpatch
@@ -13,3 +12,4 @@
 17_check_tcp_fix_duplicate_cert_message.dpatch
 17_check_smtp_fix_duplicate_cert_message.dpatch
 03_check_disk_smb_perfdata.dpatch
+18_check_snmp_labels.dpatch
diff --git a/debian/patches/04_check_snmp_labels.dpatch b/debian/patches/04_check_snmp_labels.dpatch
deleted file mode 100755
index 88a1d31..0000000
--- a/debian/patches/04_check_snmp_labels.dpatch
+++ /dev/null
@@ -1,18 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 04_check_snmp_labels.dpatch by Oskar Liljeblad <oskar at osk.mine.nu>
-##
-## DP: check_snmp: fix multiple labels. (http://bugs.debian.org/647020)
-
- at DPATCH@
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nagios-plugins-1.4.15~/plugins/check_snmp.c nagios-plugins-1.4.15/plugins/check_snmp.c
---- nagios-plugins-1.4.15~/plugins/check_snmp.c	2010-07-27 22:47:16.000000000 +0200
-+++ nagios-plugins-1.4.15/plugins/check_snmp.c	2012-02-24 01:08:16.000000000 +0100
-@@ -753,7 +753,7 @@
- 					if (labels == NULL)
- 						die (STATE_UNKNOWN, _("Could not reallocate labels\n"));
- 				}
--				labels++;
-+				nlabels++;
- 				ptr = thisarg (ptr);
- 				if (strstr (ptr, "'") == ptr)
- 					labels[nlabels - 1] = ptr + 1;
diff --git a/debian/patches/18_check_snmp_labels.dpatch b/debian/patches/18_check_snmp_labels.dpatch
new file mode 100755
index 0000000..3d943cf
--- /dev/null
+++ b/debian/patches/18_check_snmp_labels.dpatch
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 18_check_snmp_labels.dpatch
+## From 0e3fa54782f8cbb47af058c4bf13688e8b23865b Mon Sep 17 00:00:00 2001
+## From: Holger Weiss <holger at zedat.fu-berlin.de>
+## Date: Fri, 24 Feb 2012 12:29:00 +0100
+## Subject: [PATCH] Accept multiple labels specified with "-l"
+## X-Git-Url: http://nagiosplug.git.sourceforge.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=patch;h=0e3fa54782f8cbb47af058c4bf13688e8b23865b
+##
+## DP: check_snmp: fix multiple labels. (http://bugs.debian.org/647020)
+
+ at DPATCH@
+
+--- a/plugins/check_snmp.c
++++ b/plugins/check_snmp.c
+@@ -749,7 +749,7 @@ process_arguments (int argc, char **argv)
+ 					if (labels == NULL)
+ 						die (STATE_UNKNOWN, _("Could not reallocate labels\n"));
+ 				}
+-				labels++;
++				nlabels++;
+ 				ptr = thisarg (ptr);
+ 				if (strstr (ptr, "'") == ptr)
+ 					labels[nlabels - 1] = ptr + 1;
+@@ -1072,8 +1072,8 @@ print_help (void)
+ 
+ 	printf ("\n");
+ 	printf ("%s\n", _("Notes:"));
+-	printf (" %s\n", _("- Multiple OIDs may be indicated by a comma or space-delimited list (lists with"));
+-	printf ("   %s %i %s\n", _("internal spaces must be quoted). Maximum:"), MAX_OIDS, _("OIDs."));
++	printf (" %s\n", _("- Multiple OIDs (and labels) may be indicated by a comma or space-delimited  "));
++	printf ("   %s %i %s\n", _("list (lists with internal spaces must be quoted). Maximum:"), MAX_OIDS, _("OIDs."));
+ 
+ 	printf(" -%s", UT_THRESHOLDS_NOTES);
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins.git



More information about the Pkg-nagios-changes mailing list