--- tnef-1.4.7.orig/debian/watch
+++ tnef-1.4.7/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/tnef/tnef-(.*)\.tar\.gz
--- tnef-1.4.7.orig/debian/copyright
+++ tnef-1.4.7/debian/copyright
@@ -0,0 +1,33 @@
+This package was debianized by Javier Fernandez-Sanguino Peña jfs@computer.org
+Wed, 13 Dec 2000 13:17:53 +0100.
+
+The current maintainer is Kevin Coyner <kcoyner@debian.org>.
+
+It was downloaded from <http://sourceforge.net/projects/tnef>
+
+Upstream Authors:  Mark Simpson, Thomas Boll
+
+Copyright:
+(c) 1999-2010 Mark Simpson <damned@world.std.com>
+(c) 1997,1998 Thomas Boll <tb@boll.ch> (original code)
+
+ This program is free software; you can 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 of the License or (at your option) any
+ later version.
+
+ This program 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License with
+ the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
+ if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
+ Fifth Floor, Boston, MA  02110-1301  USA
+
+On Debian systems, the complete text of the GNU General Public
+License, version 2, can be found in /usr/share/common-licenses/GPL-2.
+
+The Debian packaging is (C) 2006, Kevin Coyner <kcoyner@debian.org> and
+is licensed under the GPL, see above.
--- tnef-1.4.7.orig/debian/control
+++ tnef-1.4.7/debian/control
@@ -0,0 +1,19 @@
+Source: tnef
+Section: text
+Priority: optional
+Maintainer: Kevin Coyner <kcoyner@debian.org>
+Standards-Version: 3.8.4
+Build-Depends: debhelper (>= 7.4~), autotools-dev
+Homepage: http://sourceforge.net/projects/tnef
+
+Package: tnef
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: mime-support
+Description: Tool to unpack MIME application/ms-tnef attachments
+ TNEF is a program for unpacking MIME attachments of type
+ "application/ms-tnef". This is typcially a Microsoft only attachment.
+ .
+ The TNEF program allows one to unpack the attachments which were
+ encapsulated into the TNEF attachment, thus alleviating the need to use
+ Microsoft Outlook to view the attachment.
--- tnef-1.4.7.orig/debian/changelog
+++ tnef-1.4.7/debian/changelog
@@ -0,0 +1,161 @@
+tnef (1.4.7-1) unstable; urgency=low
+
+  * New upstream release. 
+  * Updated Standards-Version to 3.8.4. No changes.
+  * debian/control:
+    + Add ${misc:Depends} to debian/control.
+    + Updated debhelper version to 7.4~.
+  * debian/compat updated from 5 to 7.
+  * Changed dh_clean -k to dh_prep in debian/rules.
+  * Update debian/copyright to reflect changes in author's dates.
+
+ -- Kevin Coyner <kcoyner@debian.org>  Thu, 11 Feb 2010 00:15:08 +0000
+
+tnef (1.4.6-1) unstable; urgency=low
+
+  * New upstream release. 
+  * Updated Standards-Version to 3.8.3. No changes.
+  * Small cleanup of debian/copyright.
+
+ -- Kevin Coyner <kcoyner@debian.org>  Mon, 05 Oct 2009 21:29:36 -0400
+
+tnef (1.4.5-1) unstable; urgency=low
+
+  * New upstream release (Closes: 457382)
+  * debian/control
+    + Moved Homepage from long description to its own field.
+    + Updated Standards-Version to 3.8.0
+    + Removed obsolete lines in long description (Closes: #501011)
+  * Converted file encoding of debian/copyright from ISO-8859 to UTF-8.
+
+ -- Kevin Coyner <kcoyner@debian.org>  Sat, 04 Oct 2008 12:38:41 -0400
+
+tnef (1.4.3-2) unstable; urgency=low
+
+  * debian/control:
+    + Small grammatical change to description
+    + Bumped debhelper version to 5
+    + Changed to new e-mail address for maintainer
+    + Changed homepage (Closes: #413097)
+  * debian/compat - bumped to 5
+  * debian/copyright:
+    + Changed to new e-mail address for maintainer
+    + Changed source download address
+
+ -- Kevin Coyner <kcoyner@debian.org>  Sun, 05 Aug 2007 11:10:03 -0400
+
+tnef (1.4.3-1) unstable; urgency=low
+
+  * New upstream release
+    -- Fix 'unicode string filename' bug
+    -- better handling of files with garbage at the end
+    -- Fix a build error on Solaris 10
+
+ -- Kevin Coyner <kevin@rustybear.com>  Sun, 17 Sep 2006 21:34:25 -0400
+
+tnef (1.4.1-1) unstable; urgency=low
+
+  * New upstream release (adds new switch --list-with-mime-types)
+  * Updated Standards-Version to 3.7.2
+
+ -- Kevin Coyner <kevin@rustybear.com>  Sun, 23 Jul 2006 16:01:29 -0400
+
+tnef (1.4-1) unstable; urgency=low
+
+  * New upstream release
+  * New maintainer (Closes: #360948)
+  * debian/rules:
+    + small change to ./configure
+    + added rm -rf config.cache
+    + specifically remove config.{sub,guess} after build
+  * debian/copyright: updated copyright info
+  * debian/watch: update to version 3
+
+ -- Kevin Coyner <kevin@rustybear.com>  Thu,  6 Apr 2006 11:25:16 -0400
+
+tnef (1.3.4-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Florian Ernst <florian@debian.org>  Mon, 24 Oct 2005 17:38:12 +0200
+
+tnef (1.3.3-1) unstable; urgency=low
+
+  * New upstream release, taking over with previous maintainer's consent
+    (Closes: #199800)
+    + includes --maxsize option, thus dropping debian/sizelimit.diff
+  * debian/control:
+    + upgrade debhelper B-D to >=4, adding B-D on autotools-dev
+    + extend long description, adding upstream Homepage
+  * debian/copright:
+    + update upstream homepage
+    + update copyright info
+  * debian/rules:
+    + general cleanup, stripping out all unneeded parts
+    + use HOST and BUILD, auto-update config.{sub,guess}
+    + export compat (now 4) and docs into corresponding files
+    + use DESTDIR for installing
+    + switch to dh_installman
+  * debian/watch: added
+  * Removed various old and empty templates
+  * Standards-Version: 3.6.2
+
+ -- Florian Ernst <florian@debian.org>  Thu, 22 Sep 2005 14:21:19 +0200
+
+tnef (1.2.3-0.1) unstable; urgency=low
+
+  * NMU.
+  * New upstream version (closes: #199800).
+
+ -- Matthias Klose <doko@debian.org>  Mon, 29 Dec 2003 09:54:21 +0100
+
+tnef (1.1.4-1) unstable; urgency=low
+
+  * New upstream version should allegedly fix segfault; changes are fairly
+    minor (with the usual massive amount of changes in auto-*-generated
+    files). It has fixed the segfault in the example file I have, so...
+    closes: #176046
+  * Remembered to change Maintainer: field in control file this time :-/
+
+ -- Nick Phillips <nwp@lemon-computing.com>  Sat, 22 Feb 2003 16:41:28 +1300
+
+tnef (1.1.3-1) unstable; urgency=low
+
+  * New upstream version, 1.1.2 not packaged for Debian.
+  * Should now handle a greater proportion of TNEF input files.
+  * libgen.h appears no longer to be needed for a clean build, so removed.
+  * Still a segfault bug outstanding upstream.
+  * Not an NMU.
+
+ -- Nick Phillips <nwp@lemon-computing.com>  Mon, 25 Nov 2002 22:02:34 +1300
+
+tnef (1.1.1-0.1) unstable; urgency=low
+
+  * NMU.
+  * New upstream version.
+  * Include the `sizelimit' patch found on http://www.mailscanner.info/.
+    Adds options -x <size> --maxsize=<size>.
+  * Remove man page included upstream.
+  * src/tnef.c: #include <libgen.h> (closes: #115981).
+  * The attachment, which couldn't be decoded by tnef-0.15, can be
+    decoded with this version (closes: #84348).
+
+ -- Matthias Klose <doko@debian.org>  Thu, 10 Jan 2002 22:31:47 +0100
+
+tnef (1.0.1-1) unstable; urgency=low
+
+  * Updated upstream release (Closes: #93632)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Tue,  8 May 2001 18:08:16 +0200
+
+tnef (0.15-2) unstable; urgency=low
+
+  * Spelling fixes (Closes: #84347)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Sun,  4 Feb 2001 11:32:59 +0100
+
+tnef (0.15-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Wed, 13 Dec 2000 13:17:53 +0100
--- tnef-1.4.7.orig/debian/rules
+++ tnef-1.4.7/debian/rules
@@ -0,0 +1,64 @@
+#!/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
+
+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
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	ln -sf /usr/share/misc/config.sub config.sub
+	ln -sf /usr/share/misc/config.guess config.guess
+	rm -f config.cache
+	./configure CFLAGS="$(CFLAGS)" \
+		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+		--prefix=/usr --mandir=\$${prefix}/share/man
+	$(MAKE)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
+	find \( -name config.sub -o -name config.guess \) -print0 | xargs -0 -r rm -f \;
+	dh_clean build-stamp
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tnef
+
+binary-indep: build install
+# We have nothing to do by default.
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installmime
+	dh_installman
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip
+	dh_compress
+	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
--- tnef-1.4.7.orig/debian/mime
+++ tnef-1.4.7/debian/mime
@@ -0,0 +1,2 @@
+application/ms-tnef; /usr/bin/tnef -w -f %s; needsterminal; description=Microsoft's Exchange Encapsulation; nametemplate=%s.data; priority=2
+
--- tnef-1.4.7.orig/debian/compat
+++ tnef-1.4.7/debian/compat
@@ -0,0 +1 @@
+7
--- tnef-1.4.7.orig/debian/docs
+++ tnef-1.4.7/debian/docs
@@ -0,0 +1,4 @@
+NEWS
+TODO
+doc/file-format.tex
+doc/FAQ
