[Pkg-ofed-commits] [opensm] 02/07: Imported Debian patch 3.2.6-20090317-1
Ana Beatriz Guerrero López
ana at moszumanska.debian.org
Tue Jul 1 07:19:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
ana pushed a commit to branch master
in repository opensm.
commit f0c0a371d5dc9092c6ae8eac469828cbab97bda6
Author: Benoit Mortier <benoit.mortier at opensides.be>
Date: Wed Oct 21 11:31:00 2009 +0100
Imported Debian patch 3.2.6-20090317-1
---
debian/README.debian | 24 +++++++++++
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 46 +++++++++++++++++++++
debian/copyright | 64 +++++++++++++++++++++++++++++
debian/dirs | 2 +
debian/libopensm2-dev.install | 4 ++
debian/libopensm2.install | 1 +
debian/opensm-boot.init | 84 ++++++++++++++++++++++++++++++++++++++
debian/opensm-doc.docs | 3 ++
debian/opensm.default | 13 ++++++
debian/opensm.init | 84 ++++++++++++++++++++++++++++++++++++++
debian/opensm.install | 3 ++
debian/opensm.logrotate | 8 ++++
debian/opensm.postinst | 8 ++++
debian/opensm.postrm | 7 ++++
debian/rules | 94 +++++++++++++++++++++++++++++++++++++++++++
17 files changed, 451 insertions(+)
diff --git a/debian/README.debian b/debian/README.debian
new file mode 100644
index 0000000..750dac4
--- /dev/null
+++ b/debian/README.debian
@@ -0,0 +1,24 @@
+Configuring opensm
+------------------
+
+In order to configure opensm you must list the GUIDs of
+the ports if you want opensm to start on in /etc/default/opensm.
+
+You can find the GUIDs of your IB cards by running the following command:
+
+#ibstat -p
+
+eg
+
+#ibstat -p
+0x0002c9030002fb05
+0x0002c9030002fb06
+
+
+Ports can be listed in /etc/default/opensm as:
+
+PORTS="0x0002c9030002fb05 0x0002c9030002fb06"
+
+You can also use the keywords ALL or NONE to start
+opensm on all detected ports, or none of them.
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2bb303f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+opensm (3.2.6-20090317-1) unstable; urgency=low
+
+ * Initial release (Closes: #521418)
+
+ -- Benoit Mortier <benoit.mortier at opensides.be> Wed, 21 Oct 2009 11:31: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..e5013b2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: opensm
+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), autotools-dev, flex, bison, libibumad-dev, libibcommon-dev
+Standards-Version: 3.8.3
+Homepage: http://www.openfabrics.org
+
+Package: opensm
+Architecture: any
+Depends: ${misc:Depends}, libopensm2 (= ${binary:Version}), ${shlibs:Depends}, infiniband-diags
+Description: An Infiniband subnet manager
+ OpenSM provides an implementation of an Infiniband Subnet Manager (SM) and
+ Administrator (SA). One Subnet Manager is required to run on each Infiniband
+ subnet in order to initialize the Infiniband hardware.
+
+Package: opensm-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Description: Documentation for opensm
+ Documentation for the opensm Infiniband subnet manager.
+
+Package: libopensm2
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Infiniband subnet manager libraries
+ OpenSM provides an implementation of an Infiniband Subnet Manager (SM) and
+ Administrator (SA). One Subnet Manager is required to run on each Infiniband
+ subnet in order to initialize the Infiniband hardware.
+ .
+ This package contains shared libraries that are part of the opensm package
+ but are also used by other applications.
+
+Package: libopensm2-dev
+Section: libdevel
+Architecture: any
+Depends: libopensm2 (= ${binary:Version}), ${misc:Depends}
+Description: Header files for compiling against libopensm
+ OpenSM provides an implementation of an Infiniband Subnet Manager (SM) and
+ Administrator (SA). One Subnet Manager is required to run on each Infiniband
+ subnet in order to initialize the Infiniband hardware.
+ .
+ This package contains the header files for compiling applications
+ against libopensm.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ac6b28c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,64 @@
+This package was debianized by Guy Coates <gmpc at sanger.ac.uk> on
+Mon, 05 Jan 2009 15:14:26 +0000.
+
+It was downloaded from http://www.openfabrics.org
+
+Upstream Authors:
+
+Sasha Khapyorsky, Voltaire, sashak at voltaire.com
+
+Steve King, Intel
+Anil Keshavamurthy, Intel
+Eitan Zahavi, Mellanox Technologies, eitan at mellanox.co.il
+Yael Kalka, Mellanox Technologies, yael at mellanox.co.il
+Shahar Frank, Voltaire
+Hal Rosenstock, Voltaire halr at voltaire.com
+
+
+
+Copyright:
+
+ Copyright (c) 2004-2008 Voltaire, Inc. All rights reserved.
+ Copyright (c) 2002-2006 Mellanox Technologies LTD. All rights reserved.
+ Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
+ Copyright (c) 2007 Lawrence Livermore National Lab
+ Copyright (c) 2007 Silicon Graphics Inc. All rights reserved.
+ Copyright (c) 2007 Simula Research Laboratory. All rights reserved.
+ Copyright (c) 2007 The Regents of the University of California.
+ Copyright (c) 2008 Xsigo Systems Inc. All rights reserved.
+ Copyright (c) 2008 HNR Consulting. All rights reserved.
+
+License:
+
+ This software is available to you under a choice of one of two
+ licenses. You may choose to be licensed under the terms of the GNU
+ General Public License (GPL) Version 2, available from the file
+ /usr/share/common-licenses/GPL-2 on your Debian system, or the
+ OpenIB.org BSD license below:
+
+ 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.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
+
+
+The Debian packaging is copyright 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..fbcaf20
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,2 @@
+usr/sbin
+etc/opensm
diff --git a/debian/libopensm2-dev.install b/debian/libopensm2-dev.install
new file mode 100644
index 0000000..013afda
--- /dev/null
+++ b/debian/libopensm2-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
+usr/lib/lib*.la
diff --git a/debian/libopensm2.install b/debian/libopensm2.install
new file mode 100644
index 0000000..d0dbfd1
--- /dev/null
+++ b/debian/libopensm2.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
diff --git a/debian/opensm-boot.init b/debian/opensm-boot.init
new file mode 100644
index 0000000..93f32c4
--- /dev/null
+++ b/debian/opensm-boot.init
@@ -0,0 +1,84 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: opensm
+# Required-Start: $syslog
+# Required-Stop: $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Start opensm subnet manager.
+# Description: Enable opensm subnet manage.
+### END INIT INFO
+
+PORTS=""
+[ -f /etc/default/opensm ] && . /etc/default/opensm
+
+[ -x /usr/sbin/opensm ] || exit 0
+
+if [ ! -f /sys/class/infiniband_mad/abi_version ] ; then
+echo "No infiniband adapters found."
+exit 0
+fi
+
+
+start () {
+
+if [ "$PORTS" = "ALL" ]; then
+PORTS=`/usr/sbin/ibstat -p`
+fi
+
+if [ "$PORTS" = "NONE" ]; then
+echo "opensm disabled."
+exit 0
+fi
+
+for PORT in $PORTS ; do
+ echo -n "Starting opensm on $PORT: "
+ start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/opensm-$PORT --background --exec /usr/sbin/opensm -- -g $PORT -f /var/log/opensm.$PORT.log
+ RETVAL=$?
+ echo
+done
+}
+
+stop () {
+
+if [ "$PORTS" = "ALL" ]; then
+PORTS=`/usr/sbin/ibstat -p`
+fi
+
+if [ "$PORTS" = "NONE" ]; then
+ echo "opensm disabled."
+ exit 0
+fi
+for PORT in $PORTS ; do
+ echo -n "Shutting down opensm: "
+ start-stop-daemon --stop --pidfile /var/run/opensm-$PORT
+ RETVAL=$?
+ echo
+done
+}
+
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart | force-reload )
+ stop
+ start
+ ;;
+ reload)
+ echo "Reloading opensm configuration..."
+ killall -HUP opensm
+ RETVAL=$?
+ echo "done"
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|reload|force-reload}"
+ RETVAL=1
+ ;;
+esac
+
+exit $RETVAL;
diff --git a/debian/opensm-doc.docs b/debian/opensm-doc.docs
new file mode 100644
index 0000000..35f2381
--- /dev/null
+++ b/debian/opensm-doc.docs
@@ -0,0 +1,3 @@
+NEWS
+README
+doc
diff --git a/debian/opensm.default b/debian/opensm.default
new file mode 100644
index 0000000..8f09742
--- /dev/null
+++ b/debian/opensm.default
@@ -0,0 +1,13 @@
+# Lists gid the ports to start opensm on.
+# ibstat -p will list the gids on the system.
+# You can also specify ALL or NONE
+# ALL: Start opensm on all ports
+# NONE: Do no start opensm
+
+#PORTS="0x0002c9030002fce9 0x0002c9030002fb06"
+
+PORTS=ALL
+
+
+
+
diff --git a/debian/opensm.init b/debian/opensm.init
new file mode 100644
index 0000000..3e5ca0e
--- /dev/null
+++ b/debian/opensm.init
@@ -0,0 +1,84 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: opensm
+# Required-Start: $syslog
+# Required-Stop: $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Start opensm subnet manager.
+# Description: Enable opensm subnet manage.
+### END INIT INFO
+
+PORTS=""
+[ -f /etc/default/opensm ] && . /etc/default/opensm
+
+[ -x /usr/sbin/opensm ] || exit 0
+
+if [ ! -f /sys/class/infiniband_mad/abi_version ] ; then
+echo "No infiniband adapters found."
+exit 0
+fi
+
+
+start () {
+
+if [ "$PORTS" = "ALL" ]; then
+PORTS=`/usr/sbin/ibstat -p`
+fi
+
+if [ "$PORTS" = "NONE" ]; then
+echo "opensm disabled."
+exit 0
+fi
+
+for PORT in $PORTS ; do
+ echo -n "Starting opensm on $PORT: "
+ start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/opensm-$PORT --background --exec /usr/sbin/opensm -- -g $PORT -f /var/log/opensm.$PORT.log
+ RETVAL=$?
+ echo
+done
+}
+
+stop () {
+
+if [ "$PORTS" = "ALL" ]; then
+PORTS=`/usr/sbin/ibstat -p`
+fi
+
+if [ "$PORTS" = "NONE" ]; then
+ echo "opensm disabled."
+ exit 0
+fi
+for PORT in $PORTS ; do
+ echo -n "Shutting down opensm on $PORT: "
+ start-stop-daemon --stop --pidfile /var/run/opensm-$PORT
+ RETVAL=$?
+ echo
+done
+}
+
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart | force-reload )
+ stop
+ start
+ ;;
+ reload)
+ echo "Reloading opensm configuration..."
+ killall -HUP opensm
+ RETVAL=$?
+ echo "done"
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|reload|force-reload}"
+ RETVAL=1
+ ;;
+esac
+
+exit $RETVAL;
diff --git a/debian/opensm.install b/debian/opensm.install
new file mode 100644
index 0000000..c4cf6a4
--- /dev/null
+++ b/debian/opensm.install
@@ -0,0 +1,3 @@
+usr/sbin
+usr/share/man/man8
+etc/init.d/opensm-boot
diff --git a/debian/opensm.logrotate b/debian/opensm.logrotate
new file mode 100644
index 0000000..3329fe8
--- /dev/null
+++ b/debian/opensm.logrotate
@@ -0,0 +1,8 @@
+/var/log/opensm*.log {
+rotate 4
+weekly
+compress
+postrotate
+ /usr/bin/killall -SIGUSR1 /usr/sbin/opensm
+endscript
+}
diff --git a/debian/opensm.postinst b/debian/opensm.postinst
new file mode 100644
index 0000000..e46c3f4
--- /dev/null
+++ b/debian/opensm.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+. /usr/share/debconf/confmodule
+
+if [ -x "/etc/init.d/opensm-boot" ]; then
+update-rc.d opensm-boot start 24 S .
+fi
+
+#DEBHELPER#
diff --git a/debian/opensm.postrm b/debian/opensm.postrm
new file mode 100644
index 0000000..f62ed19
--- /dev/null
+++ b/debian/opensm.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+if [ "$1" = "purge" ] ; then
+ update-rc.d opensm-boot remove >/dev/null || exit $?
+fi
+
+#DEBHELPER#
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a43e058
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,94 @@
+#!/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: configure
+ dh_testdir
+ # Add here commands to configure the package.
+ ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" \
+ --sysconfdir=/etc --localstatedir=/var/run
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/opensm.sgml > opensm.1
+
+ touch $@
+
+clean:
+ 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
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ -find $(CURDIR) -type d -name ".svn" -exec rm -rf {} \; >/dev/null 2>&1
+
+ # Add here commands to install the package into debian/opensm.
+ $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+ cp $(CURDIR)/debian/opensm-boot.init $(CURDIR)/debian/tmp/etc/init.d/opensm-boot
+
+
+# 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
+ dh_installdebconf
+ dh_installlogrotate
+ dh_installinit
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/opensm.git
More information about the Pkg-ofed-commits
mailing list