debian/0000755000000000000000000000000012075204620007164 5ustar debian/libumad2sim0.install0000644000000000000000000000001011723350454013041 0ustar usr/lib debian/rules0000755000000000000000000000341212075052067010252 0ustar #!/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 DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp build-arch: build build-indep: build build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) #docbook-to-man debian/ibsim.sgml > ibsim.1 touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp rm -f debian/ibsim.substvars # Add here commands to clean up after the build process. $(MAKE) clean 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/ibsim. $(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 dh_installdocs dh_installexamples dh_install --list-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 configure debian/ibsim.10000644000000000000000000000053411723350454010361 0ustar .TH ibsim 1 "February 23, 2007" "ibsim" "User Commands" .SH NAME ibsim \- An infiniband Simulator .SH SYNOPSIS .B ibsim .SH DESCRIPTION .PP This program does not currently have any documentation. This manpage is a placeholder. Please see the package documentation in /usr/share/doc/ibsim-utils .SH AUTHOR .TP Guy Coates < gmpc@sanger.ac.uk > debian/compat0000644000000000000000000000000211723447744010401 0ustar 9 debian/patches/0000755000000000000000000000000012075053336010621 5ustar debian/patches/01_glibc-2.10-scandir.patch0000644000000000000000000000075711723447741015240 0ustar From: Subject: patch for glibc 2.10 scandir function --- trunk/umad2sim/umad2sim.c 2009-07-29 14:58:36.000000000 +0200 +++ trunk/umad2sim/new-umad2sim.c 2009-12-24 12:30:15.000000000 +0100 @@ -698,7 +698,8 @@ int scandir(const char *path, struct dirent ***namelist, int (*filter) (const struct dirent *), - int (*compar) (const void *, const void *)) + int (*compar)(const struct dirent **,const struct dirent **)) + { char new_path[4096]; debian/patches/04_use-CPPFLAGS.patch0000644000000000000000000000074612075053336014145 0ustar Description: Pass CPPFLAGS to compiler so all hardening flags are used Author: Roland Dreier Index: ibsim-0.5/defs.mk =================================================================== --- ibsim-0.5.orig/defs.mk 2013-01-14 01:46:36.950744390 -0800 +++ ibsim-0.5/defs.mk 2013-01-14 11:04:24.983772454 -0800 @@ -35,7 +35,7 @@ all: %.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< %.so: $(CC) -shared $(LDFLAGS) -o $@ $^ $(LIBS) debian/patches/02_remove-ibcommon.patch0000644000000000000000000000351012075047575015250 0ustar Description: Remove vestiges of libibcommon use We no longer need libibcommon for anything; remove the includes and the link against it. Author: Roland Dreier Index: ibsim-0.5/ibsim/sim.h =================================================================== --- ibsim-0.5.orig/ibsim/sim.h 2009-07-29 05:58:36.000000000 -0700 +++ ibsim-0.5/ibsim/sim.h 2013-01-14 01:43:56.254739452 -0800 @@ -35,7 +35,6 @@ #ifndef __SIM_H__ #define __SIM_H__ -#include #include #define MAXNETNODES 2048 Index: ibsim-0.5/umad2sim/sim_client.c =================================================================== --- ibsim-0.5.orig/umad2sim/sim_client.c 2009-07-29 05:58:36.000000000 -0700 +++ ibsim-0.5/umad2sim/sim_client.c 2013-01-14 01:43:59.702739559 -0800 @@ -45,7 +45,6 @@ #include #include -#include #include #include Index: ibsim-0.5/umad2sim/umad2sim.c =================================================================== --- ibsim-0.5.orig/umad2sim/umad2sim.c 2013-01-14 00:45:57.000000000 -0800 +++ ibsim-0.5/umad2sim/umad2sim.c 2013-01-14 01:44:10.262739884 -0800 @@ -50,7 +50,6 @@ #include #include -#include #include #include Index: ibsim-0.5/defs.mk =================================================================== --- ibsim-0.5.orig/defs.mk 2009-07-29 05:58:36.000000000 -0700 +++ ibsim-0.5/defs.mk 2013-01-14 01:46:36.950744390 -0800 @@ -21,7 +21,7 @@ $(foreach l, mad umad common, $(IB_DEV_DIR)/libib$(l)/.libs/libib$(l).so) else INCS:= -I$(dir $(libpath))/include - LIBS:= -L$(libpath) -libmad -libumad -libcommon + LIBS:= -L$(libpath) -libmad -libumad endif CFLAGS += -Wall -g -fpic -I. -I../include $(INCS) debian/patches/03_fix-insecure-format.patch0000644000000000000000000000102012075052377016030 0ustar Description: Fix insecure fprintf() format Author: Roland Dreier Index: ibsim-0.5/ibsim/sim_cmd.c =================================================================== --- ibsim-0.5.orig/ibsim/sim_cmd.c 2009-07-29 05:58:36.000000000 -0700 +++ ibsim-0.5/ibsim/sim_cmd.c 2013-01-14 10:56:22.391757631 -0800 @@ -856,7 +856,7 @@ cmd_len++; if (*line == '#') - fprintf(f, line); + fprintf(f, "%s", line); else if (*line == '!') r = sim_cmd_file(f, line); else if (!strncasecmp(line, "Dump", cmd_len)) debian/patches/series0000644000000000000000000000015012075053247012033 0ustar 01_glibc-2.10-scandir.patch 02_remove-ibcommon.patch 03_fix-insecure-format.patch 04_use-CPPFLAGS.patch debian/copyright0000644000000000000000000000335711723350454011135 0ustar This package was debianized by Guy Coates on Fri, 06 Mar 2009 12:11:55 +0000. It was downloaded from http://www.openfabrics.org/downloads/OFED/ofed-1.4/OFED-1.4.tgz Upstream Author: Sasha Khapyorsky, sashak@voltaire.com Copyright: Copyright (c) 2004-2008 Voltaire, Inc. License: This software is available to you under a choice of one of two licenses. You may chose to be licensed under the terms of the the OpenIB.org BSD license or the GNU General Public License (GPL) Version 2. A copy of the GPL is available on your Debian system in the file /usr/share/common-licenses/GPL-2. 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 (C) 2009, Genome Research Ltd and is licensed under the GPLv2, see `/usr/share/common-licenses/GPL'. debian/ibsim-utils.manpages0000644000000000000000000000001711723350454013146 0ustar debian/ibsim.1 debian/ibsim-utils.docs0000644000000000000000000000004111723350454012300 0ustar README TODO net-examples scripts debian/changelog0000644000000000000000000000273312075204617011051 0ustar ibsim (0.5-4) experimental; urgency=low * Tighten build depends on libibumad-dev and libibmad-dev to avoid FTBFS against older versions. -- Roland Dreier Mon, 14 Jan 2013 23:46:52 -0800 ibsim (0.5-3) experimental; urgency=low * Add missing versioned build dependency on dpkg-dev. -- Roland Dreier Mon, 14 Jan 2013 11:43:39 -0800 ibsim (0.5-2) experimental; urgency=low * Acknowledge NMU. * Add 02_remove-ibcommon.patch to remove build dependency on libibcommon; it has been obsolete for a long time. This fixes FTBFS due to conflicting definitions of ntohll. * Add 03_fix-insecure-format.patch to fix FTBFS with hardening flags. * Add 04_use-CPPFLAGS.patch so hardening flags are actually used. -- Roland Dreier Mon, 14 Jan 2013 10:30:26 -0800 ibsim (0.5-1.1) unstable; urgency=low * Non-maintainer upload; ACKed by the maintainer, see #664425. * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt" (Closes: #664425). * Update to Standards-Version to 3.9.3.1 and debhelper to 9. * Add build-arch and build-indep targets. * Fix description-synopsis-starts-with-article (Lintian). * Fix diff-contains-substvars debian/ibsim.substvars (Lintian). -- Jari Aalto Wed, 04 Apr 2012 11:03:22 +0300 ibsim (0.5-1) unstable; urgency=low * Initial release (Closes: #539799) -- Benoit Mortier Wed, 21 Oct 2009 19:36:00 +0100 debian/source/0000755000000000000000000000000011723447746010505 5ustar debian/source/format0000644000000000000000000000001411723447746011713 0ustar 3.0 (quilt) debian/control0000644000000000000000000000233712075204550010576 0ustar Source: ibsim Section: net Priority: extra Maintainer: OFED and Debian Developement and Discussion Uploaders: Benoit Mortier , Guy Coates , Mario Lang Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), libibumad-dev (>= 1.3.8), libibmad-dev (>= 1.3.9) Standards-Version: 3.9.3.1 Homepage: http://www.openfabrics.org Package: ibsim-utils Architecture: i386 ia64 amd64 powerpc Depends: ${shlibs:Depends}, ${misc:Depends}, libumad2sim0 (= ${binary:Version}) Description: InfiniBand fabric simulator utilities ibsim provides a simulation of an InfiniBand fabric, which can be used by the opensm subnet manager and infiniband diagnostics and management tools. . This package provides utilities for use with the simulator. Package: libumad2sim0 Architecture: i386 ia64 amd64 powerpc Depends: ${shlibs:Depends}, ${misc:Depends} Description: InfiniBand fabric simulator ibsim provides a simulation of an InfiniBand fabric, which can be used by the opensm subnet manager and infiniband diagnostics and management tools. . This package provides an LD_PRELOADable library which will make applications use the simulated fabric. debian/ibsim-utils.install0000644000000000000000000000001011723350454013012 0ustar usr/bin