[Pkg-ofed-commits] [infiniband-diags] 01/07: Imported Debian patch 1.4.4-20090314-1

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Tue Jul 1 07:17:55 UTC 2014


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

ana pushed a commit to branch master
in repository infiniband-diags.

commit 536f479c67a335ddf39f539886f0dbee2bae8c28
Author: Benoit Mortier <benoit.mortier at opensides.be>
Date:   Wed Oct 21 11:23:00 2009 +0100

    Imported Debian patch 1.4.4-20090314-1
---
 debian/README.source                               |   2 +
 debian/changelog                                   |   5 +
 debian/compat                                      |   1 +
 debian/control                                     |  15 +++
 debian/copyright                                   |  60 ++++++++++
 debian/dirs                                        |   1 +
 debian/docs                                        |   1 +
 debian/infiniband-diags.manpages                   |   2 +
 debian/lintian-overrides                           |   1 +
 debian/patches/00list                              |  17 +++
 debian/patches/01_remove_rpath.dpatch              |  42 +++++++
 debian/patches/02_ibcheckerrors_bashisms.dpatch    |  26 +++++
 debian/patches/03_ibcheckerrs_bashisms.dpatch      |  60 ++++++++++
 debian/patches/04_ibchecknet_bashisms.dpatch       |  26 +++++
 debian/patches/05_ibchecknode_bashisms.dpatch      |  46 ++++++++
 debian/patches/06_ibcheckport_bashisms.dpatch      |  46 ++++++++
 debian/patches/07_ibcheckportstate_bashisms.dpatch |  46 ++++++++
 debian/patches/08_ibcheckportwidth_bashisms.dpatch |  46 ++++++++
 debian/patches/09_ibcheckstate_bashisms.dpatch     |  26 +++++
 debian/patches/10_ibcheckwidth_bashisms.dpatch     |  26 +++++
 debian/patches/11_ibclearcounters_bashisms.dpatch  |  26 +++++
 debian/patches/12_ibclearerrors_bashisms.dpatch    |  26 +++++
 debian/patches/13_ibdatacounters_bashisms.dpatch   |  26 +++++
 debian/patches/14_ibdatacounts_bashisms.dpatch     |  47 ++++++++
 debian/patches/15_ibhosts_bashisms.dpatch          |  19 ++++
 debian/patches/16_ibrouters_bashisms.dpatch        |  19 ++++
 debian/patches/17_ibswitches_bashisms.dpatch       |  19 ++++
 debian/rules                                       | 122 +++++++++++++++++++++
 debian/set_nodedesc.8                              |  28 +++++
 29 files changed, 827 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..48b599a
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,2 @@
+/usr/share/doc/dpatch/README.source.gz
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..41e055b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+infiniband-diags (1.4.4-20090314-1) unstable; urgency=low
+
+  * Initial release (Closes: #539803)
+
+ -- Benoit Mortier <benoit.mortier at opensides.be>  Wed, 21 Oct 2009 11:23:00 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8fd399e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,15 @@
+Source: infiniband-diags
+Section: net
+Priority: extra
+Maintainer: OFED and Debian Developement and Discussion <pkg-ofed-devel at lists.alioth.debian.org>
+Uploaders: Benoit Mortier <benoit.mortier at opensides.be>, Guy Coates <gmpc at sanger.ac.uk>, Mario Lang <mlang at debian.org>
+Build-Depends: debhelper (>= 7), automake, chrpath, dpatch, libibcommon-dev, libibumad-dev, libibmad-dev, libopensm2-dev (>=3.2.5)
+Standards-Version: 3.8.3
+Homepage: http://www.openfabrics.org
+
+Package: infiniband-diags
+Architecture: i386 ia64 amd64 powerpc
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
+Description: InfiniBand diagnostic programs
+ This package provides diagnostic programs and scripts needed to
+ diagnose an InfiniBand subnet.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4b5152e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,60 @@
+This package was debianized by Guy Coates <gmpc at sanger.ac.uk> on
+Thu, 08 Jan 2009 17:18:22 +0000.
+
+It was downloaded from http://www.openfabrics.org/downloads/OFED/ofed-1.4/OFED-1.4.tgz
+
+Upstream Authors:
+ Sasha Khapyorsky, sashak at voltaire.com
+
+ 
+Copyright:
+
+ Copyright (c) 2006 Mellanox Technologies. All rights reserved.
+ Copyright (c) 2004-2008 Voltaire, Inc.  All rights reserved.
+ Copyright (c) 2007 Xsigo Systems Inc.  All rights reserved.
+ Copyright (c) 2008 Lawrence Livermore National Security.
+ Copyright (c) 2006,2007 The Regents of the University of California
+ 
+License:
+
+This software is available to you under a choice of two licences.
+You may chose to be licensed under the terms of the the 
+OpenIB.org BSD license show below, or the GNU General Public License 
+(GPL) Version 2, available in the file 
+/usr/share/common-licenses/GPL-2 on your Debian system.
+
+==================================================================
+
+                       OpenIB.org BSD license
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+  * Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+
+  * Redistributions in binary form must reproduce the above
+    copyright notice, this list of conditions and the following
+    disclaimer in the documentation and/or other materials provided
+    with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+==================================================================
+
+
+The Debian packaging is Copyright (C) 2009, Genome Research Ltd and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..236670a
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
+usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/infiniband-diags.manpages b/debian/infiniband-diags.manpages
new file mode 100644
index 0000000..44b1e2e
--- /dev/null
+++ b/debian/infiniband-diags.manpages
@@ -0,0 +1,2 @@
+debian/set_nodedesc.8
+
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..a217ccb
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1 @@
+infiniband-diags: binary-or-shlib-defines-rpath ./usr/sbin/ibnetdiscover /usr/lib
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..cd4eb9e
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,17 @@
+01_remove_rpath
+02_ibcheckerrors_bashisms
+03_ibcheckerrs_bashisms
+04_ibchecknet_bashisms
+05_ibchecknode_bashisms
+06_ibcheckport_bashisms
+07_ibcheckportstate_bashisms
+08_ibcheckportwidth_bashisms
+09_ibcheckstate_bashisms
+10_ibcheckwidth_bashisms
+11_ibclearcounters_bashisms
+12_ibclearerrors_bashisms
+13_ibdatacounters_bashisms
+14_ibdatacounts_bashisms
+15_ibhosts_bashisms
+16_ibrouters_bashisms
+17_ibswitches_bashisms
diff --git a/debian/patches/01_remove_rpath.dpatch b/debian/patches/01_remove_rpath.dpatch
new file mode 100644
index 0000000..dcc57b0
--- /dev/null
+++ b/debian/patches/01_remove_rpath.dpatch
@@ -0,0 +1,42 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_remove_rpath.dpatch by  <benoit at catbert.opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove the rpath parameter from Makefile.am
+
+ at DPATCH@
+
+--- trunk/Makefile.am	2009-07-29 14:58:01.000000000 +0200
++++ trunk/Makefile.am	2009-07-31 23:35:56.000000000 +0200
+@@ -37,7 +37,6 @@
+ 
+ src_ibnetdiscover_SOURCES = src/ibnetdiscover.c src/grouping.c src/ibdiag_common.c
+ src_ibnetdiscover_CFLAGS = -Wall $(DBGFLAGS)
+-src_ibnetdiscover_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_ibping_SOURCES = src/ibping.c src/ibdiag_common.c
+ src_ibping_CFLAGS = -Wall $(DBGFLAGS)
+@@ -56,7 +55,6 @@
+ 
+ src_ibtracert_SOURCES = src/ibtracert.c src/ibdiag_common.c
+ src_ibtracert_CFLAGS = -Wall $(DBGFLAGS)
+-src_ibtracert_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_perfquery_SOURCES = src/perfquery.c src/ibdiag_common.c
+ src_perfquery_CFLAGS = -Wall $(DBGFLAGS)
+@@ -69,15 +67,12 @@
+ 
+ src_smpquery_SOURCES = src/smpquery.c src/ibdiag_common.c
+ src_smpquery_CFLAGS = -Wall $(DBGFLAGS)
+-src_smpquery_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_saquery_SOURCES = src/saquery.c src/ibdiag_common.c
+ src_saquery_CFLAGS = -Wall -DOSM_VENDOR_INTF_OPENIB -DVENDOR_RMPP_SUPPORT -DDUAL_SIDED_RMPP $(DBGFLAGS)
+-src_saquery_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_ibsendtrap_SOURCES = src/ibsendtrap.c src/ibdiag_common.c
+ src_ibsendtrap_CFLAGS = -Wall $(DBGFLAGS)
+-src_ibsendtrap_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+ 
+ src_vendstat_SOURCES = src/vendstat.c src/ibdiag_common.c
+ src_vendstat_CFLAGS = -Wall $(DBGFLAGS)
diff --git a/debian/patches/02_ibcheckerrors_bashisms.dpatch b/debian/patches/02_ibcheckerrors_bashisms.dpatch
new file mode 100644
index 0000000..f9cee78
--- /dev/null
+++ b/debian/patches/02_ibcheckerrors_bashisms.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_ibcheckerrors_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibcheckerrors script
+
+ at DPATCH@
+
+--- trunk/scripts/ibcheckerrors.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibcheckerrors.in.new	2009-12-20 19:12:11.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-b] [-v] [-N | -nocolor]"\
+ 	    "[<topology-file> | -C ca_name -P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
+ }
+ 
+-function user_abort() {
++user_abort() {
+ 	echo "Aborted"
+ 	exit 1
+ }
diff --git a/debian/patches/03_ibcheckerrs_bashisms.dpatch b/debian/patches/03_ibcheckerrs_bashisms.dpatch
new file mode 100644
index 0000000..d9f2174
--- /dev/null
+++ b/debian/patches/03_ibcheckerrs_bashisms.dpatch
@@ -0,0 +1,60 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_ibcheckerrs_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibcheckerrs script
+
+ at DPATCH@
+
+--- trunk/scripts/ibcheckerrs.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibcheckerrs.in.new	2009-12-20 19:13:14.000000000 +0100
+@@ -2,14 +2,14 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-b] [-v] [-G] [-T <threshold_file>]" \
+ 	    "[-s(how_thresholds)] [-N \| -nocolor] [-C ca_name] [-P ca_port]" \
+ 	    "[-t(imeout) timeout_ms] <lid|guid> [<port>]"
+ 	exit -1
+ }
+ 
+-function green() {
++green() {
+ 	if [ "$bw" = "yes" ]; then
+ 		if [ "$verbose" = "yes" ]; then
+ 			echo $1
+@@ -17,19 +17,19 @@
+ 		return
+ 	fi
+ 	if [ "$verbose" = "yes" ]; then
+-		echo -e "\\033[1;032m" $1 "\\033[0;39m"
++		printf "\\033[1;032m" $1 "\\033[0;39m"
+ 	fi
+ }
+ 
+-function red() {
++red() {
+ 	if [ "$bw" = "yes" ]; then
+ 		echo $1
+ 		return
+ 	fi
+-	echo -e "\\033[1;031m" $1 "\\033[0;39m"
++	printf "\\033[1;031m" $1 "\\033[0;39m"
+ }
+ 
+-function show_thresholds() {
++show_thresholds() {
+ 	echo "SymbolErrors=$SymbolErrors"
+ 	echo "LinkRecovers=$LinkRecovers"
+ 	echo "LinkDowned=$LinkDowned"
+@@ -44,7 +44,7 @@
+ 	echo "VL15Dropped=$VL15Dropped"
+ }
+ 
+-function get_thresholds() {
++get_thresholds() {
+ 	. $1
+ }
+ 
diff --git a/debian/patches/04_ibchecknet_bashisms.dpatch b/debian/patches/04_ibchecknet_bashisms.dpatch
new file mode 100644
index 0000000..c096ed1
--- /dev/null
+++ b/debian/patches/04_ibchecknet_bashisms.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_ibchecknet_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibchecknet script
+
+ at DPATCH@
+
+--- trunk/scripts/ibchecknet.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibchecknet.in.new	2009-12-20 19:14:01.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor]" \
+ 	    "[<topology-file> | -C ca_name -P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
+ }
+ 
+-function user_abort() {
++user_abort() {
+ 	echo "Aborted"
+ 	exit 1
+ }
diff --git a/debian/patches/05_ibchecknode_bashisms.dpatch b/debian/patches/05_ibchecknode_bashisms.dpatch
new file mode 100644
index 0000000..f974aee
--- /dev/null
+++ b/debian/patches/05_ibchecknode_bashisms.dpatch
@@ -0,0 +1,46 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_ibchecknode_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibchecknode script
+
+ at DPATCH@
+
+--- trunk/scripts/ibchecknode.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibchecknode.in.new	2009-12-20 19:14:49.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor] [-G]" \
+ 	    "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid>"
+ 	exit -1
+ }
+ 
+-function green() {
++green() {
+ 	if [ "$bw" = "yes" ]; then
+ 		if [ "$verbose" = "yes" ]; then
+ 			echo $1
+@@ -16,16 +16,16 @@
+ 		return
+ 	fi
+ 	if [ "$verbose" = "yes" ]; then
+-		echo -e "\\033[1;032m" $1 "\\033[0;39m"
++		printf "\\033[1;032m" $1 "\\033[0;39m"
+ 	fi
+ }
+ 
+-function red() {
++red() {
+ 	if [ "$bw" = "yes" ]; then
+ 		echo $1
+ 		return
+ 	fi
+-	echo -e "\\033[1;031m" $1 "\\033[0;39m"
++	printf "\\033[1;031m" $1 "\\033[0;39m"
+ }
+ 
+ guid_addr=""
diff --git a/debian/patches/06_ibcheckport_bashisms.dpatch b/debian/patches/06_ibcheckport_bashisms.dpatch
new file mode 100644
index 0000000..972f3c6
--- /dev/null
+++ b/debian/patches/06_ibcheckport_bashisms.dpatch
@@ -0,0 +1,46 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 06_ibcheckport_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibcheckport script
+
+ at DPATCH@
+
+--- trunk/scripts/ibcheckport.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibcheckport.in.new	2009-12-20 19:21:21.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor] [-G]" \
+ 	   "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid> <port>"
+ 	exit -1
+ }
+ 
+-function green() {
++green() {
+ 	if [ "$bw" = "yes" ]; then
+ 		if [ "$verbose" = "yes" ]; then
+ 			echo $1
+@@ -16,16 +16,16 @@
+ 		return
+ 	fi
+ 	if [ "$verbose" = "yes" ]; then
+-		echo -e "\\033[1;032m" $1 "\\033[0;39m"
++		printf "\\033[1;032m" $1 "\\033[0;39m"
+ 	fi
+ }
+ 
+-function red() {
++red() {
+ 	if [ "$bw" = "yes" ]; then
+ 		echo $1
+ 		return
+ 	fi
+-	echo -e "\\033[1;031m" $1 "\\033[0;39m"
++	printf "\\033[1;031m" $1 "\\033[0;39m"
+ }
+ 
+ guid_addr=""
diff --git a/debian/patches/07_ibcheckportstate_bashisms.dpatch b/debian/patches/07_ibcheckportstate_bashisms.dpatch
new file mode 100644
index 0000000..1e290fc
--- /dev/null
+++ b/debian/patches/07_ibcheckportstate_bashisms.dpatch
@@ -0,0 +1,46 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 07_ibcheckportstate_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibcheckportstate script
+
+ at DPATCH@
+
+--- trunk/scripts/ibcheckportstate.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibcheckportstate.in.new	2009-12-20 19:22:20.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor] [-G]" \
+ 	   "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid> <port>"
+ 	exit -1
+ }
+ 
+-function green() {
++green() {
+ 	if [ "$bw" = "yes" ]; then
+ 		if [ "$verbose" = "yes" ]; then
+ 			echo $1
+@@ -16,16 +16,16 @@
+ 		return
+ 	fi
+ 	if [ "$verbose" = "yes" ]; then
+-		echo -e "\\033[1;032m" $1 "\\033[0;39m"
++		printf "\\033[1;032m" $1 "\\033[0;39m"
+ 	fi
+ }
+ 
+-function red() {
++red() {
+ 	if [ "$bw" = "yes" ]; then
+ 		echo $1
+ 		return
+ 	fi
+-	echo -e "\\033[1;031m" $1 "\\033[0;39m"
++	printf "\\033[1;031m" $1 "\\033[0;39m"
+ }
+ 
+ guid_addr=""
diff --git a/debian/patches/08_ibcheckportwidth_bashisms.dpatch b/debian/patches/08_ibcheckportwidth_bashisms.dpatch
new file mode 100644
index 0000000..a37f3a5
--- /dev/null
+++ b/debian/patches/08_ibcheckportwidth_bashisms.dpatch
@@ -0,0 +1,46 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 08_ibcheckportwidth_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibcheckportwidth script
+
+ at DPATCH@
+
+--- trunk/scripts/ibcheckportwidth.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibcheckportwidth.in.new	2009-12-20 19:23:15.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor] [-G]" \
+ 	   "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid> <port>"
+ 	exit -1
+ }
+ 
+-function green() {
++green() {
+ 	if [ "$bw" = "yes" ]; then
+ 		if [ "$verbose" = "yes" ]; then
+ 			echo $1
+@@ -16,16 +16,16 @@
+ 		return
+ 	fi
+ 	if [ "$verbose" = "yes" ]; then
+-		echo -e "\\033[1;032m" $1 "\\033[0;39m"
++		printf "\\033[1;032m" $1 "\\033[0;39m"
+ 	fi
+ }
+ 
+-function red() {
++red() {
+ 	if [ "$bw" = "yes" ]; then
+ 		echo $1
+ 		return
+ 	fi
+-	echo -e "\\033[1;031m" $1 "\\033[0;39m"
++	printf "\\033[1;031m" $1 "\\033[0;39m"
+ }
+ 
+ guid_addr=""
diff --git a/debian/patches/09_ibcheckstate_bashisms.dpatch b/debian/patches/09_ibcheckstate_bashisms.dpatch
new file mode 100644
index 0000000..e4f7086
--- /dev/null
+++ b/debian/patches/09_ibcheckstate_bashisms.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 09_ibcheckstate_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibcheckstate script
+
+ at DPATCH@
+
+--- trunk/scripts/ibcheckstate.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibcheckstate.in.new	2009-12-20 19:24:50.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor]" \
+ 	    "[<topology-file> | -C ca_name -P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
+ }
+ 
+-function user_abort() {
++user_abort() {
+ 	echo "Aborted"
+ 	exit 1
+ }
diff --git a/debian/patches/10_ibcheckwidth_bashisms.dpatch b/debian/patches/10_ibcheckwidth_bashisms.dpatch
new file mode 100644
index 0000000..246771a
--- /dev/null
+++ b/debian/patches/10_ibcheckwidth_bashisms.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_ibcheckwidth_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibcheckwidth script
+
+ at DPATCH@
+
+--- trunk/scripts/ibcheckwidth.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibcheckwidth.in.new	2009-12-20 19:25:24.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor]" \
+ 	    "[<topology-file> \| -C ca_name -P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
+ }
+ 
+-function user_abort() {
++user_abort() {
+ 	echo "Aborted"
+ 	exit 1
+ }
diff --git a/debian/patches/11_ibclearcounters_bashisms.dpatch b/debian/patches/11_ibclearcounters_bashisms.dpatch
new file mode 100644
index 0000000..5d8b9d6
--- /dev/null
+++ b/debian/patches/11_ibclearcounters_bashisms.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 11_ibclearcounters_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibclearcounters script
+
+ at DPATCH@
+
+--- trunk/scripts/ibclearcounters.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibclearcounters.in.new	2009-12-20 19:26:00.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [<topology-file>" \
+ 	    "| -C ca_name -P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
+ }
+ 
+-function user_abort() {
++user_abort() {
+ 	echo "Aborted"
+ 	exit 1
+ }
diff --git a/debian/patches/12_ibclearerrors_bashisms.dpatch b/debian/patches/12_ibclearerrors_bashisms.dpatch
new file mode 100644
index 0000000..0b5a360
--- /dev/null
+++ b/debian/patches/12_ibclearerrors_bashisms.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_ibclearerrors_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibclearerrors script
+
+ at DPATCH@
+
+--- trunk/scripts/ibclearerrors.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibclearerrors.in.new	2009-12-20 19:26:35.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-N | -nocolor] [<topology-file>" \
+ 	    "| -C ca_name -P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
+ }
+ 
+-function user_abort() {
++user_abort() {
+ 	echo "Aborted"
+ 	exit 1
+ }
diff --git a/debian/patches/13_ibdatacounters_bashisms.dpatch b/debian/patches/13_ibdatacounters_bashisms.dpatch
new file mode 100644
index 0000000..41c715c
--- /dev/null
+++ b/debian/patches/13_ibdatacounters_bashisms.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 13_ibdatacounters_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibdatacounters script
+
+ at DPATCH@
+
+--- trunk/scripts/ibdatacounters.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibdatacounters.in.new	2009-12-20 19:27:22.000000000 +0100
+@@ -2,13 +2,13 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-b] [-v] [-N | -nocolor]" \
+ 	    "[<topology-file> \| -C ca_name -P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
+ }
+ 
+-function user_abort() {
++user_abort() {
+ 	echo "Aborted"
+ 	exit 1
+ }
diff --git a/debian/patches/14_ibdatacounts_bashisms.dpatch b/debian/patches/14_ibdatacounts_bashisms.dpatch
new file mode 100644
index 0000000..10aa23d
--- /dev/null
+++ b/debian/patches/14_ibdatacounts_bashisms.dpatch
@@ -0,0 +1,47 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 14_ibdatacounts_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibdatacounts script
+
+ at DPATCH@
+
+--- trunk/scripts/ibdatacounts.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibdatacounts.in.new	2009-12-20 19:28:18.000000000 +0100
+@@ -2,14 +2,14 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [-b] [-v] [-G] [-N | -nocolor]" \
+ 	    "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid>" \
+ 	    "[<port>]"
+ 	exit -1
+ }
+ 
+-function green() {
++green() {
+ 	if [ "$bw" = "yes" ]; then
+ 		if [ "$verbose" = "yes" ]; then
+ 			echo $1
+@@ -17,16 +17,16 @@
+ 		return
+ 	fi
+ 	if [ "$verbose" = "yes" ]; then
+-		echo -e "\\033[1;032m" $1 "\\033[0;39m"
++		printf "\\033[1;032m" $1 "\\033[0;39m"
+ 	fi
+ }
+ 
+-function red() {
++red() {
+ 	if [ "$bw" = "yes" ]; then
+ 		echo $1
+ 		return
+ 	fi
+-	echo -e "\\033[1;031m" $1 "\\033[0;39m"
++	printf "\\033[1;031m" $1 "\\033[0;39m"
+ }
+ 
+ guid_addr=""
diff --git a/debian/patches/15_ibhosts_bashisms.dpatch b/debian/patches/15_ibhosts_bashisms.dpatch
new file mode 100644
index 0000000..168ce6b
--- /dev/null
+++ b/debian/patches/15_ibhosts_bashisms.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 15_ibhosts_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibhosts script
+
+ at DPATCH@
+
+--- trunk/scripts/ibhosts.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibhosts.in.new	2009-12-20 19:28:45.000000000 +0100
+@@ -2,7 +2,7 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [<topology-file> | -C ca_name" \
+ 	    "-P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
diff --git a/debian/patches/16_ibrouters_bashisms.dpatch b/debian/patches/16_ibrouters_bashisms.dpatch
new file mode 100644
index 0000000..9db7fb5
--- /dev/null
+++ b/debian/patches/16_ibrouters_bashisms.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 16_ibrouters_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibrouters script
+
+ at DPATCH@
+
+--- trunk/scripts/ibrouters.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibrouters.in.new	2009-12-20 19:29:52.000000000 +0100
+@@ -2,7 +2,7 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [<topology-file> | -C ca_name" \
+ 	    "-P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
diff --git a/debian/patches/17_ibswitches_bashisms.dpatch b/debian/patches/17_ibswitches_bashisms.dpatch
new file mode 100644
index 0000000..0f46684
--- /dev/null
+++ b/debian/patches/17_ibswitches_bashisms.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 17_ibswitches_bashisms.dpatch by  <benoit.mortier at opensides.be>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct bashims in ibswitches script
+
+ at DPATCH@
+
+--- trunk/scripts/ibswitches.in	2009-07-29 14:58:00.000000000 +0200
++++ trunk/scripts/ibswitches.in.new	2009-12-20 19:34:04.000000000 +0100
+@@ -2,7 +2,7 @@
+ 
+ IBPATH=${IBPATH:- at IBSCRIPTPATH@}
+ 
+-function usage() {
++usage() {
+ 	echo Usage: `basename $0` "[-h] [<topology-file> | -C ca_name" \
+ 	    "-P ca_port -t(imeout) timeout_ms]"
+ 	exit -1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..432d873
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,122 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
+
+
+config.status: patch configure
+	dh_testdir
+	# Add here commands to configure the package.
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" --with-perl-installdir=/usr/share/perl5 --sbindir=/usr/sbin
+
+
+build: build-stamp
+
+build-stamp:  config.status 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#docbook-to-man debian/infiniband-diags.sgml > infiniband-diags.1
+
+	touch $@
+
+clean: clean-patched unpatch
+clean-patched:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.sub config.guess
+
+	dh_clean 
+
+
+patch: patch-stamp
+patch-stamp:
+	dpatch apply-all
+	dpatch cat-all >patch-stamp
+
+unpatch:
+	dpatch deapply-all
+	rm -rf patch-stamp debian/patched
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep  
+	dh_installdirs
+
+	# Add here commands to install the package into debian/infiniband-diags.
+	$(MAKE) DESTDIR=$(CURDIR)/debian/infiniband-diags install
+	mv debian/infiniband-diags/usr/sbin/ibdiscover.pl debian/infiniband-diags/usr/sbin/ibdiscover
+	mv debian/infiniband-diags/usr/sbin/ibqueryerrors.pl debian/infiniband-diags/usr/sbin/ibqueryerrors
+	mv debian/infiniband-diags/usr/sbin/ibswportwatch.pl debian/infiniband-diags/usr/sbin/ibswportwatch
+	mv debian/infiniband-diags/usr/sbin/iblinkinfo.pl debian/infiniband-diags/usr/sbin/iblinkinfo
+	mv debian/infiniband-diags/usr/sbin/ibprintswitch.pl debian/infiniband-diags/usr/sbin/ibprintswitch
+	mv debian/infiniband-diags/usr/sbin/ibprintca.pl debian/infiniband-diags/usr/sbin/ibprintca
+	mv debian/infiniband-diags/usr/sbin/ibprintrt.pl debian/infiniband-diags/usr/sbin/ibprintrt
+	mv debian/infiniband-diags/usr/sbin/ibfindnodesusing.pl debian/infiniband-diags/usr/sbin/ibfindnodesusing
+	mv debian/infiniband-diags/usr/sbin/ibidsverify.pl debian/infiniband-diags/usr/sbin/ibidsverify
+	mv debian/infiniband-diags/usr/sbin/check_lft_balance.pl debian/infiniband-diags/usr/sbin/check_lft_balance
+	mv debian/infiniband-diags/usr/sbin/dump_lfts.sh debian/infiniband-diags/usr/sbin/dump_lfts
+	mv debian/infiniband-diags/usr/sbin/dump_mfts.sh debian/infiniband-diags/usr/sbin/dump_mfts
+	mv debian/infiniband-diags/usr/sbin/set_nodedesc.sh debian/infiniband-diags/usr/sbin/set_nodedesc
+	chrpath -d debian/infiniband-diags/usr/sbin/ibtracert
+	chrpath -d debian/infiniband-diags/usr/sbin/saquery
+	chrpath -d debian/infiniband-diags/usr/sbin/smpquery
+
+	install -D -m 644 debian/lintian-overrides debian/infiniband-diags/usr/share/lintian/overrides/infiniband-diags
+
+# Build architecture-independent files here.
+binary-indep: install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_install --list-missing --sourcedir=debian/infiniband-diags
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_perl
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
diff --git a/debian/set_nodedesc.8 b/debian/set_nodedesc.8
new file mode 100644
index 0000000..0db55c3
--- /dev/null
+++ b/debian/set_nodedesc.8
@@ -0,0 +1,28 @@
+.TH set_nodedesc 8 "January 26, 2009" "infiniband-diags" "User Commands"
+
+.SH NAME
+set_nodedesc \-  set the node_desc field of infiniband HCA
+
+.SH SYNOPSIS
+.B set_nodedesc [-hv] [<name>]
+
+.SH DESCRIPTION
+.PP
+Sets the node_desc filed of infiniband HCAs.
+
+.SH OPTIONS
+
+.TP 
+.B -h 
+help
+.TP
+.B -v 
+view all node descriptors
+
+.SH AUTHOR
+.TP
+Guy Coates  < gmpc at sanger.ac.uk >
+
+
+
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/infiniband-diags.git



More information about the Pkg-ofed-commits mailing list