--- misdn-user-1.1.7.orig/debian/compat
+++ misdn-user-1.1.7/debian/compat
@@ -0,0 +1 @@
+5
--- misdn-user-1.1.7.orig/debian/changelog
+++ misdn-user-1.1.7/debian/changelog
@@ -0,0 +1,61 @@
+misdn-user (1.1.7-1) UNRELEASED; urgency=low
+
+  * New upstream release
+
+ --  <linuxmaniac@torreviejawireless.org>  Wed, 14 Nov 2007 12:12:25 +0000
+
+misdn-user (1.1.6+git20071011-1) unstable; urgency=low
+
+  * upgrading to git version
+
+ --  <linuxmaniac@torreviejawireless.org>  Thu, 11 Oct 2007 15:19:06 +0000
+
+misdn-user (1.1.6-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Victor Seva <linuxmaniac@torreviejawireless.org>  Wed, 19 Sep 2007 14:45:27 +0000
+
+misdn-user (1.1.5-1) unstable; urgency=low
+
+  * New upstream release
+
+ --  Victor Seva <linuxmaniac@torreviejawireless.org>  Thu, 26 Jul 2007 11:53:35 +0000
+
+misdn-user (1.1.2+git20070417-1) unstable; urgency=low
+
+  * (NOT RELEASED YET) New upstream release
+
+ -- Victor Seva <linuxmaniac@torreviejawireless.org>  Tue, 17 Apr 2007 10:55:13 +0200
+
+misdn-user (1.1.2-2) unstable; urgency=low
+
+  * renamed to libmisdnuser0 and libmisdnuser-dev
+
+ -- Victor Seva <linuxmaniac@torreviejawireless.org>  Fri, 13 Apr 2007 17:36:50 +0200
+
+misdn-user (1.1.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Depends: linux-headers-misdn-1.1.2
+
+ -- Victor Seva <linuxmaniac@torreviejawireless.org>  Tue, 10 Apr 2007 12:10:07 +0200
+
+misdn-user (1.1.1-3) unstable; urgency=low
+
+  * removed misdnuser0 
+
+ -- Victor Seva Lopez <vseva@sanjosegrupo.com>  Tue, 13 Mar 2007 17:41:02 +0100
+
+misdn-user (1.1.1-2) unstable; urgency=low
+
+  * Depends: linux-headers-misdn-1.1.1
+
+ -- Victor Seva Lopez <vseva@sanjosegrupo.com>  Tue, 13 Mar 2007 17:17:15 +0100
+
+misdn-user (1.1.1-1) unstable; urgency=low
+
+  * Initial release 
+
+ -- Victor Seva Lopez <vseva@sanjosegrupo.com>  Tue, 13 Mar 2007 10:43:06 +0100
+
--- misdn-user-1.1.7.orig/debian/control
+++ misdn-user-1.1.7/debian/control
@@ -0,0 +1,20 @@
+Source: misdn-user
+Priority: extra
+Maintainer: Victor Seva Lopez <linuxmaniac@torreviejawireless.org>
+Build-Depends: debhelper (>= 5), dpatch, linux-headers-misdn ( >= 1.1.6 ), flex, libncurses-dev
+Standards-Version: 3.7.2
+Section: libs
+
+Package: libmisdnuser-dev
+Section: libdevel
+Architecture: any
+Depends: linux-headers-misdn ( >= 1.1.6 )
+Description: misdn userspace library
+ Long 
+
+Package: libmisdnuser0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description:  misdn userspace library
+ Long
--- misdn-user-1.1.7.orig/debian/libmisdnuser0.install
+++ misdn-user-1.1.7/debian/libmisdnuser0.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/lib*.so*
--- misdn-user-1.1.7.orig/debian/libmisdnuser0.dirs
+++ misdn-user-1.1.7/debian/libmisdnuser0.dirs
@@ -0,0 +1 @@
+usr/lib
--- misdn-user-1.1.7.orig/debian/rules
+++ misdn-user-1.1.7/debian/rules
@@ -0,0 +1,91 @@
+#!/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
+
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+# shared library versions, option 1
+#version=1.1.2
+#major=1
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+version=`ls src/.libs/lib*.so.* | \
+ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+major=`ls src/.libs/lib*.so.* | \
+ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/tmp
+	$(MAKE) INSTALL_PREFIX=$(CURDIR)/debian/tmp install
+
+
+# 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_installchangelogs 
+	dh_installdocs
+	dh_install
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps debian/tmp/usr/lib/*
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- misdn-user-1.1.7.orig/debian/libmisdnuser-dev.dirs
+++ misdn-user-1.1.7/debian/libmisdnuser-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
--- misdn-user-1.1.7.orig/debian/patches/00list
+++ misdn-user-1.1.7/debian/patches/00list
@@ -0,0 +1 @@
+soname
--- misdn-user-1.1.7.orig/debian/patches/soname.dpatch
+++ misdn-user-1.1.7/debian/patches/soname.dpatch
@@ -0,0 +1,153 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## soname.dpatch by  <linuxmaniac@torreviejawireless.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: soname copied from http://www.isdn4linux.de/pipermail/isdn4linux/2006-October/002593.html
+## DP: by David Woodhouse dwmw2 at infradead.org 
+
+@DPATCH@
+diff -urNad misdn-user-1.1.2~/i4lnet/Makefile misdn-user-1.1.2/i4lnet/Makefile
+--- misdn-user-1.1.2~/i4lnet/Makefile	2006-12-21 10:25:22.000000000 +0100
++++ misdn-user-1.1.2/i4lnet/Makefile	2007-04-13 20:01:11.000000000 +0200
+@@ -1,13 +1,18 @@
+ CC = gcc
+ AR = ar
+ RANLIB = ranlib
++SOMAJOR=0
++SOMINOR=0.0
++SOVERSION=$(SOMAJOR).$(SOMINOR)
+ 
+-all: libisdnnet.a libisdnnet_pic.a libisdnnet.so
++all: libisdnnet.a libisdnnet_pic.a libisdnnet.so.$(SOVERSION)
+ 
+ install:
+-	install -m 644 libisdnnet.a $(INSTALL_PREFIX)/usr/lib
+-	install -m 644 libisdnnet_pic.a $(INSTALL_PREFIX)/usr/lib
+-	install -m 644 libisdnnet.so $(INSTALL_PREFIX)/usr/lib
++	install -m 644 libisdnnet.a $(INSTALL_PREFIX)$(LIBDIR)
++	install -m 644 libisdnnet_pic.a $(INSTALL_PREFIX)$(LIBDIR)
++	install -m 755 libisdnnet.so.$(SOVERSION) $(INSTALL_PREFIX)$(LIBDIR)
++	ln -sf libisdnnet.so.$(SOVERSION) $(INSTALL_PREFIX)/$(LIBDIR)/libisdnnet.so.$(SOMAJOR)
++	ln -sf libisdnnet.so.$(SOVERSION) $(INSTALL_PREFIX)/$(LIBDIR)/libisdnnet.so
+ 	cp *.h $(INSTALL_PREFIX)/usr/include/mISDNuser/
+ 
+ ISDNNET_OBJ = net_if.o isdn_debug.o isdn_msg.o fsm.o net_l2.o tei.o net_l3.o \
+@@ -27,8 +32,8 @@
+ 	$(AR) cru $@ $^
+ 	$(RANLIB) $@
+ 
+-libisdnnet.so: $(ISDNNET_OBJ)
+-	$(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $^
++libisdnnet.so.$(SOVERSION): $(ISDNNET_OBJ)
++	$(CC) $(CFLAGS) -shared -Xlinker -x -Wl,-soname,libisdnnet.so.$(SOMAJOR) -o $@ $^
+ 
+ .c.o:
+ 	$(CC) $(CFLAGS) -o $@ -c $<
+@@ -62,7 +67,7 @@
+ 
+ clean:
+ 	rm -f *.o *.lo *~ DEADJOE 
+-	rm -f libisdnnet.a libisdnnet_pic.a libisdnnet.so
++	rm -f libisdnnet.a libisdnnet_pic.a libisdnnet.so*
+ 
+ distclean: clean
+ 	rm -f *.a
+diff -urNad misdn-user-1.1.2~/lib/Makefile misdn-user-1.1.2/lib/Makefile
+--- misdn-user-1.1.2~/lib/Makefile	2006-12-21 10:25:23.000000000 +0100
++++ misdn-user-1.1.2/lib/Makefile	2007-04-13 20:12:01.000000000 +0200
+@@ -1,13 +1,18 @@
+ CC = gcc
+ AR = ar
+ RANLIB = ranlib
++SOMAJOR=0
++SOMINOR=0.0
++SOVERSION=$(SOMAJOR).$(SOMINOR)
+ 
+-all: libmISDN.a libmISDN_pic.a libmISDN.so
++all: libmISDN.a libmISDN_pic.a libmISDN.so.$(SOVERSION)
+ 
+ install:
+-	install -m 644 libmISDN.so $(INSTALL_PREFIX)/usr/lib
+-	install -m 644 libmISDN_pic.a $(INSTALL_PREFIX)/usr/lib
+-	install -m 644 libmISDN.a $(INSTALL_PREFIX)/usr/lib
++	install -m 755 libmISDN.so.$(SOVERSION) $(INSTALL_PREFIX)$(LIBDIR)
++	ln -sf libmISDN.so.$(SOVERSION) $(INSTALL_PREFIX)/$(LIBDIR)/libmISDN.so.$(SOMAJOR)
++	ln -sf libmISDN.so.$(SOVERSION) $(INSTALL_PREFIX)/$(LIBDIR)/libmISDN.so
++	install -m 644 libmISDN_pic.a $(INSTALL_PREFIX)$(LIBDIR)
++	install -m 644 libmISDN.a $(INSTALL_PREFIX)$(LIBDIR)
+ 
+ LIBMISDN_OBJS = device.o layer.o stack.o status.o
+ LIBMISDN_PICOBJS = $(LIBMISDN_OBJS:%.o=%.lo)
+@@ -24,8 +29,8 @@
+ 	$(AR) cru $@ $^
+ 	$(RANLIB) $@
+ 
+-libmISDN.so: $(LIBMISDN_OBJS)
+-	$(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $^
++libmISDN.so.$(SOVERSION): $(LIBMISDN_OBJS)
++	$(CC) $(CFLAGS) -shared -Xlinker -x -Wl,-soname,libmISDN.so.$(SOMAJOR) -o $@ $^
+ 
+ .c.o:
+ 	$(CC) $(CFLAGS) -o $@ -c $<
+@@ -39,7 +44,7 @@
+ status.o status.lo: status.c ../include/mISDNlib.h 
+ 
+ clean:
+-	rm -f libmISDN.a libMISDN_pic.a libmISDN.so
++	rm -f libmISDN.a libMISDN_pic.a libmISDN.so*
+ 	rm -f *.o *.lo *~ DEADJOE
+ 
+ distclean: clean
+diff -urNad misdn-user-1.1.2~/suppserv/Makefile misdn-user-1.1.2/suppserv/Makefile
+--- misdn-user-1.1.2~/suppserv/Makefile	2006-10-18 14:32:21.000000000 +0200
++++ misdn-user-1.1.2/suppserv/Makefile	2007-04-13 20:06:44.000000000 +0200
+@@ -1,20 +1,24 @@
+ CC = gcc
+ AR = ar
+ RANLIB = ranlib
+-
++SOMAJOR=0
++SOMINOR=0.0
++SOVERSION=$(SOMAJOR).$(SOMINOR)
+ #CFLAGS += -DASN1_DEBUG
+ 
+ SUPPSERV_OBJ = asn1.o asn1_enc.o asn1_generic.o asn1_aoc.o asn1_basic_service.o asn1_comp.o asn1_diversion.o asn1_address.o fac.o
+ SUPPSERV_PICOBJ = $(SUPPSERV_OBJ:%.o=%.lo)
+ 
+-all: libsuppserv.a libsuppserv_pic.a libsuppserv.so
++all: libsuppserv.a libsuppserv_pic.a libsuppserv.so.$(SOVERSION)
+ 
+ main: $(SUPPSERVOBJ)
+ 
+ install:
+-	install -m 644 libsuppserv.a $(INSTALL_PREFIX)/usr/lib
+-	install -m 644 libsuppserv_pic.a $(INSTALL_PREFIX)/usr/lib
+-	install -m 644 libsuppserv.so $(INSTALL_PREFIX)/usr/lib
++	install -m 644 libsuppserv.a $(INSTALL_PREFIX)$(LIBDIR)
++	install -m 644 libsuppserv_pic.a $(INSTALL_PREFIX)$(LIBDIR)
++	install -m 755 libsuppserv.so.$(SOVERSION) $(INSTALL_PREFIX)$(LIBDIR)
++	ln -sf libsupperv.so.$(SOVERSION) $(INSTALL_PREFIX)/$(LIBDIR)/libsupperv.so.$(SOMAJOR)
++	ln -sf libsupperv.so.$(SOVERSION) $(INSTALL_PREFIX)/$(LIBDIR)/libsupperv.so
+ 	cp *.h $(INSTALL_PREFIX)/usr/include/mISDNuser/
+ 
+ libsuppserv_pic.a: $(SUPPSERV_PICOBJ)
+@@ -25,8 +29,8 @@
+ 	$(AR) cru $@ $<
+ 	$(RANLIB) $@
+ 
+-libsuppserv.so: $(SUPPSERV_OBJ)
+-	$(CC) -shared -Xlinker -x -o $@ $^
++libsuppserv.so.$(SOVERSION): $(SUPPSERV_OBJ)
++	$(CC) -shared -Xlinker -x -Wl,-soname,libsupperv.so.$(SOMAJOR) -o $@ $^
+ 
+ 
+ .c.o:
+@@ -37,7 +41,7 @@
+ 
+ clean:
+ 	rm -f *.o *.lo *~ DEADJOE *.so
+-	rm -f libsuppserv.a libsuppserv_pic.a
++	rm -f libsuppserv.a libsuppserv_pic.a libsupperv.so*
+ 
+ distclean: clean
+ 	rm -f *.a
--- misdn-user-1.1.7.orig/debian/libmisdnuser-dev.install
+++ misdn-user-1.1.7/debian/libmisdnuser-dev.install
@@ -0,0 +1,6 @@
+debian/tmp/usr/include/*
+debian/tmp/usr/lib/lib*.a
+#debian/tmp/usr/lib/lib*.so*
+#debian/tmp/usr/lib/pkgconfig/*
+#debian/tmp/usr/lib/*.la
+#debian/tmp/usr/share/pkgconfig/*
--- misdn-user-1.1.7.orig/debian/copyright
+++ misdn-user-1.1.7/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianized by Victor Seva Lopez <linuxmaniac@torreviejawireless.org> on
+Tue, 13 Mar 2007 10:43:06 +0100.
+
+It was downloaded from http://www.misdn.org/downloads/mISDNuser.tar.gz
+
+Upstream Author: mISDN team
+
+Copyright: mISDN team?
+
+License:
+
+    This package is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+
+The Debian packaging is (C) 2007, Victor Seva Lopez <linuxmaniac@torreviejawireless.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
