From 383825fbaf4caa3129344c1e47b72e1f7ad1f024 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 5 Apr 2020 16:58:29 +0300 Subject: [PATCH] Debian packaging Used e.g. in MLNX_OFED. Signed-off-by: Tzafrir Cohen --- debian/changelog | 11 +++++++ debian/compat | 1 + debian/control | 19 ++++++++++++ debian/copyright | 62 ++++++++++++++++++++++++++++++++++++++++ debian/docs | 4 +++ debian/ibsim-doc.docs | 1 + debian/ibsim-doc.install | 1 + debian/ibsim.install | 2 ++ debian/rules | 21 ++++++++++++++ debian/source/format | 1 + dist.sh | 2 +- 11 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/ibsim-doc.docs create mode 100644 debian/ibsim-doc.install create mode 100644 debian/ibsim.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..48d1c3e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,11 @@ +ibsim (0.9) unstable; urgency=low + + * Switch to Github. + + -- Tzafrir Cohen Sun, 12 Apr 2020 11:14:12 +0300 + +ibsim (0.6) unstable; urgency=low + + * Initial release + + -- Ilya Nelkenbaum Mon, 11 Mar 2013 11:03:54 +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..ca67e74 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: ibsim +Section: net +Priority: extra +Maintainer: Tzafrir Cohen +Build-Depends: debhelper (>= 9), libibumad-dev, libibmad-dev +Standards-Version: 4.13 +Homepage: https://github.com/linux-rdma/ibsim + +Package: ibsim +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: InfiniBand fabric simulator for management + ibsim provides simulation of infiniband fabric for using with OFA OpenSM, + diagnostic and management tools. + +Package: ibsim-doc +Architecture: all +Description: documentation for ibsim + Documentation for ibsim diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..bc69d8f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,62 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ibsim +Source: https://github.com/linux-rdma/ibsim/ + +Files: * +Copyright: + 2004-2008, Voltaire, Inc. + 2010-2017, Mellanox Technologies LTD. +License: BSD-2+GPL-2 + +Files: ibsim/sim_mad.c +Copyright: 2004-2008, Voltaire, Inc. + 2009, HNR Consulting. + 2011, Mellanox Technologies LTD. +License: BSD-2+GPL-2 + +Files: tests/mcast_storm.c + tests/query_many.c + tests/subnet_discover.c +Copyright: 2006-2008, Voltaire, Inc. + 2009, Voltaire, Inc. +License: GPL-2+ + This 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. + . + on Debian system in the file /usr/share/common-licenses/GPL-2. +Comment: + Those are tests that are included in the source and built, but are not + currently included in any binary package. + +License: BSD-2+GPL-2 + ibsim 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 + COPYING in the main directory of this source tree, 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. + . + on Debian system in the file /usr/share/common-licenses/GPL-2. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..c1d89cf --- /dev/null +++ b/debian/docs @@ -0,0 +1,4 @@ +README +TODO +net-examples +scripts diff --git a/debian/ibsim-doc.docs b/debian/ibsim-doc.docs new file mode 100644 index 0000000..d4f4542 --- /dev/null +++ b/debian/ibsim-doc.docs @@ -0,0 +1 @@ +#DOCS# diff --git a/debian/ibsim-doc.install b/debian/ibsim-doc.install new file mode 100644 index 0000000..d4f4542 --- /dev/null +++ b/debian/ibsim-doc.install @@ -0,0 +1 @@ +#DOCS# diff --git a/debian/ibsim.install b/debian/ibsim.install new file mode 100644 index 0000000..14f5b95 --- /dev/null +++ b/debian/ibsim.install @@ -0,0 +1,2 @@ +usr/lib +usr/bin diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..040f348 --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/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. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/dist.sh b/dist.sh index 1ec554c..499de9b 100755 --- a/dist.sh +++ b/dist.sh @@ -12,7 +12,7 @@ rm -rf $distdir mkdir $distdir files=`find . -name '*.[ch]' -o -name Makefile` -cp -a --parents $files \ +cp -a --parents $files debian \ defs.mk README COPYING TODO net-examples scripts tests $distdir cat ibsim.spec.in \