[Pkg-ofed-commits] [libmlx5] 01/01: Add initial Debian packaging

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Sat Jul 26 23:06:38 UTC 2014


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

ana pushed a commit to branch master
in repository libmlx5.

commit 399b1abbb09ae067dba85dbe9552f7d291331912
Author: Ana Guerrero López <ana at ekaia.org>
Date:   Sun Jul 27 01:06:47 2014 +0200

    Add initial Debian packaging
---
 debian/changelog                             |  5 +++
 debian/compat                                |  1 +
 debian/control                               | 49 ++++++++++++++++++++++
 debian/copyright                             | 63 ++++++++++++++++++++++++++++
 debian/libmlx5-1.install                     |  2 +
 debian/libmlx5-dev.install                   |  1 +
 debian/patches/driver-plugin-directory.patch | 10 +++++
 debian/patches/series                        |  1 +
 debian/rules                                 |  9 ++++
 debian/source/format                         |  1 +
 debian/watch                                 |  3 ++
 11 files changed, 145 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5364184
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libmlx5 (1.0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #756019)
+
+ -- Ana Beatriz Guerrero Lopez <ana at debian.org>  Fri, 25 Jul 2014 16:03:59 +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..9b4f84b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,49 @@
+Source: libmlx5
+Section: libs
+Priority: optional
+Maintainer: OFED and Debian Developement and Discussion <pkg-ofed-devel at lists.alioth.debian.org>
+Uploaders: Ana Beatriz Guerrero Lopez <ana at debian.org>
+Build-Depends: debhelper (>= 9), autotools-dev, libibverbs-dev
+Standards-Version: 3.9.5
+Homepage: https://www.openfabrics.org/downloads/mlx5/
+Vcs-Git: git://anonscm.debian.org/pkg-ofed/libml5.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ofed/libmlx5.git
+
+Package: libmlx5-1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Userspace driver for Mellanox Connect-IB InfiniBand HCAs
+ libmlx5 is a device-specific driver for Mellanox Connect-IB InfiniBand
+ host channel adapters (HCAs) for the libibverbs library.  This allows
+ userspace processes to access Mellanox HCA hardware directly with
+ low latency and low overhead.
+ .
+ This package contains the loadable plug-in.
+
+Package: libmlx5-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libmlx5-1 (= ${binary:Version})
+Description: Development files for the libmlx5 driver
+ libmlx5 is a device-specific driver for Mellanox Connect-IB InfiniBand
+ host channel adapters (HCAs) for the libibverbs library.  This allows
+ userspace processes to access Mellanox HCA hardware directly with
+ low latency and low overhead.
+ .
+ This package contains static versions of libmlx5 that may be linked
+ directly to an application, which may be useful for debugging.
+
+Package: libmlx5-1-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, libmlx5-1 (= ${binary:Version})
+Description: Debugging symbols for the libmlx5 driver
+ libmlx5 is a device-specific driver for Mellanox Connect-IB InfiniBand
+ host channel adapters (HCAs) for the libibverbs library.  This allows
+ userspace processes to access Mellanox HCA hardware directly with
+ low latency and low overhead.
+ .
+ This package contains the debugging symbols associated with
+ libmlx5-1. They will automatically be used by gdb for debugging
+ libmlx5-related issues.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8250939
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,63 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libmlx5
+Source: https://www.openfabrics.org/downloads/mlx5/
+
+Files: *
+Copyright: Copyright (c) 2007 Cisco, Inc.  All rights reserved.
+           Copyright (c) 2010-2012 Mellanox Technology Inc.  All rights reserved.
+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/libmlx5-1.install b/debian/libmlx5-1.install
new file mode 100644
index 0000000..9d2ca8b
--- /dev/null
+++ b/debian/libmlx5-1.install
@@ -0,0 +1,2 @@
+usr/lib/*/libmlx5-rdmav2.so 	/usr/lib/libibverbs/
+etc/libibverbs.d/mlx5.driver
diff --git a/debian/libmlx5-dev.install b/debian/libmlx5-dev.install
new file mode 100644
index 0000000..7540cf4
--- /dev/null
+++ b/debian/libmlx5-dev.install
@@ -0,0 +1 @@
+usr/lib/*/libmlx5.a
diff --git a/debian/patches/driver-plugin-directory.patch b/debian/patches/driver-plugin-directory.patch
new file mode 100644
index 0000000..7e9d805
--- /dev/null
+++ b/debian/patches/driver-plugin-directory.patch
@@ -0,0 +1,10 @@
+Description: Tell libibverbs to look in /usr/lib/libibverbs for plugin library
+Author: Roland Dreier <roland at digitalvampire.org>
+
+Index: libmlx5.git/mlx5.driver
+===================================================================
+--- libmlx5.git.orig/mlx5.driver
++++ libmlx5.git/mlx5.driver
+@@ -1 +1 @@
+-driver mlx5
++driver /usr/lib/libibverbs/libmlx5
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..213f49e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+driver-plugin-directory.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7405624
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with autotools_dev
+
+override_dh_strip:
+	dh_strip --dbg-package=libmlx5-1-dbg
+
+override_dh_makeshlibs:
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..073e2a9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+https://www.openfabrics.org/downloads/mlx5/libmlx5-(.*)\.(?:tar.gz|tar.bz2|tar.xz)

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



More information about the Pkg-ofed-commits mailing list