--- libmowgli-0.6.1.orig/debian/control
+++ libmowgli-0.6.1/debian/control
@@ -0,0 +1,56 @@
+Source: libmowgli
+Priority: optional
+Maintainer: Patrick Schoenfeld <schoenfeld@in-medias-res.com>
+Uploaders: Adam Cécile (Le_Vert) <gandalf@le-vert.net>, William Pitcock <nenolod@sacredspiral.co.uk>
+Build-Depends: debhelper (>= 5), autotools-dev, dpatch
+Standards-Version: 3.7.3
+Homepage: http://www.atheme.org/projects/mowgli.shtml
+Vcs-Svn: svn://svn.debian.org/svn/collab-maint/ext-maint/libmowgli/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/ext-maint/libmowgli
+Section: libs
+
+Package: libmowgli-dev
+Section: libdevel
+Architecture: any
+Depends: libmowgli1 (= ${binary:Version})
+Description: a high performance development framework for C
+ Mowgli is a development framework for C (like GLib), which provides high
+ performance and highly flexible algorithms. It can be used as a supplement
+ to GLib (to add additional functions (dictionaries, hashes), or replace some
+ of the slow GLib list manipulation functions), or stand alone. It also
+ provides a powerful hook system and convenient logging for your code, as well
+ as a high performance block allocator.
+ .
+ This package contains files needed for development with this library and code
+ examples.
+
+Package: libmowgli1
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: a high performance development framework for C
+ Mowgli is a development framework for C (like GLib), which provides high
+ performance and highly flexible algorithms. It can be used as a supplement
+ to GLib (to add additional functions (dictionaries, hashes), or replace some
+ of the slow GLib list manipulation functions), or stand alone. It also
+ provides a powerful hook system and convenient logging for your code, as well
+ as a high performance block allocator.
+ .
+ This package contains the shared library needed to run program that use the
+ mowgli library.
+
+Package: libmowgli1-dbg
+Priority: extra
+Section: libdevel
+Architecture: any
+Depends: libmowgli1 (= ${binary:Version})
+Description: a high performance development framework for C
+ Mowgli is a development framework for C (like GLib), which provides high
+ performance and highly flexible algorithms. It can be used as a supplement
+ to GLib (to add additional functions (dictionaries, hashes), or replace some
+ of the slow GLib list manipulation functions), or stand alone. It also
+ provides a powerful hook system and convenient logging for your code, as well
+ as a high performance block allocator.
+ .
+ This package contains the debug symbols needed to create meaningful backtraces
+ for applications that use the mowgli library.
--- libmowgli-0.6.1.orig/debian/rules
+++ libmowgli-0.6.1/debian/rules
@@ -0,0 +1,71 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+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: patch-stamp
+	dh_testdir
+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
+	./configure --host=$(DEB_HOST_GNU_TYPE) \
+	            --build=$(DEB_BUILD_GNU_TYPE) \
+	            --prefix=/usr \
+		    CFLAGS="$(CFLAGS)" \
+		    LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+build-stamp: config.status
+	dh_testdir
+	$(MAKE)
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp config.guess config.sub
+	[ ! -f buildsys.mk ] || $(MAKE) distclean
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+
+binary-indep: build install
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples
+	dh_install --sourcedir=debian/tmp
+	dh_link
+	dh_strip --dbg-package=libmowgli1-dbg
+	dh_compress -Xusr/share/doc/libmowgli-dev/examples
+	dh_makeshlibs -V 'libmowgli1 (>= 0.6.0)'
+	dh_fixperms
+	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
--- libmowgli-0.6.1.orig/debian/watch
+++ libmowgli-0.6.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.atheme.org/projects/mowgli.shtml http://distfiles.atheme.org/libmowgli-(.*)\.tgz
--- libmowgli-0.6.1.orig/debian/changelog
+++ libmowgli-0.6.1/debian/changelog
@@ -0,0 +1,48 @@
+libmowgli (0.6.1-1) unstable; urgency=low
+
+  * New upstream release (Closes: #463604)
+  * Added Vcs-Headers
+  * Introducing William Pitcock as a new co-maintainer
+  * Added a symbols file for dpkg-gensymbols to enable more relaxed
+    dependencies for packages that depend on libmowgli
+  * Added a patch (backport of changes in upstream mercurial repository) to
+    fix the inappropriate call of exit in the library (Closes: #465740)
+  * Reworked the copyright file to make licensing and copyright informations
+    more clear and fix errors in old copyright file.
+  * Changed order of dh_makeshlibs and dh_fixperms in debian/rules to avoid
+    problems with permissions that occur under some conditions
+  * Changed call to dh_makeshlibs so that it produces a versioned shlibs file
+  * Some changes to the package descriptions so its more clear for what the
+    different binary packages are used
+
+ -- Patrick Schoenfeld <schoenfeld@in-medias-res.com>  Thu, 10 Jan 2008 08:41:59 +0100
+
+libmowgli (0.6.0-1) unstable; urgency=low
+
+  * New upstream release
+    (Closes: #458410)
+  * Removed patch for wrong SONAME (it was integrated upstream)
+  * Updated Standards Version
+
+ -- Patrick Schoenfeld <schoenfeld@in-medias-res.com>  Mon, 31 Dec 2007 14:47:12 +0100
+
+libmowgli (0.5.0-3) unstable; urgency=low
+
+  * Updated upstream domain, because the old domain seems not to be
+    available any more (Closes: #450201)
+  * Changed priority of libmowgli1-dbg to be extra to fix override disparity
+
+ -- Patrick Schoenfeld <schoenfeld@in-medias-res.com>  Thu, 08 Nov 2007 06:52:28 +0100
+
+libmowgli (0.5.0-2) unstable; urgency=low
+
+  * Fixed issues with copyright file (Accidentally we stated that the library
+    ilicensed under the terms of the BSD license)
+
+ -- Patrick Schoenfeld <schoenfeld@in-medias-res.com>  Wed, 24 Oct 2007 21:14:58 +0200
+
+libmowgli (0.5.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #444334, #447410).
+
+ -- Patrick Schoenfeld <schoenfeld@in-medias-res.com>  Wed, 10 Oct 2007 15:53:56 +0200
--- libmowgli-0.6.1.orig/debian/compat
+++ libmowgli-0.6.1/debian/compat
@@ -0,0 +1 @@
+5
--- libmowgli-0.6.1.orig/debian/libmowgli1.symbols
+++ libmowgli-0.6.1/debian/libmowgli1.symbols
@@ -0,0 +1,160 @@
+libmowgli.so.1 libmowgli1 #MINVER#
+ mowgli_alloc@Base 0.5.0
+ mowgli_alloc_array@Base 0.5.0
+ mowgli_allocation_policy_create@Base 0.5.0
+ mowgli_allocation_policy_init@Base 0.5.0
+ mowgli_allocation_policy_lookup@Base 0.5.0
+ mowgli_allocator_init@Base 0.5.0
+ mowgli_allocator_malloc@Base 0.5.0
+ mowgli_allocator_set_policy@Base 0.5.0
+ mowgli_allocator_set_policy_by_name@Base 0.5.0
+ mowgli_argstack_create@Base 0.5.0
+ mowgli_argstack_create_from_va_list@Base 0.5.0
+ mowgli_argstack_init@Base 0.5.0
+ mowgli_argstack_pop_boolean@Base 0.5.0
+ mowgli_argstack_pop_numeric@Base 0.5.0
+ mowgli_argstack_pop_pointer@Base 0.5.0
+ mowgli_argstack_pop_string@Base 0.5.0
+ mowgli_bitvector_combine@Base 0.5.0
+ mowgli_bitvector_compare@Base 0.5.0
+ mowgli_bitvector_create@Base 0.5.0
+ mowgli_bitvector_get@Base 0.5.0
+ mowgli_bitvector_init@Base 0.5.0
+ mowgli_bitvector_set@Base 0.5.0
+ mowgli_bitvector_xor@Base 0.5.0
+ mowgli_dictionary_add@Base 0.5.0
+ mowgli_dictionary_create@Base 0.5.0
+ mowgli_dictionary_create_named@Base 0.5.0
+ mowgli_dictionary_delete@Base 0.5.0
+ mowgli_dictionary_destroy@Base 0.5.0
+ mowgli_dictionary_find@Base 0.5.0
+ mowgli_dictionary_foreach@Base 0.5.0
+ mowgli_dictionary_foreach_cur@Base 0.5.0
+ mowgli_dictionary_foreach_next@Base 0.5.0
+ mowgli_dictionary_foreach_start@Base 0.5.0
+ mowgli_dictionary_link@Base 0.5.0
+ mowgli_dictionary_retrieve@Base 0.5.0
+ mowgli_dictionary_retune@Base 0.5.0
+ mowgli_dictionary_search@Base 0.5.0
+ mowgli_dictionary_size@Base 0.5.0
+ mowgli_dictionary_stats@Base 0.5.0
+ mowgli_dictionary_unlink_root@Base 0.5.0
+ mowgli_error_context_create@Base 0.5.0
+ mowgli_error_context_destroy@Base 0.5.0
+ mowgli_error_context_display@Base 0.5.0
+ mowgli_error_context_display_with_error@Base 0.5.0
+ mowgli_error_context_pop@Base 0.5.0
+ mowgli_error_context_push@Base 0.5.0
+ mowgli_fnv_hash@Base 0.5.0
+ mowgli_fnv_hash_string@Base 0.5.0
+ mowgli_formatter_format@Base 0.5.0
+ mowgli_formatter_format_from_argstack@Base 0.5.0
+ mowgli_formatter_print@Base 0.5.0
+ mowgli_free@Base 0.5.0
+ mowgli_global_storage_free@Base 0.5.0
+ mowgli_global_storage_get@Base 0.5.0
+ mowgli_global_storage_init@Base 0.5.0
+ mowgli_global_storage_put@Base 0.5.0
+ mowgli_heap_alloc@Base 0.5.0
+ mowgli_heap_create@Base 0.5.0
+ mowgli_heap_create_full@Base 0.5.0
+ mowgli_heap_destroy@Base 0.5.0
+ mowgli_heap_free@Base 0.5.0
+ mowgli_hook_associate@Base 0.5.0
+ mowgli_hook_call@Base 0.5.0
+ mowgli_hook_dissociate@Base 0.5.0
+ mowgli_hook_init@Base 0.5.0
+ mowgli_hook_register@Base 0.5.0
+ mowgli_init@Base 0.5.0
+ mowgli_ioevent_associate@Base 0.5.0
+ mowgli_ioevent_create@Base 0.5.0
+ mowgli_ioevent_destroy@Base 0.5.0
+ mowgli_ioevent_dissociate@Base 0.5.0
+ mowgli_ioevent_get@Base 0.5.0
+ mowgli_list_concat@Base 0.5.0
+ mowgli_list_create@Base 0.5.0
+ mowgli_list_free@Base 0.5.0
+ mowgli_list_reverse@Base 0.5.0
+ mowgli_list_sort@Base 0.5.0
+ mowgli_log_cb_default@Base 0.5.0
+ mowgli_log_real@Base 0.5.0
+ mowgli_log_set_cb@Base 0.5.0
+ mowgli_mempool_add@Base 0.5.0
+ mowgli_mempool_allocate@Base 0.5.0
+ mowgli_mempool_cleanup@Base 0.5.0
+ mowgli_mempool_create@Base 0.5.0
+ mowgli_mempool_destroy@Base 0.5.0
+ mowgli_mempool_release@Base 0.5.0
+ mowgli_mempool_strdup@Base 0.5.0
+ mowgli_mempool_sustain@Base 0.5.0
+ mowgli_mempool_with_custom_destructor@Base 0.5.0
+ mowgli_module_close@Base 0.5.0
+ mowgli_module_open@Base 0.5.0
+ mowgli_module_symbol@Base 0.5.0
+ mowgli_node_add@Base 0.5.0
+ mowgli_node_add_after@Base 0.5.0
+ mowgli_node_add_before@Base 0.5.0
+ mowgli_node_add_head@Base 0.5.0
+ mowgli_node_create@Base 0.5.0
+ mowgli_node_delete@Base 0.5.0
+ mowgli_node_find@Base 0.5.0
+ mowgli_node_free@Base 0.5.0
+ mowgli_node_index@Base 0.5.0
+ mowgli_node_init@Base 0.5.0
+ mowgli_node_insert@Base 0.5.0
+ mowgli_node_move@Base 0.5.0
+ mowgli_node_nth@Base 0.5.0
+ mowgli_node_nth_data@Base 0.5.0
+ mowgli_node_parent@Base 0.5.0
+ mowgli_object_class_check_cast@Base 0.5.0
+ mowgli_object_class_destroy@Base 0.5.0
+ mowgli_object_class_find_by_name@Base 0.5.0
+ mowgli_object_class_init@Base 0.5.0
+ mowgli_object_class_message_handler_attach@Base 0.5.0
+ mowgli_object_class_message_handler_detach@Base 0.5.0
+ mowgli_object_class_reinterpret_impl@Base 0.5.0
+ mowgli_object_class_set_derivitive@Base 0.5.0
+ mowgli_object_init@Base 0.5.0
+ mowgli_object_init_from_class@Base 0.5.0
+ mowgli_object_message_broadcast@Base 0.5.0
+ mowgli_object_message_handler_attach@Base 0.5.0
+ mowgli_object_message_handler_detach@Base 0.5.0
+ mowgli_object_metadata_associate@Base 0.5.0
+ mowgli_object_metadata_dissociate@Base 0.5.0
+ mowgli_object_metadata_retrieve@Base 0.5.0
+ mowgli_object_ref@Base 0.5.0
+ mowgli_object_unref@Base 0.5.0
+ mowgli_queue_destroy@Base 0.5.0
+ mowgli_queue_find@Base 0.5.0
+ mowgli_queue_head@Base 0.5.0
+ mowgli_queue_init@Base 0.5.0
+ mowgli_queue_length@Base 0.5.0
+ mowgli_queue_pop_head@Base 0.5.0
+ mowgli_queue_pop_tail@Base 0.5.0
+ mowgli_queue_push@Base 0.5.0
+ mowgli_queue_remove@Base 0.5.0
+ mowgli_queue_remove_data@Base 0.5.0
+ mowgli_queue_rewind@Base 0.5.0
+ mowgli_queue_shift@Base 0.5.0
+ mowgli_queue_skip@Base 0.5.0
+ mowgli_queue_tail@Base 0.5.0
+ mowgli_random_create@Base 0.5.0
+ mowgli_random_create_with_seed@Base 0.5.0
+ mowgli_random_init@Base 0.5.0
+ mowgli_random_int@Base 0.5.0
+ mowgli_random_int_ranged@Base 0.5.0
+ mowgli_random_reseed@Base 0.5.0
+ mowgli_signal_install_handler@Base 0.5.0
+ mowgli_spinlock_create@Base 0.5.0
+ mowgli_spinlock_lock@Base 0.5.0
+ mowgli_spinlock_timed_wait@Base 0.5.0
+ mowgli_spinlock_unlock@Base 0.5.0
+ mowgli_spinlock_wait@Base 0.5.0
+ mowgli_string_append@Base 0.5.0
+ mowgli_string_append_char@Base 0.5.0
+ mowgli_string_create@Base 0.5.0
+ mowgli_string_destroy@Base 0.5.0
+ mowgli_string_reset@Base 0.5.0
+ mowgli_dictionary_get_comparator_func@Base 0.6.0
+ mowgli_dictionary_get_linear_index@Base 0.6.0
+ mowgli_dictionary_set_comparator_func@Base 0.6.0
--- libmowgli-0.6.1.orig/debian/libmowgli-dev.docs
+++ libmowgli-0.6.1/debian/libmowgli-dev.docs
@@ -0,0 +1,2 @@
+doc/BOOST
+README
--- libmowgli-0.6.1.orig/debian/libmowgli-dev.install
+++ libmowgli-0.6.1/debian/libmowgli-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/lib*.so
+usr/lib/pkgconfig/*
+usr/lib/pkgconfig/*
--- libmowgli-0.6.1.orig/debian/libmowgli-dev.examples
+++ libmowgli-0.6.1/debian/libmowgli-dev.examples
@@ -0,0 +1,2 @@
+src/examples/*
+buildsys.mk
--- libmowgli-0.6.1.orig/debian/patches/001-Disable_Makefile_silent_output.dpatch
+++ libmowgli-0.6.1/debian/patches/001-Disable_Makefile_silent_output.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 001-Disable_Makefile_silent_output.dpatch
+## by Adam Cécile (Le_Vert) <gandalf@le-vert.net>
+##
+## DP: Let's show what happens...
+
+@DPATCH@
+
+--- a/buildsys.mk.in	2007-10-15 07:03:45.000000000 +0200
++++ b/buildsys.mk.in	2007-10-21 02:14:21.518788374 +0200
+@@ -73,7 +73,7 @@
+ OBJS5 = ${OBJS4:.erl=.beam}
+ OBJS += ${OBJS5:.m=.o}
+ 
+-.SILENT:
++#.SILENT:
+ .SUFFIXES: .beam .c .cc .cxx .d .erl .m
+ .PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean
+ 
--- libmowgli-0.6.1.orig/debian/patches/002-Make-Examples-Buildable-standalone.dpatch
+++ libmowgli-0.6.1/debian/patches/002-Make-Examples-Buildable-standalone.dpatch
@@ -0,0 +1,112 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 002-Make-Examples-Buildable-standalone.dpatch
+## by Adam Cécile (Le_Vert) <gandalf@le-vert.net>
+##
+## DP: This patch makes the examples build standalone.
+
+@DPATCH@
+
+diff -ur libmowgli-patched/src/examples/dicttest/dicttest.c libmowgli/src/examples/dicttest/dicttest.c
+--- libmowgli-patched/src/examples/dicttest/dicttest.c	2007-10-21 15:49:43.019930332 +0200
++++ libmowgli/src/examples/dicttest/dicttest.c	2007-09-27 22:04:26.404664058 +0200
+@@ -31,7 +31,7 @@
+  * POSSIBILITY OF SUCH DAMAGE.
+  */
+ 
+-#include <mowgli.h>
++#include <libmowgli/mowgli.h>
+ 
+ int main(int argc, const char *argv[])
+ {
+diff -ur libmowgli-patched/src/examples/dicttest/Makefile libmowgli/src/examples/dicttest/Makefile
+--- libmowgli-patched/src/examples/dicttest/Makefile	2007-10-21 15:48:02.014174342 +0200
++++ libmowgli/src/examples/dicttest/Makefile	2007-10-10 20:37:43.653955022 +0200
+@@ -1,7 +1,7 @@
+ PROG_NOINST = dicttest${PROG_SUFFIX}
+ SRCS = dicttest.c
+ 
+-include ../../../buildsys.mk
++include ../buildsys.mk
+ 
+ CPPFLAGS += -I../../libmowgli
+ LIBS += -L../../libmowgli -lmowgli
+diff -ur libmowgli-patched/src/examples/formattertest/formattertest.c libmowgli/src/examples/formattertest/formattertest.c
+--- libmowgli-patched/src/examples/formattertest/formattertest.c	2007-10-21 15:49:14.518306117 +0200
++++ libmowgli/src/examples/formattertest/formattertest.c	2007-09-27 22:04:26.404664058 +0200
+@@ -31,7 +31,7 @@
+  * POSSIBILITY OF SUCH DAMAGE.
+  */
+ 
+-#include <mowgli.h>
++#include <libmowgli/mowgli.h>
+ 
+ int main(int argc, char *argv[])
+ {
+diff -ur libmowgli-patched/src/examples/formattertest/Makefile libmowgli/src/examples/formattertest/Makefile
+--- libmowgli-patched/src/examples/formattertest/Makefile	2007-10-21 15:48:02.014174342 +0200
++++ libmowgli/src/examples/formattertest/Makefile	2007-10-10 20:37:44.153983517 +0200
+@@ -1,7 +1,7 @@
+ PROG_NOINST = formattertest${PROG_SUFFIX}
+ SRCS = formattertest.c
+ 
+-include ../../../buildsys.mk
++include ../buildsys.mk
+ 
+ CPPFLAGS += -I../../libmowgli
+ LIBS += -L../../libmowgli -lmowgli
+diff -ur libmowgli-patched/src/examples/listsort/listsort.c libmowgli/src/examples/listsort/listsort.c
+--- libmowgli-patched/src/examples/listsort/listsort.c	2007-10-21 15:49:14.518306117 +0200
++++ libmowgli/src/examples/listsort/listsort.c	2007-09-27 22:04:26.404664058 +0200
+@@ -31,7 +31,7 @@
+  * POSSIBILITY OF SUCH DAMAGE.
+  */
+ 
+-#include <mowgli.h>
++#include <libmowgli/mowgli.h>
+ 
+ int str_comparator(mowgli_node_t *n, mowgli_node_t *n2, void *opaque)
+ {
+diff -ur libmowgli-patched/src/examples/listsort/Makefile libmowgli/src/examples/listsort/Makefile
+--- libmowgli-patched/src/examples/listsort/Makefile	2007-10-21 15:48:02.014174342 +0200
++++ libmowgli/src/examples/listsort/Makefile	2007-10-10 20:37:44.654012012 +0200
+@@ -1,7 +1,7 @@
+ PROG_NOINST = listsort${PROG_SUFFIX}
+ SRCS = listsort.c
+ 
+-include ../../../buildsys.mk
++include ../buildsys.mk
+ 
+ CPPFLAGS += -I../../libmowgli
+ LIBS += -L../../libmowgli -lmowgli
+diff -ur libmowgli-patched/src/examples/Makefile libmowgli/src/examples/Makefile
+--- libmowgli-patched/src/examples/Makefile	2007-10-21 15:48:02.014174342 +0200
++++ libmowgli/src/examples/Makefile	2007-10-10 20:37:43.653955022 +0200
+@@ -1,3 +1,3 @@
+ SUBDIRS = randomtest listsort formattertest dicttest
+ 
+-include ../../buildsys.mk
++include buildsys.mk
+diff -ur libmowgli-patched/src/examples/randomtest/Makefile libmowgli/src/examples/randomtest/Makefile
+--- libmowgli-patched/src/examples/randomtest/Makefile	2007-10-21 15:48:02.014174342 +0200
++++ libmowgli/src/examples/randomtest/Makefile	2007-10-10 20:37:44.654012012 +0200
+@@ -1,7 +1,7 @@
+ PROG_NOINST = randomtest${PROG_SUFFIX}
+ SRCS = randomtest.c
+ 
+-include ../../../buildsys.mk
++include ../buildsys.mk
+ 
+ CPPFLAGS += -I../../libmowgli
+ LIBS += -L../../libmowgli -lmowgli
+diff -ur libmowgli-patched/src/examples/randomtest/randomtest.c libmowgli/src/examples/randomtest/randomtest.c
+--- libmowgli-patched/src/examples/randomtest/randomtest.c	2007-10-21 15:49:14.518306117 +0200
++++ libmowgli/src/examples/randomtest/randomtest.c	2007-10-14 00:16:59.752080433 +0200
+@@ -31,7 +31,7 @@
+  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  * POSSIBILITY OF SUCH DAMAGE.
+  */
+-#include <mowgli.h>
++#include <libmowgli/mowgli.h>
+ 
+ int main(int argc, char *argv[])
+ {
--- libmowgli-0.6.1.orig/debian/patches/00list
+++ libmowgli-0.6.1/debian/patches/00list
@@ -0,0 +1,3 @@
+001-Disable_Makefile_silent_output.dpatch
+002-Make-Examples-Buildable-standalone
+003-dont-call-exit-where-its-not-appropriate
--- libmowgli-0.6.1.orig/debian/patches/003-dont-call-exit-where-its-not-appropriate.dpatch
+++ libmowgli-0.6.1/debian/patches/003-dont-call-exit-where-its-not-appropriate.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 003-dont-call-exit-where-its-not-appropriate.dpatch by Patrick Schoenfeld <schoenfeld@in-medias-res.com>
+##
+## DP: Instead of exit the library should call abort()
+
+@DPATCH@
+diff -urNad libmowgli-0.6.1~/src/libmowgli/mowgli_list.c libmowgli-0.6.1/src/libmowgli/mowgli_list.c
+--- libmowgli-0.6.1~/src/libmowgli/mowgli_list.c	2008-01-31 23:44:56.000000000 +0100
++++ libmowgli-0.6.1/src/libmowgli/mowgli_list.c	2008-02-14 14:10:43.903213546 +0100
+@@ -34,7 +34,7 @@
+ 	if (mowgli_node_heap == NULL || mowgli_list_heap == NULL)
+ 	{
+ 		mowgli_log("heap allocator failure.");
+-		exit(EXIT_FAILURE);
++		abort();
+ 	}
+ }
+ 
--- libmowgli-0.6.1.orig/debian/copyright
+++ libmowgli-0.6.1/debian/copyright
@@ -0,0 +1,116 @@
+This package was debianized by:
+    Patrick Schoenfeld <schoenfeld@in-medias-res.com>
+    Adam Cécile (Le_Vert) <gandalf@le-vert.net>
+on Wed, 10 Oct 2007 13:15:01 +0200.
+
+It was downloaded from http://www.atheme-project.org/projects/mowgli.shtml
+
+Copyright Holders:
+
+	William Pitcock <nenolod@sacredspiral.co.uk>
+    Patrick McFarland <pmcfarland@adterrasperaspera.com>
+    Jonathan Schleifer <js@h3c.de>
+    Pippijn van Steenhoven <pippijn@one09.net>
+    Jilles Tjoelker <jilles@stack.nl>
+	Giacomo Lozito <james -at- develia.org>
+	Takuji Nishimura and Makoto Matsumoto
+
+License (for everything except the exceptions listed below):
+
+	Copyright for all files:
+	(C) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk>
+
+	Additional copyright on mowgli_heap.*:
+	(C) 2005-2006 Theo Julienne <terminal -at- atheme.org>
+
+	Additional copyright on mowgli_dictionary.*:
+	(C) 2007 Jilles Tjoelker <jilles -at- stack.nl>
+
+	Additional copyright on mowgli_string.*:
+	(C) 2007 Pippijn van Steenhoven <pippijn -at- one09.net>
+
+	Additional copyright on mowgli_hook.*:
+	(C) 2007 Giacomo Lozito <james -at- develia.org>
+
+	Additional copyright for algorithm in mowgli_random.c:
+	(C) 1999-2007 Takuji Nishimura and Makoto Matsumoto
+
+	Additional copyright on buildsys.mk.in and m4/buildsys.m4:
+	(C) 2007, Jonathan Schleifer <js-buildsys@webkeks.org>
+
+    Atheme License (ISC derivate):
+
+    Permission to use, copy, modify, and/or distribute this software for any
+    purpose with or without fee is hereby granted, provided that the above
+    copyright notice and this permission notice is present in all copies.
+
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+    TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+    PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+    OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License (for src/libmowgli/win32_dlfcn.c and win32_dlfcn.h):
+
+	(C) 2007 Ramiro Polla
+
+    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'.
+
+License (for all .c files in src/examples/*):
+
+	(C) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk>
+
+	Additional copyright for algorithm in randomtest.c:
+	(C) 1999-2007 Takuji Nishimura and Makoto Matsumoto
+
+	Redistribution and use in source and binary forms, with or without
+	modification, are permitted provided that the following conditions are
+	met:
+
+	1. Redistributions of source code must retain the above copyright notice,
+   	this list of conditions and the following disclaimer.
+
+	2. 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.
+
+	3. The name of the author may not be used to endorse or promote products
+	   derived from this software without specific prior written permission.
+
+	THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+	IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+	WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+	DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+	INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+	(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+	SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+	HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+	STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+	IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+	POSSIBILITY OF SUCH DAMAGE.
+
+The Debian packaging is :
+    Copyright (C) 2007 Adam Cécile (Le_Vert) <gandalf@le-vert.net>
+    Copyright (C) 2007 Patrick Schoenfeld <schoenfeld@in-medias-res.com>
+and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- libmowgli-0.6.1.orig/debian/libmowgli1.install
+++ libmowgli-0.6.1/debian/libmowgli1.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
