[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#670544: marked as done ([PATCH] mouseemu: Helping to update to packaging format 3.0)



Your message dated Thu, 6 Mar 2014 08:19:04 +0100
with message-id <20140306071904.GA26396@orion>
and subject line Fixed in 0.15-10
has caused the Debian Bug report #670544,
regarding [PATCH] mouseemu: Helping to update to packaging format 3.0
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
670544: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670544
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: mouseemu
Severity: wishlist
Tags: patch

Hi,

The dpatch patch management system has been deprecated for some time. The
Lintian currently flags use of dpatch packages as an error. The new 3.0
packaging format is an improved version which, among other things, contains
patch management built-in. For more information, see:

    http://wiki.debian.org/Projects/DebSrc3.0

I had some free time; see attached patch to migrate to new package
format. Note that all files in debian/patches/* are canocalized to
*.patch.

Let me know if there is anything that needs adjusting or if it is ok
to upload this version in a NMU in case you are working on other
issues needing attention.

Thanks,
Jari

>From 5a977278a90d070e9bf8c338cf12c4d6aea04bad Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Thu, 26 Apr 2012 17:35:07 +0300
Subject: [PATCH] format-3.0
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 debian/changelog                                   |   16 +++++++
 debian/compat                                      |    2 +-
 debian/control                                     |    8 ++--
 debian/copyright                                   |    4 +-
 debian/mouseemu.postrm                             |    4 +-
 debian/mouseemu.preinst                            |    4 +-
 debian/patches/00list                              |   14 ------
 .../patches/{01_nofork.dpatch => 02-nofork.patch}  |    0
 ...passthrough.dpatch => 04-mod-passthrough.patch} |    0
 .../{21_makefile.dpatch => 06-makefile.patch}      |    0
 debian/patches/{31_usage.dpatch => 08-usage.patch} |    0
 .../{41_defaults.dpatch => 10-defaults.patch}      |    0
 .../{51_manpage.dpatch => 12-manpage.patch}        |    0
 .../patches/{61_rescan.dpatch => 14-rescan.patch}  |    0
 debian/patches/{syslog.dpatch => 16-syslog.patch}  |   47 +++++++++++---------
 .../{63_pidfile.dpatch => 18-pidfile.patch}        |    0
 ..._error_msg.dpatch => 20-uinput-error-msg.patch} |   11 +++--
 ...ze_device.dpatch => 22-initialize-device.patch} |    8 ++--
 .../{write_error.dpatch => 24-write-error.patch}   |   10 +++--
 ...ype_virtual.dpatch => 26-bustype-virtual.patch} |   13 +++---
 .../{dual_devices.dpatch => 28-dual-devices.patch} |   23 +++++-----
 debian/patches/series                              |   14 ++++++
 debian/rules                                       |   17 +++----
 debian/source/format                               |    1 +
 24 files changed, 116 insertions(+), 80 deletions(-)
 mode change 100644 => 100755 debian/mouseemu.postrm
 mode change 100644 => 100755 debian/mouseemu.preinst
 delete mode 100644 debian/patches/00list
 rename debian/patches/{01_nofork.dpatch => 02-nofork.patch} (100%)
 rename debian/patches/{11_mod-passthrough.dpatch => 04-mod-passthrough.patch} (100%)
 rename debian/patches/{21_makefile.dpatch => 06-makefile.patch} (100%)
 rename debian/patches/{31_usage.dpatch => 08-usage.patch} (100%)
 rename debian/patches/{41_defaults.dpatch => 10-defaults.patch} (100%)
 rename debian/patches/{51_manpage.dpatch => 12-manpage.patch} (100%)
 rename debian/patches/{61_rescan.dpatch => 14-rescan.patch} (100%)
 rename debian/patches/{syslog.dpatch => 16-syslog.patch} (88%)
 rename debian/patches/{63_pidfile.dpatch => 18-pidfile.patch} (100%)
 rename debian/patches/{uinput_error_msg.dpatch => 20-uinput-error-msg.patch} (74%)
 rename debian/patches/{initialize_device.dpatch => 22-initialize-device.patch} (81%)
 rename debian/patches/{write_error.dpatch => 24-write-error.patch} (75%)
 rename debian/patches/{bustype_virtual.dpatch => 26-bustype-virtual.patch} (79%)
 rename debian/patches/{dual_devices.dpatch => 28-dual-devices.patch} (93%)
 create mode 100644 debian/patches/series
 create mode 100644 debian/source/format

diff --git a/debian/changelog b/debian/changelog
index aa783a7..468ae95 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,19 @@
+mouseemu (0.15-9.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt".
+  * Update to Standards-Version to 3.9.3 and debhelper to 9.
+  * Use plain Vcs-* header names.
+  * Add build-arch and build-indep targets; use dh_prep in rules file.
+  * Patches:
+    - Number all consecutively.
+    - Update with "quilt refresh" to make them apply cleanly.
+  * Fix debian-rules-ignores-make-clean-error (Lintian).
+  * Fix copyright-without-copyright-notice (Lintian).
+  * Fix maintainer-script-without-set-e (Lintian).
+
+ -- Jari Aalto <jari.aalto@cante.net>  Thu, 26 Apr 2012 17:34:12 +0300
+
 mouseemu (0.15-9) unstable; urgency=low
 
   * Add XS-Vcs-Browser control field
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+9
diff --git a/debian/control b/debian/control
index 8282203..08ab5d2 100644
--- a/debian/control
+++ b/debian/control
@@ -2,10 +2,10 @@ Source: mouseemu
 Section: utils
 Priority: optional
 Maintainer: Gaudenz Steinlin <gaudenz@debian.org>
-Build-Depends: debhelper (>= 5.0.0), dpatch
-Standards-Version: 3.7.2
-XS-Vcs-Svn: svn://svn.debian.org/collab-maint/deb-maint/mouseemu/trunk
-XS-Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/deb-maint/mouseemu/trunk
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.3
+Vcs-Svn: svn://svn.debian.org/collab-maint/deb-maint/mouseemu/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/deb-maint/mouseemu/trunk
 
 Package: mouseemu
 Architecture: any
diff --git a/debian/copyright b/debian/copyright
index 550df5e..63e6d86 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,7 +3,9 @@ Mon,  5 Apr 2004 02:03:22 +0200.
 
 It was downloaded from http://www.geekounet.org/powerbook/files/
 
-Upstream Author: Colin Leroy <colin@colino.net>
+Upstream Author:
+
+Copyright (C) 2003, 2004 Colin Leroy <colin@colino.net>
 
 Copyright:
 
diff --git a/debian/mouseemu.postrm b/debian/mouseemu.postrm
old mode 100644
new mode 100755
index 5917148..79f671e
--- a/debian/mouseemu.postrm
+++ b/debian/mouseemu.postrm
@@ -1,4 +1,6 @@
-#!/bin/sh -e
+#!/bin/sh
+
+set -e
 
 #DEBHELPER#
 
diff --git a/debian/mouseemu.preinst b/debian/mouseemu.preinst
old mode 100644
new mode 100755
index bef9301..333e8aa
--- a/debian/mouseemu.preinst
+++ b/debian/mouseemu.preinst
@@ -1,4 +1,6 @@
-#!/bin/sh -e
+#!/bin/sh
+
+set -e
 
 
 # if upgrading from version below 0.15-3 
diff --git a/debian/patches/00list b/debian/patches/00list
deleted file mode 100644
index 3e7906d..0000000
--- a/debian/patches/00list
+++ /dev/null
@@ -1,14 +0,0 @@
-01_nofork.dpatch
-11_mod-passthrough.dpatch
-21_makefile.dpatch
-31_usage.dpatch
-41_defaults.dpatch
-51_manpage.dpatch
-61_rescan.dpatch
-syslog.dpatch
-63_pidfile.dpatch
-uinput_error_msg.dpatch
-initialize_device.dpatch
-write_error.dpatch
-bustype_virtual.dpatch
-dual_devices.dpatch
diff --git a/debian/patches/01_nofork.dpatch b/debian/patches/02-nofork.patch
similarity index 100%
rename from debian/patches/01_nofork.dpatch
rename to debian/patches/02-nofork.patch
diff --git a/debian/patches/11_mod-passthrough.dpatch b/debian/patches/04-mod-passthrough.patch
similarity index 100%
rename from debian/patches/11_mod-passthrough.dpatch
rename to debian/patches/04-mod-passthrough.patch
diff --git a/debian/patches/21_makefile.dpatch b/debian/patches/06-makefile.patch
similarity index 100%
rename from debian/patches/21_makefile.dpatch
rename to debian/patches/06-makefile.patch
diff --git a/debian/patches/31_usage.dpatch b/debian/patches/08-usage.patch
similarity index 100%
rename from debian/patches/31_usage.dpatch
rename to debian/patches/08-usage.patch
diff --git a/debian/patches/41_defaults.dpatch b/debian/patches/10-defaults.patch
similarity index 100%
rename from debian/patches/41_defaults.dpatch
rename to debian/patches/10-defaults.patch
diff --git a/debian/patches/51_manpage.dpatch b/debian/patches/12-manpage.patch
similarity index 100%
rename from debian/patches/51_manpage.dpatch
rename to debian/patches/12-manpage.patch
diff --git a/debian/patches/61_rescan.dpatch b/debian/patches/14-rescan.patch
similarity index 100%
rename from debian/patches/61_rescan.dpatch
rename to debian/patches/14-rescan.patch
diff --git a/debian/patches/syslog.dpatch b/debian/patches/16-syslog.patch
similarity index 88%
rename from debian/patches/syslog.dpatch
rename to debian/patches/16-syslog.patch
index 2ab3e67..b1104b3 100644
--- a/debian/patches/syslog.dpatch
+++ b/debian/patches/16-syslog.patch
@@ -5,9 +5,13 @@
 ## DP: log to syslog instead of stderr
 
 @DPATCH@
-diff -urNad mouseemu-0.15~/mouseemu.8 mouseemu-0.15/mouseemu.8
---- mouseemu-0.15~/mouseemu.8	2006-10-05 00:44:05.000000000 +0200
-+++ mouseemu-0.15/mouseemu.8	2006-10-05 00:45:16.000000000 +0200
+---
+ mouseemu.8 |    3 ++
+ mouseemu.c |   70 +++++++++++++++++++++++++++++++++++++++----------------------
+ 2 files changed, 48 insertions(+), 25 deletions(-)
+
+--- a/mouseemu.8
++++ b/mouseemu.8
 @@ -56,6 +56,9 @@
  Automatically scan every 5s for new devices. This is normally not need, as udev should
  inform mouseemu about new devices.
@@ -18,9 +22,8 @@ diff -urNad mouseemu-0.15~/mouseemu.8 mouseemu-0.15/mouseemu.8
  .B -help
  show usage message
  .PP
-diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
---- mouseemu-0.15~/mouseemu.c	2006-10-05 00:44:05.000000000 +0200
-+++ mouseemu-0.15/mouseemu.c	2006-10-05 00:45:11.000000000 +0200
+--- a/mouseemu.c
++++ b/mouseemu.c
 @@ -18,12 +18,14 @@
  
  #include <stdio.h>
@@ -34,9 +37,9 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  #include <wait.h>
 +#include <syslog.h>
  #include <sys/time.h>
- #include <linux/input.h>
- #include <linux/uinput.h>
-@@ -57,6 +59,17 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -61,6 +63,17 @@
  static int debug	= 0;
  static int autorescan   = 0;
  
@@ -54,7 +57,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  static void send_event(int fd, int type, int code, int value)
  {
  	struct input_event event;
-@@ -234,7 +247,7 @@
+@@ -238,7 +251,7 @@
  						unregister_inputhandler(eventdevs[m].handle);
  						close(eventdevs[m].handle);
  					}
@@ -63,7 +66,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  					eventdevs[m].handle= fd;
  					eventdevs[m].product = id[ID_PRODUCT];
  					eventdevs[m].vendor = id[ID_VENDOR];
-@@ -254,7 +267,7 @@
+@@ -258,7 +271,7 @@
  						unregister_inputhandler(eventdevs[m].handle);
  						close(eventdevs[m].handle);
  					}
@@ -72,7 +75,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  					eventdevs[m].handle= fd;
  					eventdevs[m].product = id[ID_PRODUCT];
  					eventdevs[m].vendor = id[ID_VENDOR];
-@@ -366,27 +379,27 @@
+@@ -373,27 +386,27 @@
  {
  	int fd = -1;
  
@@ -108,7 +111,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  	if (fd > 0)
  		return fd;
  
-@@ -492,7 +505,7 @@
+@@ -499,7 +512,7 @@
  {
  	int i, cfd;
  	
@@ -117,7 +120,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  
          uinput_close(ui_keyb_fd);
          uinput_close(ui_mouse_fd);
-@@ -568,7 +581,8 @@
+@@ -575,7 +588,8 @@
  	                "\t[-typing-block DELAY]\n"
  	                "\t[-device UINPUT_DEVICE]\n"
  	                "\t[-nofork]\n"
@@ -127,7 +130,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  					argv[0]);
  	fprintf(stream, "All modifier and button key arguments are\n"
  	                "key scancodes. They can be found in \n"
-@@ -600,8 +614,6 @@
+@@ -608,8 +622,6 @@
  	int nofork = 0;
  	//int argv0size = strlen(argv[0]);
  
@@ -135,8 +138,8 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
 -
  	install_sighandler();
  
- 	uinputdev = DEFAULT_UINPUT;
-@@ -663,23 +675,33 @@
+ #ifdef __powerpc__
+@@ -694,23 +706,33 @@
  					autorescan=1;
  					i += 1;
  					continue;
@@ -174,7 +177,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  		goto startops;
  	}
  	if (fpid != 0) {
-@@ -689,7 +711,7 @@
+@@ -720,7 +742,7 @@
  	setsid();
  	pid = fork();
  	if (pid == -1) {
@@ -183,7 +186,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  		goto startops;
  	}
  
-@@ -723,7 +745,7 @@
+@@ -761,7 +783,7 @@
  			}
  			
  		}
@@ -192,7 +195,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  		if (kill(pid, SIGTERM)<0)
  			perror("mouseemu: termination of uinput handlers failed\n");
  			
-@@ -735,8 +757,6 @@
+@@ -773,8 +795,6 @@
  	
  	//strncpy(argv[0],"mouseemu",argv0size);
  startops:
@@ -201,7 +204,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  
  	for (i=0; i<EVENT_DEVS; i++) {
  		eventdevs[i].handle = -1;
-@@ -753,8 +773,8 @@
+@@ -791,8 +811,8 @@
  
  	running = uinput_setup();
  	if (running < 0) {
@@ -212,7 +215,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  	}
                                                           
  
-@@ -780,7 +800,7 @@
+@@ -818,7 +838,7 @@
  				usleep(10);
  			else {
  				if (errno == ENODEV) {
diff --git a/debian/patches/63_pidfile.dpatch b/debian/patches/18-pidfile.patch
similarity index 100%
rename from debian/patches/63_pidfile.dpatch
rename to debian/patches/18-pidfile.patch
diff --git a/debian/patches/uinput_error_msg.dpatch b/debian/patches/20-uinput-error-msg.patch
similarity index 74%
rename from debian/patches/uinput_error_msg.dpatch
rename to debian/patches/20-uinput-error-msg.patch
index 219b69a..5a7a200 100644
--- a/debian/patches/uinput_error_msg.dpatch
+++ b/debian/patches/20-uinput-error-msg.patch
@@ -5,10 +5,13 @@
 ## DP: send error message to stderr if no uinput device is found
 
 @DPATCH@
-diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
---- mouseemu-0.15~/mouseemu.c	2006-10-05 00:49:46.000000000 +0200
-+++ mouseemu-0.15/mouseemu.c	2006-10-05 00:57:30.000000000 +0200
-@@ -779,8 +779,8 @@
+---
+ mouseemu.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/mouseemu.c
++++ b/mouseemu.c
+@@ -821,8 +821,8 @@
  
  	running = uinput_setup();
  	if (running < 0) {
diff --git a/debian/patches/initialize_device.dpatch b/debian/patches/22-initialize-device.patch
similarity index 81%
rename from debian/patches/initialize_device.dpatch
rename to debian/patches/22-initialize-device.patch
index 69828d9..26fe403 100644
--- a/debian/patches/initialize_device.dpatch
+++ b/debian/patches/22-initialize-device.patch
@@ -5,11 +5,13 @@
 ## DP: Intialize all fields in uinput_user_dev, otherwise strange things 
 ## DP: like dead keyboard, etc. might happen
 ##
-diff --git a/mouseemu.c b/mouseemu.c
-index 6decb59..9c5b332 100644
+---
+# mouseemu.c |    1 +
+# 1 file changed, 1 insertion(+)
+#
 --- a/mouseemu.c
 +++ b/mouseemu.c
-@@ -365,6 +365,7 @@ int uinput_setup(void)
+@@ -418,6 +418,7 @@
  	struct uinput_user_dev device;
  	int i;
  	
diff --git a/debian/patches/write_error.dpatch b/debian/patches/24-write-error.patch
similarity index 75%
rename from debian/patches/write_error.dpatch
rename to debian/patches/24-write-error.patch
index 3385317..bb201ca 100644
--- a/debian/patches/write_error.dpatch
+++ b/debian/patches/24-write-error.patch
@@ -6,9 +6,13 @@
 ##
 @DPATCH@
 
---- a/mouseemu.c.orig	2006-11-18 17:36:47.000000000 +0100
-+++ b/mouseemu.c	2006-11-18 17:47:11.000000000 +0100
-@@ -88,7 +88,7 @@
+---
+ mouseemu.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/mouseemu.c
++++ b/mouseemu.c
+@@ -92,7 +92,7 @@
  
  static void passthrough(int fd, struct input_event event)
  {
diff --git a/debian/patches/bustype_virtual.dpatch b/debian/patches/26-bustype-virtual.patch
similarity index 79%
rename from debian/patches/bustype_virtual.dpatch
rename to debian/patches/26-bustype-virtual.patch
index f4d1f9d..8f079d3 100644
--- a/debian/patches/bustype_virtual.dpatch
+++ b/debian/patches/26-bustype-virtual.patch
@@ -5,9 +5,12 @@
 ## DP: No description.
 
 @DPATCH@
-diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
---- mouseemu-0.15~/mouseemu.c	2006-12-08 05:59:49.000000000 +0000
-+++ mouseemu-0.15/mouseemu.c	2006-12-08 06:06:03.000000000 +0000
+---
+ mouseemu.c |    7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+--- a/mouseemu.c
++++ b/mouseemu.c
 @@ -30,6 +30,9 @@
  #include <sys/types.h>
  #include <sys/stat.h>
@@ -18,7 +21,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  #include <linux/uinput.h>
  #include "mouseemu.h"
  #include "defkeys.h"
-@@ -431,7 +434,7 @@
+@@ -434,7 +437,7 @@
  	
  	strcpy(device.name, "Mouseemu virtual keyboard");
  
@@ -27,7 +30,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  	device.id.vendor = 0x1F;
  	device.id.product = 0x1F;
  	device.id.version = 0;
-@@ -473,7 +476,7 @@
+@@ -476,7 +479,7 @@
  
          strcpy(device.name, "Mouseemu virtual mouse");
  
diff --git a/debian/patches/dual_devices.dpatch b/debian/patches/28-dual-devices.patch
similarity index 93%
rename from debian/patches/dual_devices.dpatch
rename to debian/patches/28-dual-devices.patch
index b46aefe..e1147eb 100644
--- a/debian/patches/dual_devices.dpatch
+++ b/debian/patches/28-dual-devices.patch
@@ -5,9 +5,13 @@
 ## DP: No description.
 
 @DPATCH@
-diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
---- mouseemu-0.15~/mouseemu.c	2007-02-08 01:59:26.000000000 +0000
-+++ mouseemu-0.15/mouseemu.c	2007-02-08 01:59:44.000000000 +0000
+---
+ mouseemu.c |  117 +++++++++++++++++++++++++++++++++++--------------------------
+ mouseemu.h |    8 +++-
+ 2 files changed, 74 insertions(+), 51 deletions(-)
+
+--- a/mouseemu.c
++++ b/mouseemu.c
 @@ -187,52 +187,68 @@
  	}
  }
@@ -172,7 +176,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  			} else
  				close(fd);
  		}
-@@ -310,12 +326,13 @@
+@@ -313,12 +329,13 @@
  	scan_for_devs();
  }
  
@@ -187,7 +191,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  			ihandler[n].fd = fd;
        			ihandler[n].handler = func;
  			ihandler[n].grab = grab;
-@@ -332,6 +349,7 @@
+@@ -335,6 +352,7 @@
  
  	for (n = 0; n < EVENT_DEVS; n++)
  		if (found) {
@@ -195,7 +199,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  			ihandler[n-1].fd = ihandler[n].fd;
  			ihandler[n-1].handler = ihandler[n].handler;
  		} else if (ihandler[n].fd == fd) {
-@@ -364,7 +382,7 @@
+@@ -367,7 +385,7 @@
  	for (n=0; n < EVENT_DEVS; n++) {
  		if (ihandler[n].fd == -1) continue;
  		if (FD_ISSET(ihandler[n].fd, inset))
@@ -204,7 +208,7 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  	}
  }
  
-@@ -809,6 +827,7 @@
+@@ -816,6 +834,7 @@
  		eventdevs[i].product= 0;
  					                
  		ihandler[i].handler=0;
@@ -212,9 +216,8 @@ diff -urNad mouseemu-0.15~/mouseemu.c mouseemu-0.15/mouseemu.c
  		ihandler[i].fd=-1;
  	}
  
-diff -urNad mouseemu-0.15~/mouseemu.h mouseemu-0.15/mouseemu.h
---- mouseemu-0.15~/mouseemu.h	2005-03-30 07:41:00.000000000 +0100
-+++ mouseemu-0.15/mouseemu.h	2007-02-08 01:59:27.000000000 +0000
+--- a/mouseemu.h
++++ b/mouseemu.h
 @@ -33,6 +33,9 @@
  #define BTN2 0x04
  #define BTN3 0x02
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..577bf0c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,14 @@
+02-nofork.patch
+04-mod-passthrough.patch
+06-makefile.patch
+08-usage.patch
+10-defaults.patch
+12-manpage.patch
+14-rescan.patch
+16-syslog.patch
+18-pidfile.patch
+20-uinput-error-msg.patch
+22-initialize-device.patch
+24-write-error.patch
+26-bustype-virtual.patch
+28-dual-devices.patch
diff --git a/debian/rules b/debian/rules
index eec42a4..a032b4d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,9 +6,6 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-
-
-
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -28,17 +25,16 @@ else
 dmidecode :=
 endif
 
-# include dpatch patch/unpatch targets
-include /usr/share/dpatch/dpatch.make
-
 configure: configure-stamp
-configure-stamp: patch
+configure-stamp:
 	dh_testdir
 	# Add here commands to configure the package.
 	# Nothing required to configure yet
 
 	touch configure-stamp
 
+build-arch: build
+build-indep: build
 
 build: build-stamp
 
@@ -50,21 +46,20 @@ build-stamp: configure-stamp
 
 	touch build-stamp
 
-clean: clean-patched unpatch
-clean-patched:
+clean:
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp configure-stamp
 
 	# Add here commands to clean up after the build process.
-	-$(MAKE) clean
+	[ ! -f Makefile ] || $(MAKE) clean
 
 	dh_clean 
 
 install: build
 	dh_testdir
 	dh_testroot
-	dh_clean -k 
+	dh_prep
 	dh_installdirs
 
 	# Add here commands to install the package into debian/mouseemu.
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
-- 
1.7.10


--- End Message ---
--- Begin Message ---
Fixed in 0.15-10

--- End Message ---

Reply to: