--- hotswap-0.4.0.orig/debian/compat
+++ hotswap-0.4.0/debian/compat
@@ -0,0 +1 @@
+4
--- hotswap-0.4.0.orig/debian/hotswap-gui.docs
+++ hotswap-0.4.0/debian/hotswap-gui.docs
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS
--- hotswap-0.4.0.orig/debian/hotswap-gui.manpages
+++ hotswap-0.4.0/debian/hotswap-gui.manpages
@@ -0,0 +1,2 @@
+debian/tmp/usr/share/man/man1/khotswap.1
+debian/tmp/usr/share/man/man1/xhotswap.1
--- hotswap-0.4.0.orig/debian/hotswap-text.docs
+++ hotswap-0.4.0/debian/hotswap-text.docs
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS
--- hotswap-0.4.0.orig/debian/hotswap-text.examples
+++ hotswap-0.4.0/debian/hotswap-text.examples
@@ -0,0 +1 @@
+doc/hotswaprc.example
--- hotswap-0.4.0.orig/debian/hotswap-text.manpages
+++ hotswap-0.4.0/debian/hotswap-text.manpages
@@ -0,0 +1,2 @@
+debian/tmp/usr/share/man/man1/hotswap.1
+debian/tmp/usr/share/man/man5/hotswaprc.5
--- hotswap-0.4.0.orig/debian/hotswap.overrides
+++ hotswap-0.4.0/debian/hotswap.overrides
@@ -0,0 +1 @@
+hotswap: incorrect-package-test
--- hotswap-0.4.0.orig/debian/hotswap-gui.install
+++ hotswap-0.4.0/debian/hotswap-gui.install
@@ -0,0 +1,29 @@
+usr/bin/khotswap
+usr/bin/xhotswap
+usr/share/locale/de/LC_MESSAGES/khotswap.mo
+usr/share/locale/de/LC_MESSAGES/xhotswap.mo
+usr/share/locale/fr/LC_MESSAGES/khotswap.mo
+usr/share/locale/fr/LC_MESSAGES/xhotswap.mo
+usr/share/locale/nl/LC_MESSAGES/khotswap.mo
+usr/share/locale/nl/LC_MESSAGES/xhotswap.mo
+usr/share/locale/es/LC_MESSAGES/khotswap.mo
+usr/share/locale/es/LC_MESSAGES/xhotswap.mo
+usr/share/locale/sv/LC_MESSAGES/khotswap.mo
+usr/share/locale/sv/LC_MESSAGES/xhotswap.mo
+usr/share/apps/khotswap/icons/crystalsvg/16x16/apps/khotswap.png
+usr/share/apps/khotswap/icons/crystalsvg/16x16/devices/khotswap_no_device.png
+usr/share/apps/khotswap/icons/crystalsvg/22x22/devices/khotswap_no_device.png
+usr/share/apps/khotswap/icons/crystalsvg/32x32/devices/khotswap_no_device.png
+usr/share/apps/khotswap/icons/crystalsvg/32x32/apps/khotswap.png
+usr/share/apps/khotswap/icons/crystalsvg/48x48/apps/khotswap.png
+usr/share/apps/khotswap/icons/crystalsvg/48x48/devices/khotswap_no_device.png
+usr/share/apps/khotswap/icons/hicolor/16x16/actions/khotswap_insert.png
+usr/share/apps/khotswap/icons/hicolor/16x16/actions/khotswap_remove.png
+usr/share/apps/khotswap/icons/hicolor/16x16/actions/khotswap_swap.png
+usr/share/apps/khotswap/icons/hicolor/16x16/apps/khotswap.png
+usr/share/apps/khotswap/icons/hicolor/16x16/devices/khotswap_no_device.png
+usr/share/apps/khotswap/icons/hicolor/22x22/devices/khotswap_no_device.png
+usr/share/apps/khotswap/icons/hicolor/32x32/apps/khotswap.png
+usr/share/apps/khotswap/icons/hicolor/32x32/devices/khotswap_no_device.png
+usr/share/apps/khotswap/icons/hicolor/48x48/apps/khotswap.png
+usr/share/apps/khotswap/icons/hicolor/48x48/devices/khotswap_no_device.png
--- hotswap-0.4.0.orig/debian/hotswap-text.install
+++ hotswap-0.4.0/debian/hotswap-text.install
@@ -0,0 +1,6 @@
+usr/bin/hotswap
+usr/share/locale/de/LC_MESSAGES/hotswap.mo
+usr/share/locale/fr/LC_MESSAGES/hotswap.mo
+usr/share/locale/nl/LC_MESSAGES/hotswap.mo
+usr/share/locale/es/LC_MESSAGES/hotswap.mo
+usr/share/locale/sv/LC_MESSAGES/hotswap.mo
--- hotswap-0.4.0.orig/debian/rules
+++ hotswap-0.4.0/debian/rules
@@ -0,0 +1,120 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+#export DH_COMPAT=3
+
+# 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
+INSTALL = install
+INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
+INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
+INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
+INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 7555
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info 
+
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+	-test -r /usr/share/misc/config.sub && \
+	  cp -f /usr/share/misc/config.sub config.sub
+	-test -r /usr/share/misc/config.guess && \
+	  cp -f /usr/share/misc/config.guess config.guess
+	-test -r /usr/share/misc/config.sub && \
+	  cp -f /usr/share/misc/config.sub kde-frontend/admin/config.sub
+	-test -r /usr/share/misc/config.guess && \
+	  cp -f /usr/share/misc/config.guess kde-frontend/admin/config.guess
+	-test -r /usr/share/misc/config.sub && \
+	  cp -f /usr/share/misc/config.sub motif-frontend/config.sub
+	-test -r /usr/share/misc/config.guess && \
+	  cp -f /usr/share/misc/config.guess motif-frontend/config.guess
+	rm -f config.log
+
+	find . -name '*.gmo' -exec rm -f {} \;
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/hotswap.
+	$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
+##??##	cp debian/hotswap.overrides debian/tmp/usr/share/lintian/overrides/hotswap
+	rm -rf debian/tmp/usr/share/doc/HTML
+	dh_install --source=debian/tmp
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf	
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+	#dh_installcron
+	dh_installman
+	#dh_installinfo
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- hotswap-0.4.0.orig/debian/copyright
+++ hotswap-0.4.0/debian/copyright
@@ -0,0 +1,17 @@
+This package was debianized by Wouter Verhelst <wouter@debian.org> on
+Sun, 14 Apr 2002 10:22:53 +0200.
+
+It was downloaded from http://users.ox.ac.uk/~univ1377/
+
+Upstream Author: Tim Stadelmann <Tim.Stadelmann@physics.ox.ac.uk>
+
+Copyright: (C) 2001-2002 Tim Stadelmann
+
+This program is free software; you may 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, or (at your option)
+any later version.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in '/usr/share/common-licenses/GPL'.
+
--- hotswap-0.4.0.orig/debian/control
+++ hotswap-0.4.0/debian/control
@@ -0,0 +1,54 @@
+Source: hotswap
+Section: admin
+Priority: optional
+Maintainer: Alberto Gonzalez Iniesta <agi@inittab.org>
+Build-Depends: debhelper (>> 4.0.0), lesstif2-dev, libxml2-dev, gettext, libqt3-mt-dev, kdelibs4-dev
+Standards-Version: 3.7.3
+
+Package: hotswap-text
+Architecture: any
+Suggests: hotswap-gui
+Depends: ${shlibs:Depends}
+Conflicts: hotswap (<< 0.4.0)
+Replaces: hotswap (<< 0.4.0)
+Description: (de)register hotswappable IDE hardware (command line tool)
+ Hotswap is a utility to register and deregister hotswappable IDE
+ hardware. It is written to be used on Laptops with some sort of
+ hardware bay to remove the module from the machine without rebooting
+ it. eg. Dell Laptops.
+ .
+ Note that this utility is not required to insert or remove batteries
+ or floppy disk drives; only for IDE devices.
+ .
+ This package includes the command line tool.
+
+Package: hotswap-gui
+Architecture: any
+Depends: ${shlibs:Depends}, hotswap-text
+Conflicts: hotswap (<< 0.4.0)
+Replaces: hotswap (<< 0.4.0)
+Description: (de)register hotswappable IDE hardware (GUI front-ends)
+ Hotswap is a utility to register and deregister hotswappable IDE
+ hardware. It is written to be used on Laptops with some sort of
+ hardware bay to remove the module from the machine without rebooting
+ it. eg. Dell Laptops.
+ .
+ Note that this utility is not required to insert or remove batteries
+ or floppy disk drives; only for IDE devices.
+ .
+ This package includes the KDE and Motif front-ends to the command line tool.
+
+Package: hotswap
+Architecture: all
+Depends: hotswap-text, hotswap-gui
+Description: (de)register hotswappable IDE hardware
+ Hotswap is a utility to register and deregister hotswappable IDE
+ hardware. It is written to be used on Laptops with some sort of
+ hardware bay to remove the module from the machine without rebooting
+ it. eg. Dell Laptops.
+ .
+ Note that this utility is not required to insert or remove batteries
+ or floppy disk drives; only for IDE devices.
+ .
+ This is a meta-package that Depends on both the command line tool 
+ and the graphical front-ends to allow seamless upgrades.
--- hotswap-0.4.0.orig/debian/hotswap-text.dirs
+++ hotswap-0.4.0/debian/hotswap-text.dirs
@@ -0,0 +1,12 @@
+usr/
+usr/bin/
+usr/share/
+usr/share/doc/
+usr/share/doc/hotswap-text/
+usr/share/locale/
+usr/share/locale/de/
+usr/share/locale/de/LC_MESSAGES/
+usr/share/locale/fr/
+usr/share/locale/fr/LC_MESSAGES/
+usr/share/locale/nl/
+usr/share/locale/nl/LC_MESSAGES/
--- hotswap-0.4.0.orig/debian/hotswap-gui.dirs
+++ hotswap-0.4.0/debian/hotswap-gui.dirs
@@ -0,0 +1,37 @@
+usr/
+usr/bin/
+usr/share/locale/
+usr/share/locale/de/
+usr/share/locale/de/LC_MESSAGES/
+usr/share/locale/fr/
+usr/share/locale/fr/LC_MESSAGES/
+usr/share/locale/nl/
+usr/share/locale/nl/LC_MESSAGES/
+usr/share/man/
+usr/share/man/man1/
+usr/share/apps/khotswap/
+usr/share/apps/khotswap/icons/
+usr/share/apps/khotswap/icons/crystalsvg/
+usr/share/apps/khotswap/icons/crystalsvg/16x16/
+usr/share/apps/khotswap/icons/crystalsvg/16x16/devices/
+usr/share/apps/khotswap/icons/crystalsvg/16x16/apps/
+usr/share/apps/khotswap/icons/crystalsvg/22x22/
+usr/share/apps/khotswap/icons/crystalsvg/22x22/devices/
+usr/share/apps/khotswap/icons/crystalsvg/32x32/
+usr/share/apps/khotswap/icons/crystalsvg/32x32/devices/
+usr/share/apps/khotswap/icons/crystalsvg/32x32/apps/
+usr/share/apps/khotswap/icons/crystalsvg/48x48/
+usr/share/apps/khotswap/icons/crystalsvg/48x48/apps/
+usr/share/apps/khotswap/icons/crystalsvg/48x48/devices/
+usr/share/apps/khotswap/icons/hicolor/
+usr/share/apps/khotswap/icons/hicolor/16x16/
+usr/share/apps/khotswap/icons/hicolor/16x16/actions/
+usr/share/apps/khotswap/icons/hicolor/16x16/apps/
+usr/share/apps/khotswap/icons/hicolor/16x16/devices/
+usr/share/apps/khotswap/icons/hicolor/22x22/
+usr/share/apps/khotswap/icons/hicolor/22x22/devices/
+usr/share/apps/khotswap/icons/hicolor/32x32/
+usr/share/apps/khotswap/icons/hicolor/32x32/apps/
+usr/share/apps/khotswap/icons/hicolor/48x48/
+usr/share/apps/khotswap/icons/hicolor/48x48/apps/
+usr/share/apps/khotswap/icons/hicolor/48x48/devices/
--- hotswap-0.4.0.orig/debian/changelog
+++ hotswap-0.4.0/debian/changelog
@@ -0,0 +1,128 @@
+hotswap (0.4.0-11) unstable; urgency=low
+
+  * Clean up a bit, remove lintian errors/warnings
+  * Rebuild the package to avoid warnings on _XmStrings Symbol.
+    Thanks Laurent Bonnaud for noticing.
+  * Bumped Standards-Version to 3.7.3.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Tue, 15 Apr 2008 15:21:21 +0200
+
+hotswap (0.4.0-10) unstable; urgency=low
+
+  * Fixed udev race condition. Probe the device for a second time after it is
+    inserted. (Closes: #351932). Thanks Javier Fernandez-Sanguino for his
+    help.
+  * Bumped Standards-Version to 3.7.2.0, no change.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Mon, 15 May 2006 07:54:12 +0200
+
+hotswap (0.4.0-9) unstable; urgency=low
+
+  * Added swedish translations for hotswap, xhotswap and khotswap.
+    Thanks Daniel Nylander. (Closes: #337156)
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Tue, 21 Feb 2006 20:58:24 +0100
+
+hotswap (0.4.0-8) unstable; urgency=low
+
+  * Rebuilt package for the Qt/KDE transition
+    (Closes: #327966)
+  * Bumped Standards-Version to 3.6.2.0, no change.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Tue, 13 Sep 2005 14:50:37 +0200
+
+hotswap (0.4.0-7) unstable; urgency=low
+
+  * Changed maintainer address.
+  * Rebuild to fix Depends on obsolete xlibmesa3-gl.
+  * Added missing quotes in .menu files
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Fri, 21 Jan 2005 17:58:48 +0100
+
+hotswap (0.4.0-6) unstable; urgency=low
+
+  * Improved Spanish translation.
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Thu, 15 Jan 2004 12:04:41 +0100
+
+hotswap (0.4.0-5) unstable; urgency=low
+
+  * Fixed confusing package description. (Closes: #217251)
+  * Included Spanish translation for [kx]?hotswap.
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Thu, 23 Oct 2003 16:50:30 +0200
+
+hotswap (0.4.0-4) unstable; urgency=low
+
+  * Make hotswap-text and hotswap-gui conflict with hotswap << 0.4.0
+    Thanks Chris Halls for noticing. (Closes: #216680)
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Mon, 20 Oct 2003 17:27:36 +0200
+
+hotswap (0.4.0-3) unstable; urgency=low
+
+  * Splitted the package in hotswap-text and hotswap-gui. This way people
+    don't have to install KDE to use the command line program.
+    Also made a hotswap meta-package that Depends on both -text and -gui
+    to allow seamless upgrades. Thanks Andreas Metzler for the tip.
+    (Closes: #215502)
+  * Moved to debhelper compatability 4. Created debian/compat.
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Tue, 14 Oct 2003 14:28:25 +0200
+
+hotswap (0.4.0-2) unstable; urgency=low
+
+  * Forgot a comma in the Build-Depends field.
+    Thanks Nathanael Nerode for warning me.
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Mon, 13 Oct 2003 09:53:47 +0200
+
+hotswap (0.4.0-1) unstable; urgency=low
+
+  * New upstream version. Includes a new front-end for KDE.
+    So there are new Depends and Build-Depends.
+  * New maintainer. (Closes: #213893)
+  * Bumped Standards-Version to 3.6.1. No change.
+  * Added 'Dell' to the package description so it's easier to locate
+    by possible users.
+  * Corrected menu entry for xhotswap and included one for khotswap.
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as>  Fri, 10 Oct 2003 17:51:52 +0200
+
+hotswap (0.3.2-3) unstable; urgency=low
+
+  * Updated copyright of manpages to be GPL instead of FDL, in
+    coordination with upstream; Closes: #292958.
+
+ -- Wouter Verhelst <wouter@debian.org>  Mon,  4 Aug 2003 09:46:44 +0200
+
+hotswap (0.3.2-2) unstable; urgency=low
+
+  * Recompile against lesstif2
+  * Fixed incorrect assumption about char signedness (closes: #181233)
+
+ -- Wouter Verhelst <wouter@debian.org>  Sun, 15 Jun 2003 16:12:43 +0200
+
+hotswap (0.3.2-1) unstable; urgency=low
+
+  * New upstream release:
+    * Support for more devices than just /dev/hdc, through an XML
+      configuration file
+    * upstream now includes our manpage, drop that from the debian/
+      directory.
+  * Bumped standards-version.
+
+ -- Wouter Verhelst <wouter@debian.org>  Thu, 23 Jan 2003 23:17:46 +0100
+
+hotswap (0.2.0-2) unstable; urgency=low
+
+  * Added a menu-entry for xhotswap
+
+ -- Wouter Verhelst <wouter@debian.org>  Fri, 10 May 2002 14:40:00 +0200
+
+hotswap (0.2.0-1) unstable; urgency=low
+
+  * Initial Release. Closes:#142905
+
+ -- Wouter Verhelst <wouter@debian.org>  Sun, 14 Apr 2002 10:22:53 +0200
+
--- hotswap-0.4.0.orig/debian/hotswap-gui.menu
+++ hotswap-0.4.0/debian/hotswap-gui.menu
@@ -0,0 +1,2 @@
+?package(hotswap-gui):needs="x11" section="Applications/System/Hardware" title="xhotswap" command="/usr/bin/xhotswap"
+?package(hotswap-gui):needs="x11" section="Applications/System/Hardware" title="khotswap" command="/usr/bin/khotswap %i %m -caption \"%c\""
--- hotswap-0.4.0.orig/debian/hotswap-text.menu
+++ hotswap-0.4.0/debian/hotswap-text.menu
@@ -0,0 +1 @@
+?package(hotswap-text):needs="text" section="Applications/System/Hardware" title="hotswap" command="/usr/bin/hotswap"
