--- php-mail-mime-1.8.0.orig/debian/copyright
+++ php-mail-mime-1.8.0/debian/copyright
@@ -0,0 +1,43 @@
+This package was debianized by Jeroen van Wolffelaar <jeroen@wolffelaar.nl> on
+Sat, 31 Jul 2004 18:58:15 +0200.
+
+It was downloaded from http://pear.php.net/package/Mail_Mime
+
+Upstream Author: Richard Heyes <richard@phpguru.org>, plus contributions by
+Tomas V.V.Cox <cox@idecnet.com> (port to PEAR)
+
+Files: *
+Copyright: (c) 2002-2003, Richard Heyes <richard@phpguru.org>
+ (c) 2003-2006, PEAR <pear-group@php.net>
+ (c) 2003-2006, Cipriano Groenendal <cipri@php.net>
+ (c) 2003-2006, Sean Coates <sean@php.net>
+ (c) 2003-2006, Aleksander Machniak <alec@php.net>
+ (c) 2003-2006, Thomas V.V.Cox
+License: BSD style
+
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ - 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.
+ - Neither the name of the authors, nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ 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.
--- php-mail-mime-1.8.0.orig/debian/compat
+++ php-mail-mime-1.8.0/debian/compat
@@ -0,0 +1 @@
+7
--- php-mail-mime-1.8.0.orig/debian/control
+++ php-mail-mime-1.8.0/debian/control
@@ -0,0 +1,25 @@
+Source: php-mail-mime
+Section: php
+Priority: optional
+Maintainer: Thomas Goirand <zigo@debian.org>
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: php-pear
+Standards-Version: 3.9.1
+Vcs-Browser: http://git.debian.org/?p=pkg-php/php-mail-mime.git
+Vcs-Git: http://git.debian.org/git/pkg-php/php-mail-mime.git
+Homepage: http://pear.php.net/package/Mail_Mime/
+
+Package: php-mail-mime
+Architecture: all
+Depends: php-pear, ${misc:Depends}, php-mail-mimedecode
+Description: PHP PEAR module for creating MIME messages
+ Provides classes to deal with creation and manipulation of mime messages. It
+ allows people to create e-mail messages consisting of:
+ .
+ - mime.php: Create mime email, with html, attachments, embedded images
+ etc.
+ - mimePart.php: Advanced method of creating mime messages.
+ - xmail.dtd: An XML DTD to acompany the getXML() method of the decoding
+ class.
+ - xmail.xsl: An XSLT stylesheet to transform the output of the getXML()
+ method back to an email
--- php-mail-mime-1.8.0.orig/debian/rules
+++ php-mail-mime-1.8.0/debian/rules
@@ -0,0 +1,55 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+PEAR ?= /usr/bin/pear
+pear_pkg = $(shell ls | grep Mail_Mime)
+package = php-mail-mime
+
+build:
+
+clean:
+ dh_testdir
+ dh_testroot
+ if [ -f $(pear_pkg)/package.xml ]; then \
+ rm $(pear_pkg)/package.xml; \
+ fi
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ cp package.xml $(pear_pkg)/package.xml;
+ $(PEAR) install -f -n -R debian/$(package) $(pear_pkg)/package.xml
+
+ rm -f debian/$(package)/usr/share/php/.filemap;
+ rm -f debian/$(package)/usr/share/php/.lock;
+ rm -rf debian/$(package)/usr/share/php/.channels;
+ rm -rf debian/$(package)/usr/share/php/.depdblock;
+ rm -rf debian/$(package)/usr/share/php/.depdb;
+ rm -rf debian/$(package)/usr/share/php/docs;
+ rm -rf debian/$(package)/usr/share/php/doc;
+ rm -rf debian/$(package)/usr/share/php/tests;
+ rm -rf debian/$(package)/usr/share/php/test;
+ rm -rf debian/$(package)/usr/share/php/.registry/.channel.pecl.php.net;
+ rm -rf debian/$(package)/usr/share/php/.registry/.channel.__uri;
+ rm -rf debian/$(package)/usr/share/php/.registry/.channel.doc.php.net
+ rm -rf debian/$(package)/tmp;
+
+binary-indep: install
+ dh_testdir
+ dh_testroot
+ dh_installdocs $(pear_pkg)/scripts/phail.php $(pear_pkg)/tests
+ dh_installchangelogs
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-arch: binary-indep
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- php-mail-mime-1.8.0.orig/debian/changelog
+++ php-mail-mime-1.8.0/debian/changelog
@@ -0,0 +1,79 @@
+php-mail-mime (1.8.0-2) unstable; urgency=low
+
+ * Removed some unwanted /usr/share/php/{docs,tests} files that shouldn't be
+ in there (they are already in /usr/share/doc/php-mail-mime anyway).
+
+ -- Thomas Goirand <zigo@debian.org> Tue, 07 Sep 2010 11:08:32 +0800
+
+php-mail-mime (1.8.0-1) unstable; urgency=low
+
+ * New upstream release (Closes: #588295, #575671).
+ * Adopting the package (Closes: #575524).
+ * Standards-Version is now 3.9.1.
+ * Now depends on debhelper 7.
+ * Section is now php.
+ * Added Vcs-Git and Vcs-Browser since I'm using the pkg-php git repo.
+ * Added a new debian/source/format.
+ * Rewrote debian/copyright so that it's formated correctly and includes all
+ the authors.
+ * Removed useless README.Debian that didn't add more info than what was in
+ the debian/control file.
+ * Removed debian/upstream-changelog as I wont have time to maintain such file
+ that by the way is useless, as everyone that knows PEAR a bit also knows
+ that such information is always available on pear.php.net if it is
+ absolutely needed.
+ * Rewrote debian/rules nearly from scratch, as the old one was pretty bad.
+ Sorry if I'm not documenting all changes to this file here, but really,
+ it's close to a full rewrite.
+ * Now Build-Depends-Indep: php-pear because I'm using the pear cli tool to
+ install this pear package in debian/php-mail-mime.
+
+ -- Thomas Goirand <zigo@debian.org> Wed, 04 Aug 2010 18:22:18 +0800
+
+php-mail-mime (1.5.3-0.1) unstable; urgency=low
+
+ * NMU with maintainer's approval.
+ * New upstream release
+ + fixes From: over-encoding, closes: #564214.
+ * Manual update to our upstream-changelog.
+
+ -- Josip Rodin <joy-packages@debian.org> Thu, 14 Jan 2010 09:28:34 +0100
+
+php-mail-mime (1.5.2-0.1) unstable; urgency=low
+
+ * Non-maintainer upload with maintainer approval
+ * New upstream release (Closes: #469815)
+ - This new release fixes problems related to returning non variable
+ references (Closes: #433641)
+ * Correct debian/watch, thanks to Pierre Gaufillet (Closes: #450371)
+ * Add Homepage field to debian/control
+ * Update Standards-Version to 3.7.3
+ * Update debian/upstream-changelog
+ * Depends on php-mail-mimedecode that was split off
+
+ -- Vincent Bernat <bernat@luffy.cx> Fri, 28 Mar 2008 20:18:53 +0100
+
+php-mail-mime (1.3.1-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Change dependency from `php4-pear' to `php-pear'. (Closes: #388317)
+
+ -- Philipp Kern <pkern@debian.org> Thu, 18 Jan 2007 10:47:46 +0100
+
+php-mail-mime (1.3.1-1) unstable; urgency=low
+
+ * New upstream
+ - Upstream fixed case-differences in encoding, dropping Debian patch
+ * Bumped policy compliance to 3.6.2 (no changes)
+ * Bumped debhelper compat level to 5
+ * Changed priority to optional (Closes: #299547)
+ * Update debian/copyright to reflect new upstream contributions
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Tue, 29 Nov 2005 22:53:23 +0100
+
+php-mail-mime (1.2.1-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sat, 31 Jul 2004 18:58:15 +0200
+
--- php-mail-mime-1.8.0.orig/debian/watch
+++ php-mail-mime-1.8.0/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pear.php.net/package/Mail_Mime/download http://download.pear.php.net/package/Mail_Mime-([\d.]+)\.tgz
--- php-mail-mime-1.8.0.orig/debian/source/format
+++ php-mail-mime-1.8.0/debian/source/format
@@ -0,0 +1 @@
+1.0