[Pkg-ofed-commits] [ibacm] 02/02: Initial Debian packaging

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Wed Aug 20 15:30:02 UTC 2014


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

ana pushed a commit to branch master
in repository ibacm.

commit 45d95e3746b6a1968880584bd5c341c1ebebca82
Author: Ana Guerrero López <ana at ekaia.org>
Date:   Wed Aug 20 16:38:54 2014 +0200

    Initial Debian packaging
---
 debian/changelog           |  5 ++++
 debian/compat              |  1 +
 debian/control             | 21 +++++++++++++++
 debian/copyright           | 64 ++++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/add_pthread | 10 ++++++++
 debian/patches/fix_init    | 13 ++++++++++
 debian/patches/series      |  2 ++
 debian/postinst            | 41 +++++++++++++++++++++++++++++
 debian/postrm              | 41 +++++++++++++++++++++++++++++
 debian/rules               |  4 +++
 debian/source/format       |  1 +
 debian/watch               |  5 ++++
 12 files changed, 208 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0218237
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ibacm (1.0.9-1) unstable; urgency=low
+
+  * Initial release (Closes: #758617)
+
+ -- Ana Beatriz Guerrero Lopez <ana at debian.org>  Wed, 20 Aug 2014 15:58:11 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ea371a5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: ibacm
+Section: net
+Priority: optional
+Maintainer: Ana Beatriz Guerrero Lopez <ana at debian.org>
+Build-Depends: debhelper (>= 9), autotools-dev, libibverbs-dev, libibumad-dev, dh-autoreconf
+Standards-Version: 3.9.5
+Homepage: https://www.openfabrics.org/downloads/rdmacm/
+Vcs-Git: git://anonscm.debian.org/pkg-ofed/ibacm.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ofed/ibacm.git
+
+Package: ibacm
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: InfiniBand Communication Manager Assistant (ACM)
+ The IB ACM implements and provides a framework for name, address, and
+ route (path) resolution services over InfiniBand.
+ It is intended to address connection setup scalability issues running
+ MPI applications on large clusters.  The IB ACM provides information
+ needed to establish a connection, but does not implement the CM protocol.
+ A primary user of the ibacm service is the librdmacm library.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..538c041
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,64 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ibacm
+Source: https://www.openfabrics.org/downloads/rdmacm/
+
+Files: *
+Copyright: 2009-2014 Intel Corporation.  All rights reserved.
+           2013 Mellanox Technologies LTD. All rights reserved.
+           Sean Hefty      <sean.hefty at intel.com>
+License: BSD-2-clause or GPL-2
+ libmlx5 is licensed 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:
+ .
+ ==================================================================
+ .
+ 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.
+ .
+ ==================================================================
+
+Files: debian/*
+Copyright: 2014 Ana Beatriz Guerrero Lopez <ana at debian.org>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/patches/add_pthread b/debian/patches/add_pthread
new file mode 100644
index 0000000..ccb22c1
--- /dev/null
+++ b/debian/patches/add_pthread
@@ -0,0 +1,10 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -5,6 +5,7 @@ AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DSYS
+ bin_PROGRAMS = util/ib_acme
+ sbin_PROGRAMS = svc/ibacm
+ svc_ibacm_SOURCES = src/acm.c src/acm_util.c
++svc_ibacm_LDADD = -lpthread
+ util_ib_acme_SOURCES = src/acme.c src/libacm.c linux/libacm_linux.c src/parse.c
+ svc_ibacm_CFLAGS = $(AM_CFLAGS)
+ util_ib_acme_CFLAGS = $(AM_CFLAGS) -DACME_PRINTS
diff --git a/debian/patches/fix_init b/debian/patches/fix_init
new file mode 100644
index 0000000..2b55f3e
--- /dev/null
+++ b/debian/patches/fix_init
@@ -0,0 +1,13 @@
+--- a/ibacm.init.in
++++ b/ibacm.init.in
+@@ -9,8 +9,8 @@
+ # Provides:       ibacm
+ # Default-Start: 2 3 4 5
+ # Default-Stop: 0 1 6
+-# Required-Start: @rdmascript@ $network
+-# Required-Stop: @rdmascript@ $network
++# Required-Start: @rdmascript@ $network $remote_fs
++# Required-Stop: @rdmascript@ $network $remote_fs
+ # Should-Start:
+ # Should-Stop:
+ # Short-Description: Starts and stops the InfiniBand ACM service
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f12856c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+fix_init
+add_pthread
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..1b14ec4
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,41 @@
+
+#!/bin/sh
+# postinst script for ibacm
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+if [ -x "/etc/init.d/ibacm" ]; then
+	update-rc.d ibacm defaults >/dev/null || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..472d216
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postrm script for ibacm
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+if [ "$1" = "purge" ] ; then
+        update-rc.d ibacm remove >/dev/null
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3d22bc5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@  --with autoreconf
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9a70a86
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+# watch control file for uscan
+version=3
+
+https://www.openfabrics.org/downloads/rdmacm/ibacm-(.*)\.(?:tar.gz|tar.bz2|tar.xz)
+

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



More information about the Pkg-ofed-commits mailing list