--- libibumad-1.2.3-20090314.orig/debian/README.source +++ libibumad-1.2.3-20090314/debian/README.source @@ -0,0 +1 @@ +/usr/share/doc/dpatch/README.source.gz --- libibumad-1.2.3-20090314.orig/debian/libibumad-dev.install +++ libibumad-1.2.3-20090314/debian/libibumad-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/lib*.la +usr/share/man/man3 --- libibumad-1.2.3-20090314.orig/debian/libibumad1.install +++ libibumad-1.2.3-20090314/debian/libibumad1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- libibumad-1.2.3-20090314.orig/debian/copyright +++ libibumad-1.2.3-20090314/debian/copyright @@ -0,0 +1,45 @@ +This package was debianized by Guy Coates on +Thu, 27 Nov 2008 15:16:59 +0000. + +It was downloaded from http://www.openfabrics.org/downloads/OFED/ofed-1.4/OFED-1.4.tgz + +Upstream Authors: + +Sasha Khapyorsky +Shahar Frank +Hal Rosenstock + + +Copyright (c) 2004-2008 Voltaire, Inc. All rights reserved. + +libibumad 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: + + 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 2008, Genome Research Ltd and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + --- libibumad-1.2.3-20090314.orig/debian/libibumad1.dirs +++ libibumad-1.2.3-20090314/debian/libibumad1.dirs @@ -0,0 +1 @@ +usr/lib --- libibumad-1.2.3-20090314.orig/debian/rules +++ libibumad-1.2.3-20090314/debian/rules @@ -0,0 +1,117 @@ +#!/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 + + + + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: 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 + libtoolize --force --copy + aclocal + autoconf + touch NEWS README + automake --copy --add-missing + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" --sysconfdir=/etc + + +build: patch build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + 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/tmp + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +# 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 --fail-missing + 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 --- libibumad-1.2.3-20090314.orig/debian/compat +++ libibumad-1.2.3-20090314/debian/compat @@ -0,0 +1 @@ +7 --- libibumad-1.2.3-20090314.orig/debian/changelog +++ libibumad-1.2.3-20090314/debian/changelog @@ -0,0 +1,5 @@ +libibumad (1.2.3-20090314-1) unstable; urgency=low + + * Initial release (Closes: #516096) + + -- Benoit Mortier Wed, 21 Oct 2009 11:25:00 +0100 --- libibumad-1.2.3-20090314.orig/debian/control +++ libibumad-1.2.3-20090314/debian/control @@ -0,0 +1,35 @@ +Source: libibumad +Priority: extra +Maintainer: OFED and Debian Developement and Discussion +Uploaders: Benoit Mortier , Guy Coates , Mario Lang +Build-Depends: debhelper (>= 7), autotools-dev, automake, libtool, libibcommon-dev, dpatch +Standards-Version: 3.8.3 +Section: libs +Homepage: http://openfabrics.org/ + +Package: libibumad-dev +Section: libdevel +Architecture: any +Depends: libibumad1 (= ${binary:Version}) +Description: Development files for libibumad + libibumad provides userspace Infiniband Management Datagram (uMAD) + functions which sit on top of the uMAD modules in the kernel. + These are used by InfiniBand diagnostic and management tools. + . + This package is needed to compile programs against libumad1. + It contains the header files and static libraries (optionally) + needed for compiling. + + + + +Package: libibumad1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: InfiniBand Userspace Management Datagram (uMAD) library + libibumad provides userspace Infiniband Management Datagram (uMAD) + functions which sit on top of the uMAD modules in the kernel. + These are used by InfiniBand diagnostic and management tools. + . + This package contains the shared library. --- libibumad-1.2.3-20090314.orig/debian/dirs +++ libibumad-1.2.3-20090314/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- libibumad-1.2.3-20090314.orig/debian/libibumad-dev.dirs +++ libibumad-1.2.3-20090314/debian/libibumad-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- libibumad-1.2.3-20090314.orig/debian/patches/00list +++ libibumad-1.2.3-20090314/debian/patches/00list @@ -0,0 +1,2 @@ +# Remove man page install twice +01_Makefile-am --- libibumad-1.2.3-20090314.orig/debian/patches/01_Makefile-am.dpatch +++ libibumad-1.2.3-20090314/debian/patches/01_Makefile-am.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_Makefile.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: twice man/umad_get_mad.3 in Makefile.am + +@DPATCH@ + +--- trunk/Makefile.am.orig 2009-10-23 22:24:33.000000000 +0200 ++++ trunk/Makefile.am 2009-10-23 22:25:30.000000000 +0200 +@@ -9,7 +9,7 @@ + man/umad_open_port.3 man/umad_close_port.3 man/umad_size.3 \ + man/umad_status.3 man/umad_alloc.3 man/umad_free.3 \ + man/umad_dump.3 man/umad_addr_dump.3 man/umad_get_fd.3 \ +- man/umad_get_mad.3 man/umad_get_mad_addr.3 \ ++ man/umad_get_mad_addr.3 \ + man/umad_set_grh_net.3 man/umad_set_grh.3 \ + man/umad_set_addr_net.3 man/umad_set_addr.3 man/umad_set_pkey.3 \ + man/umad_get_pkey.3 \