[Pkg-nagios-changes] [pkg-nagios-plugins] 121/413: Add patch from Josep Rodin to check_smb_disk (#425129)

Jan Wagner waja at moszumanska.debian.org
Tue Nov 26 23:13:13 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 721938b40548d3b4b0ae865cb79177ba0366b83b
Author: Alexander Wirt <formorer at formorer.de>
Date:   Fri May 2 05:37:40 2008 +0000

    Add patch from Josep Rodin to check_smb_disk (#425129)
---
 debian/changelog                            |  8 +++++++-
 debian/control                              |  2 +-
 debian/patches/00list                       |  1 +
 debian/patches/23_check_smb_password.dpatch | 18 ++++++++++++++++++
 4 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7984864..67861a5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 nagios-plugins (1.4.11-3) UNRELEASED; urgency=low
 
+  [ Jan Wagner ]
   * remove unneeded debhelper scripts from rules
   * remove senseless comments from patches
   * add missing descriptions to patches
@@ -7,7 +8,12 @@ nagios-plugins (1.4.11-3) UNRELEASED; urgency=low
     <robe at amd.co.at> for reporting it (Closes: #407310)
   * remove sarge handholding for configfiles migration 
 
- -- Jan Wagner <waja at cyconet.org>  Fri, 07 Mar 2008 17:37:49 +0100
+  [ Alexander Wirt ]
+  * Call smbclient with -N (supress password prompt) if no password is
+    supplied. Thanks to Josip Rodin for the patch (Closes #425129) 
+  * Add myself to uploaders
+
+ -- Alexander Wirt <formorer at debian.org>  Fri, 02 May 2008 07:35:54 +0200
 
 nagios-plugins (1.4.11-2) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index d35c220..77fc6cb 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: nagios-plugins
 Section: net
 Priority: extra
 Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel at lists.alioth.debian.org>
-Uploaders: Sean Finney <seanius at debian.org>, Guido Trotter <ultrotter at debian.org>, Jan Wagner <waja at cyconet.org>
+Uploaders: Sean Finney <seanius at debian.org>, Guido Trotter <ultrotter at debian.org>, Jan Wagner <waja at cyconet.org>, Alexander Wirt <formorer at debian.org>
 Build-Depends: debhelper (>= 4.0.0), dpatch (>= 2.0.9), autotools-dev, libldap2-dev, libpq-dev, libmysqlclient15-dev | libmysqlclient12-dev | libmysqlclient-dev, libradius1-dev, libkrb5-dev, libnet-snmp-perl, procps, coreutils, mawk | awk
 Homepage: http://nagiosplug.sourceforge.net
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-nagios/nagios-plugins/
diff --git a/debian/patches/00list b/debian/patches/00list
index d438f80..d23abed 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -3,6 +3,7 @@
 14_check_log_paths.dpatch
 18_check_game_cmdline.dpatch
 22_check_smb_hostaddress.dpatch
+23_check_smb_password.dpatch
 26_implicit-basename.dpatch
 27_check_radius_segfault.dpatch
 28_check_pgsql_include_for_8.3.dpatch
diff --git a/debian/patches/23_check_smb_password.dpatch b/debian/patches/23_check_smb_password.dpatch
new file mode 100755
index 0000000..35a2e07
--- /dev/null
+++ b/debian/patches/23_check_smb_password.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 23_check_smb_password.dpatch by Alexander Wirt <formorer at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: If there is no password set call smbclient with -N (suppress password prompt)
+
+ at DPATCH@
+diff -urNad nagios-plugins-1.4.11~/plugins-scripts/check_disk_smb.pl nagios-plugins-1.4.11/plugins-scripts/check_disk_smb.pl
+--- nagios-plugins-1.4.11~/plugins-scripts/check_disk_smb.pl	2008-05-02 07:13:08.000000000 +0200
++++ nagios-plugins-1.4.11/plugins-scripts/check_disk_smb.pl	2008-05-02 07:15:23.000000000 +0200
+@@ -79,6 +79,7 @@
+ 
+ ($opt_p) || ($opt_p = shift) || ($opt_p = "");
+ my $pass = $1 if ($opt_p =~ /(.*)/);
++$pass = "-N" if ($opt_p eq "");
+ 
+ ($opt_w) || ($opt_w = shift) || ($opt_w = 85);
+ my $warn = $1 if ($opt_w =~ /^([0-9]{1,2}\%?|100\%?|[0-9]+[kMG])$/);

-- 
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