--- ytnef-2.6.orig/debian/compat +++ ytnef-2.6/debian/compat @@ -0,0 +1 @@ +4 --- ytnef-2.6.orig/debian/changelog +++ ytnef-2.6/debian/changelog @@ -0,0 +1,11 @@ +ytnef (2.6-1ubuntu0.1) intrepid-proposed; urgency=low + + * Depends on file (LP: #292696). + + -- Alessio Treglia Mon, 03 Nov 2008 10:19:05 +0100 + +ytnef (2.6-1) unstable; urgency=low + + * Initial release. + + -- Joshua Kwan Mon, 9 May 2005 20:31:56 -0700 --- ytnef-2.6.orig/debian/copyright +++ ytnef-2.6/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by Joshua Kwan on +Mon, 09 May 2005 20:29:37 -0700. + +It was downloaded from: + +http://ytnef.sourceforge.net + +Upstream Author: Randall Hand + +Copyright: + +(C) 2000-2004 Randall Hand + + This package 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; version 2 dated June, 1991. + + 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL'. + --- ytnef-2.6.orig/debian/rules +++ ytnef-2.6/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# debian/rules for ytnef +# (C) 2003 Joshua Kwan + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS = -Wall -W -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +crossflags := --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) +endif + +include /usr/share/dpatch/dpatch.make + +build: patch-stamp build-stamp +build-stamp: + dh_testdir + ./configure $(crossflags) --prefix=/usr --mandir=/usr/share/man + $(MAKE) + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + -$(MAKE) distclean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/ytnef +# Useless + rm -f $(CURDIR)/debian/ytnef/usr/bin/ytnefprint +# Better name + mv $(CURDIR)/debian/ytnef/usr/bin/ytnefprocess.pl $(CURDIR)/debian/ytnef/usr/bin/ytnef-filter + +binary-indep: +# Ye olde no-op. + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installchangelogs ChangeLog + dh_compress + dh_link + dh_strip + 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 --- ytnef-2.6.orig/debian/control +++ ytnef-2.6/debian/control @@ -0,0 +1,24 @@ +Source: ytnef +Section: utils +Priority: extra +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Joshua Kwan +Build-Depends: debhelper (>= 4.0.0), libytnef0-dev | libytnef-dev, dpatch +Standards-Version: 3.6.1.0 + +Package: ytnef +Architecture: any +Depends: ${shlibs:Depends}, file +Recommends: libmime-perl, libmailtools-perl +Description: improved decoder for application/ms-tnef attachments + Yerase's TNEF Stream Reader allows you to decode application/ms-tnef + e-mail attachments, which are usually entitled "winmail.dat" and are + generally a file container format that is only readable by Microsoft + Outlook. Some TNEF streams also include RTF-formatted data. + . + ytnef parses these streams into normal MIME attachments and RTF + attachments that you can read from non-Outlook mail readers. + . + A convenience script is provided to allow users to transparently + filter messages containing TNEF attachments into messages with + proper attachments, via procmail. --- ytnef-2.6.orig/debian/patches/00list +++ ytnef-2.6/debian/patches/00list @@ -0,0 +1 @@ +01_ytnefprocess_pl --- ytnef-2.6.orig/debian/patches/01_ytnefprocess_pl.dpatch +++ ytnef-2.6/debian/patches/01_ytnefprocess_pl.dpatch @@ -0,0 +1,68 @@ +#! /bin/sh -e +## 01_ytnefprocess_pl.dpatch by Joshua Kwan +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: make ytnefprocess.pl actually workable + +if [ $# -lt 1 ]; then + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}" + +case "$1" in + -patch) patch -p1 ${patch_opts} < $0;; + -unpatch) patch -R -p1 ${patch_opts} < $0;; + *) + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1;; +esac + +exit 0 + +--- ytnef-2.6/src/ytnef/ytnefprocess.pl~ 2005-05-09 21:00:48.945258264 -0700 ++++ ytnef-2.6/src/ytnef/ytnefprocess.pl 2005-05-09 21:06:29.209530232 -0700 +@@ -2,12 +2,14 @@ + use MIME::Parser; + use MIME::Entity; + use Mail::Mailer; +-use Mail::Mailer::test; ++use File::Temp 'tempdir'; + +-my $mail_dir = "$ENV{HOME}/.ytnef"; +-my $reader = "/usr/local/bin/ytnef"; ++my $mail_dir = tempdir ("ytnefXXXX", TMPDIR => 1, CLEANUP => 1); ++my $reader = "/usr/bin/ytnef"; + my $output_dir = "$mail_dir/output"; + ++mkdir($output_dir); ++ + my $parser = new MIME::Parser; + my $filer = new MIME::Parser::FileInto; + $filer->init($mail_dir); +@@ -19,14 +21,8 @@ + + processParts($entity); + +- +- +-print STDOUT "From process.pl\n"; + $entity->print( \*STDOUT ); + +-for my $file ( @files ) { +- `rm -f $file`; +-} + $entity->purge; + $parser->filer->purge; + +@@ -50,7 +46,7 @@ + close(FPTR); + $io->close; + +- `$reader -f $output_dir +F $output_dir/winmail.dat`; ++ `$reader -f $output_dir -F $output_dir/winmail.dat`; + `rm -f $output_dir/winmail.dat`; + + opendir(DIR, $output_dir)