--- trickle-1.07.orig/debian/rules
+++ trickle-1.07/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
+
+config.status: configure
+	dh_testdir
+	./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc \
+		--with-pic
+
+build-arch:  config.status build-arch-stamp
+build-arch-stamp:
+	dh_testdir
+	$(MAKE)
+	touch build-arch-stamp
+
+build: build-arch
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp 
+	[ ! -f Makefile ] || $(MAKE) distclean
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/trickle
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_install trickled.conf etc
+#	install -D -m 644 debian/lintian-override \
+#		$(CURDIR)/debian/trickle/usr/share/lintian/overrides/trickle
+	dh_installdocs -n
+	dh_installman debian/tricklectl.8
+	dh_installchangelogs 
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-indep:
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-arch binary-indep binary install 
--- trickle-1.07.orig/debian/dirs
+++ trickle-1.07/debian/dirs
@@ -0,0 +1,6 @@
+etc
+usr/bin
+usr/lib/trickle
+usr/share/man/man1
+usr/share/man/man5
+usr/share/man/man8
--- trickle-1.07.orig/debian/control
+++ trickle-1.07/debian/control
@@ -0,0 +1,16 @@
+Source: trickle
+Section: net
+Priority: optional
+Maintainer: Robert Lemmen <robertle@semistable.com>
+Build-Depends: debhelper (>= 7.0.0), libevent-dev (>= 0.7b), autoconf,
+ libbsd-dev
+Standards-Version: 3.8.1
+
+Package: trickle
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: user-space bandwidth shaper
+ Trickle is a voluntary, cooperative bandwidth shaper. it works
+ entirely in userland and is very easy to use.
+ .
+ The most simple application is to limit the bandwidth usage of programs.
--- trickle-1.07.orig/debian/changelog
+++ trickle-1.07/debian/changelog
@@ -0,0 +1,104 @@
+trickle (1.07-9) unstable; urgency=low
+
+  * Further changes to getopt handling for mips builds
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue, 30 Jun 2009 11:28:31 +0100
+
+trickle (1.07-8) unstable; urgency=low
+
+  * use -fPIC on all archs (closes: #531940)
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon, 29 Jun 2009 15:31:16 +0100
+
+trickle (1.07-7) unstable; urgency=low
+
+  * Applied select() patch (closes: #375173)
+  * Bumped standards-version and debhelper
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon, 23 Mar 2009 10:11:57 +0000
+
+trickle (1.07-6) unstable; urgency=low
+
+  * Disables default loading of the .so from the local dir, this might be a
+    security issue (closes: #513456)
+  * Added dependency to libbsd and modified build scripts to fix FTBFS under
+    lenny
+  * Bumped Standards-Version since it is compliant with the new version without
+    further changes
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon, 02 Feb 2009 17:43:16 +0000
+
+trickle (1.07-5) unstable; urgency=low
+
+  * Fixed typos in manual pages (closes: #359166) 
+  * Fixed debian/rules (closes: #395766)
+  * Make trickle work on kFreeBSD (closes: #414198)
+  * Fixed clean target in debian/rules
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue, 28 Aug 2007 13:04:07 +0200
+
+trickle (1.07-4) unstable; urgency=low
+
+  * Fixed autoconf setup to not predefine stuff (closes: #324580)
+  * Fixed a smallish typo in the manual page (closes: #302942)
+  * Finally applied the fwrite patch (closes: #241843)
+  * Fixed nroff formatting errors in the manual pages
+  * Override for a stray lintian warning
+
+ -- Robert Lemmen <robertle@semistable.com>  Fri, 26 Aug 2005 10:30:28 +0200
+
+trickle (1.07-3) unstable; urgency=low
+
+  * Various smallish cleanups in debian/rules
+  * Used debian/compat instead of an export in debian/rules
+
+ -- Robert Lemmen <robertle@semistable.com>  Wed,  2 Feb 2005 21:48:34 +0100
+
+trickle (1.07-2) unstable; urgency=low
+
+  * Added manual page for tricklectl
+
+ -- Robert Lemmen <robertle@semistable.com>  Thu, 13 Jan 2005 11:30:00 +0100
+
+trickle (1.07-1) unstable; urgency=low
+
+  * New upstream release, resolves the sendfile() issue
+
+ -- Robert Lemmen <robertle@semistable.com>  Sun,  9 Jan 2005 13:50:24 +0100
+
+trickle (1.06-4) unstable; urgency=low
+
+  * rebuild again since i386 was missed (darn)
+
+ -- Robert Lemmen <robertle@semistable.com>  Thu, 23 Oct 2003 00:53:35 +0200
+
+trickle (1.06-3) unstable; urgency=low
+
+  * rebuild against libevent1 (closes: #216586)
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon, 20 Oct 2003 15:19:50 +0200
+
+trickle (1.06-2) unstable; urgency=low
+
+  * removed bogus usr/share/man{1,5,8} directories (closes: #207258)
+
+ -- Robert Lemmen <robertle@semistable.com>  Wed, 27 Aug 2003 15:33:04 +0200
+
+trickle (1.06-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon,  9 Jun 2003 19:28:37 +0200
+
+trickle (1.04-1) unstable; urgency=low
+
+  * New upstream release that closes a minor bug with noblocking sockets
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue,  7 Apr 2003 15:49:42 +0200
+
+trickle (1.03-1) unstable; urgency=low
+
+  * Initial Release. (closes: #186277)
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue,  1 Apr 2003 20:09:45 +0200
+
--- trickle-1.07.orig/debian/compat
+++ trickle-1.07/debian/compat
@@ -0,0 +1 @@
+7
--- trickle-1.07.orig/debian/tricklectl.8
+++ trickle-1.07/debian/tricklectl.8
@@ -0,0 +1,12 @@
+.TH tricklectl 8 "Jan 2005"
+.SH NAME
+tricklectl \-
+control utility for \fItrickled\fR
+.SH SYNOPSIS
+.B tricklectl 
+[\fIoptions\fR]
+.SH DESCRIPTION
+\fBtricklectl\fR is a control utility that lets you query and modify the
+current state of a \fItrickled\fR bandwidth shaper daemon. This way you can
+for example change up- and download rates. In the moment \fBtricklectl\fR is
+of no use, but we hope to have it ready soon!
--- trickle-1.07.orig/debian/watch
+++ trickle-1.07/debian/watch
@@ -0,0 +1,7 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+version=2
+# Site		Directory		Pattern			Version	Script
+http://monkey.org/~marius/pages/?page=trickle .*trickle-(.*)\.tar\.gz
+
--- trickle-1.07.orig/debian/copyright
+++ trickle-1.07/debian/copyright
@@ -0,0 +1,37 @@
+This package was debianized by Robert Lemmen <robertle@semistable.com> on
+Tue,  1 Apr 2003 20:09:45 +0200.
+
+It was downloaded from http://monkey.org/~marius/trickle/
+
+Upstream Author: Marius Aamodt Eriksen <marius@monkey.org>
+
+Copyright: 2002-2005 Marius Aamodt Eriksen
+ All rights reserved.
+
+License:
+ 
+ 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 names of the copyright holders may not be used to endorse or
+    promote products derived from this software without specific
+    prior written permission.
+ 
+ THIS SOFTWARE IS PROVIDED ``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.
+ 
--- trickle-1.07.orig/debian/lintian-override
+++ trickle-1.07/debian/lintian-override
@@ -0,0 +1,2 @@
+# this isn't a library!
+#package-name-doesnt-match-sonames libtmptrickle-overloadso
