--- openipmi-2.0.16.orig/debian/libopenipmi0.files
+++ openipmi-2.0.16/debian/libopenipmi0.files
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
--- openipmi-2.0.16.orig/debian/docs
+++ openipmi-2.0.16/debian/docs
@@ -0,0 +1,5 @@
+FAQ
+README
+README.Force
+README.MotorolaMXP
+TODO
--- openipmi-2.0.16.orig/debian/rules
+++ openipmi-2.0.16/debian/rules
@@ -0,0 +1,124 @@
+#!/usr/bin/make -f
+
+# 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
+
+# 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)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
+					--build=$(DEB_BUILD_GNU_TYPE) \
+					--prefix=/usr \
+					--without-openssl \
+					--mandir=\$${prefix}/share/man \
+					--infodir=\$${prefix}/share/info \
+					--disable-rpath
+
+
+#Architecture 
+build: build-arch
+
+build-arch: build-arch-stamp
+build-arch-stamp:  config.status
+
+	# Add here commands to compile the arch part of the package.
+	$(MAKE) 
+	touch build-arch-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp #CONFIGURE-STAMP#
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+	# generated file not removed by upstream Makefile
+	rm -f swig/python/openipmigui/Makefile
+
+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
+
+
+	dh_clean 
+
+install: install-arch
+
+install-arch:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -s 
+	dh_installdirs -s
+
+	# Add here commands to install the arch part of the package into 
+	# debian/tmp.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+	# remove useless rpath from libOpenIPMIposix (which is built with
+	# -R/usr/lib, whereas only -rpath=/usr/lib is disabled by
+	# --disable-rpath)
+	chrpath -d debian/tmp/usr/lib/libOpenIPMIposix.so.*.*
+
+	dh_movefiles
+
+	dh_install -s
+
+# Must not depend on anything. This is to be called by
+binary-indep:
+# in another 'make' thread.
+
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate	
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress 
+	dh_fixperms
+#	dh_perl
+#	dh_python
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+binary: binary-arch
+.PHONY: build clean binary-arch binary install install-arch 
--- openipmi-2.0.16.orig/debian/openipmi-doc.files
+++ openipmi-2.0.16/debian/openipmi-doc.files
@@ -0,0 +1,4 @@
+usr/share/info/OpenIPMI.info
+usr/share/info/OpenIPMI.info-1
+usr/share/info/OpenIPMI.info-2
+usr/share/info/OpenIPMI.info-3
--- openipmi-2.0.16.orig/debian/dirs
+++ openipmi-2.0.16/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- openipmi-2.0.16.orig/debian/libopenipmi-dev.files
+++ openipmi-2.0.16/debian/libopenipmi-dev.files
@@ -0,0 +1,4 @@
+usr/lib/pkgconfig
+usr/include
+usr/lib/lib*.a
+usr/lib/lib*.so
--- openipmi-2.0.16.orig/debian/openipmi.links
+++ openipmi-2.0.16/debian/openipmi.links
@@ -0,0 +1,3 @@
+usr/share/man/man1/openipmicmd.1 usr/share/man/man1/ipmicmd.1
+usr/share/man/man1/openipmish.1 usr/share/man/man1/ipmish.1
+
--- openipmi-2.0.16.orig/debian/info
+++ openipmi-2.0.16/debian/info
@@ -0,0 +1,4 @@
+doc/OpenIPMI.info
+doc/OpenIPMI.info-1
+doc/OpenIPMI.info-2
+doc/OpenIPMI.info-3
--- openipmi-2.0.16.orig/debian/copyright
+++ openipmi-2.0.16/debian/copyright
@@ -0,0 +1,15 @@
+This package was debianized by
+Noèl Köthe <noel@debian.org> on Tue, 12 Oct 2004 18:39:24 +0200.
+
+It was downloaded from http://openipmi.sourceforge.net/
+			https://sf.net/projects/openipmi/
+
+Copyright 2004 MontaVista Software Inc.
+
+Upstream Author: Corey Minyard <cminyard@mvista.com>
+
+License:
+
+Released under the terms of the GPL and some parts LGPL; see
+/usr/share/common-licenses/GPL and /usr/share/common-licenses/LGPL.
+
--- openipmi-2.0.16.orig/debian/compat
+++ openipmi-2.0.16/debian/compat
@@ -0,0 +1 @@
+5
--- openipmi-2.0.16.orig/debian/control
+++ openipmi-2.0.16/debian/control
@@ -0,0 +1,38 @@
+Source: openipmi
+Section: admin
+Priority: optional
+Maintainer: Noèl Köthe <noel@debian.org>
+Build-Depends: debhelper (>> 5.0.0), libsnmp-dev, libpopt-dev, libncurses5-dev,
+               chrpath
+Standards-Version: 3.8.2
+Homepage: http://openipmi.sourceforge.net/
+
+Package: openipmi
+Section: admin
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Intelligent Platform Management Interface (for servers)
+ IPMI allows remote monitoring and remote management of devices.
+ .
+ This package contains some command-line and graphical-user-interfaces
+ to interact with IPMI-enabled devices.
+
+Package: libopenipmi0
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Intelligent Platform Management Interface - runtime
+ IPMI allows remote monitoring and remote management of devices.
+ .
+ This package contains the runtime library.
+
+Package: libopenipmi-dev
+Section: libdevel
+Architecture: any
+Depends: libopenipmi0 (= ${binary:Version}), libgdbm-dev
+Description: Intelligent Platform Management Interface - development
+ IPMI allows remote monitoring and remote management of devices.
+ .
+ This package contains the development headers needed for compiling
+ programs against libopenipmi.
+
--- openipmi-2.0.16.orig/debian/changelog
+++ openipmi-2.0.16/debian/changelog
@@ -0,0 +1,142 @@
+openipmi (2.0.16-1.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Don't ship .la files.
+
+ -- Luk Claes <luk@debian.org>  Sun, 03 Jul 2011 09:48:16 +0200
+
+openipmi (2.0.16-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "FTBFS on kfreebsd-*: SIGPWR": re-apply patch from 2.0.14-2/#497902;
+    thanks Petr Salinger (closes: #569015).
+
+ -- gregor herrmann <gregoa@debian.org>  Sat, 17 Jul 2010 19:19:01 +0200
+
+openipmi (2.0.16-1.1) unstable; urgency=low
+
+  * Non-maintainer upload, thanks Simon McVittie for the patch!
+  * Fix pkg-config files: neither pthread.pc nor ncurses.pc exists in Debian
+    (Closes: #474087)
+  * Use chrpath to remove unnecessary rpath from libOpenIPMIposix.so.0.0.1
+  * Remove a generated Makefile during clean to avoid it getting into the
+    Debian diff after repeated builds (as seen in the Ubuntu diff)
+  * Actually compile the package in build-arch rather than waiting until
+    install-arch
+
+ -- Micah Anderson <micah@debian.org>  Sat, 30 Jan 2010 19:17:13 -0500
+
+openipmi (2.0.16-1) unstable; urgency=low
+
+  * new upstream release from 2009-03-16
+  * debian/compat debian/control raised to debhelper 5
+  * debian/control removed URL in description new we
+    have the Homepage: field
+  * debian/control updated Standards-Version: (no changes needed)
+  * debian/rules removed unused cdbd dependency
+
+ -- Noèl Köthe <noel@debian.org>  Tue, 28 Jul 2009 10:17:23 +0200
+
+openipmi (2.0.14-2) unstable; urgency=low
+
+  * added GNU/kFreeBSD patch from Petr. Thanks
+    (closes: Bug#497902)
+
+ -- Noèl Köthe <noel@debian.org>  Sun, 19 Oct 2008 15:58:15 +0200
+
+openipmi (2.0.14-1) unstable; urgency=medium
+
+  * new upstream release
+    (closes: Bug#490165)
+  * debian/control updated Standards-Version
+
+ -- Noèl Köthe <noel@debian.org>  Sat, 19 Jul 2008 20:30:39 +0200
+
+openipmi (2.0.13-1) unstable; urgency=low
+
+  * new upstream release
+  * corrected watch file Thanks to Raphael Geissert
+    (closes: Bug#449859)
+  * updated Standards-Version
+  * added Homepage to debian/control
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 25 Feb 2008 20:07:00 +0100
+
+openipmi (2.0.11-2) unstable; urgency=low
+
+  * correcting build dependency libsnmp10-dev -> libsnmp-dev
+    (closes: Bug#444089)
+  * debian/control corrected libopenipmi-dev dependency
+  * debian/rules don't ignore make clean errors
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 01 Oct 2007 17:42:07 +0200
+
+openipmi (2.0.11-1) unstable; urgency=low
+
+  * new upstream release from 2007-02-25
+    (closes: Bug#392788)
+  * added patch parts from Philipp Matthias Hahn <pmhahn@debian.org>
+    Thank you!
+
+ -- Noèl Köthe <noel@debian.org>  Thu, 21 Jun 2007 19:48:32 +0200
+
+openipmi (2.0.7-1) unstable; urgency=low
+
+  * new upstream release from 2006-06-08
+    Thanks to John Wright <john.wright hp.com> for initial work
+    (closes: Bug#380149)
+  * updated Standards Version
+  * new binaries openipmicmd, openipmish, rmcp_ping
+
+ -- Noèl Köthe <noel@debian.org>  Fri, 15 Sep 2006 17:56:24 +0200
+
+openipmi (2.0.2-2) unstable; urgency=low
+
+  * added missing libgdbm-dev to libopenipmi-dev
+    (closes: Bug#334623)
+
+ -- Noèl Köthe <noel@debian.org>  Thu, 20 Oct 2005 23:01:55 +0200
+
+openipmi (2.0.2-1) unstable; urgency=low
+
+  * new upstream release from 2005-07-14
+  * changed build-dep to libsnmp9-dev
+  * corrected stuppid typo
+    (closes: Bug#329928)
+
+ -- Noèl Köthe <noel@debian.org>  Tue, 11 Oct 2005 18:35:21 +0200
+
+openipmi (2.0.1-1) unstable; urgency=low
+
+  * going to 2.x upstream
+  * the gcc 4.0 build problem is fixed by upstream in this version
+    (closes: Bug#304580)
+  * updated Standards-Version
+  * removed debmake build-dep
+    (closes: Bug#305889)
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 04 Jul 2005 21:29:17 +0200
+
+openipmi (1.4.14-1) unstable; urgency=low
+
+  * 1.4.x packages
+  * added homepages to description
+  * added watch file
+
+ -- Noèl Köthe <noel@debian.org>  Tue, 12 Apr 2005 20:55:02 +0200
+
+openipmi (1.3.11-2) unstable; urgency=low
+
+  * corrected build-deps
+    (closes: Bug#278193)
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 01 Nov 2004 13:31:13 +0100
+
+openipmi (1.3.11-1) unstable; urgency=low
+
+  * Initial Release with some help from Philipp Matthias Hahn
+    <pmhahn debian.org> unofficial package
+    (closes: Bug#274721)
+
+ -- Noèl Köthe <noel@debian.org>  Tue, 12 Oct 2004 18:39:24 +0200
+
--- openipmi-2.0.16.orig/debian/openipmi.files
+++ openipmi-2.0.16/debian/openipmi.files
@@ -0,0 +1,17 @@
+usr/bin/ipmi_ui
+usr/bin/ipmicmd
+usr/bin/ipmilan
+usr/bin/ipmish
+usr/bin/openipmicmd
+usr/bin/openipmish
+usr/bin/rmcp_ping
+usr/bin/solterm
+usr/share/info/OpenIPMI.inf*
+usr/share/man/man1/ipmi_ui.1
+usr/share/man/man1/openipmicmd.1
+usr/share/man/man1/openipmish.1
+usr/share/man/man1/rmcp_ping.1
+usr/share/man/man1/solterm.1
+usr/share/man/man7/ipmi_cmdlang.7
+usr/share/man/man7/openipmi_conparms.7
+usr/share/man/man8/ipmilan.8
--- openipmi-2.0.16.orig/debian/watch
+++ openipmi-2.0.16/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://sf.net/openipmi/OpenIPMI-(.*)\.tar\.gz	debian	uupdate
+
