--- libmail-box-perl-2.078.orig/debian/control +++ libmail-box-perl-2.078/debian/control @@ -0,0 +1,31 @@ +Source: libmail-box-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5.0), quilt +Build-Depends-Indep: perl (>= 5.6.0-16), libtimedate-perl, libio-stringy-perl, + libmime-types-perl (>= 1.004), libmailtools-perl, + libobject-realize-later-perl (>= 0.14), + libscalar-list-utils-perl (>= 1.13) | perl (>= 5.8.2-2), + liburi-perl (>= 1.23), libdigest-hmac-perl, libuser-identity-perl, + libfile-remove-perl, libtext-autoformat-perl, netbase, libhtml-format-perl, + libtest-harness-perl (>= 3), libtest-pod-perl +Maintainer: Debian Perl Group +Uploaders: Gunnar Wolf , Gustavo Franco , + Krzysztof Krzyzaniak (eloy) , + gregor herrmann , Damyan Ivanov +Standards-Version: 3.7.2 +Homepage: http://search.cpan.org/dist/Mail-Box/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libmail-box-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-box-perl/ + +Package: libmail-box-perl +Architecture: all +Depends: ${perl:Depends}, libtimedate-perl, libio-stringy-perl, libmime-types-perl (>= 1.004), libmailtools-perl, libobject-realize-later-perl (>= 0.14), libscalar-list-utils-perl (>= 1.13) | perl (>= 5.8.2-2), liburi-perl (>= 1.23), libdigest-hmac-perl, libuser-identity-perl, libfile-remove-perl +Suggests: libmime-perl, libhtml-tree-perl (>= 3.13), libhtml-format-perl, spamassassin, libmail-imapclient-perl (>= 2.2.8) +Description: Manage a message-folder + Mail::Box is the base-class for accessing various types of mail-folder + organizational structures in a uniform way. The various folder types vary + on how they store their messages. For example, a folder may store many + messages in a single file, or store each message in a separate file in a + directory. Similarly, there may be different techniques for locking the + folders. --- libmail-box-perl-2.078.orig/debian/rules +++ libmail-box-perl-2.078/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f + +# Tell MakeMaker not to ask some questions +export MAILBOX_INSTALL_OPTIONALS=no +export MAILBOX_RUN_TESTS=yes + +include /usr/share/quilt/quilt.make + +PERL ?= /usr/bin/perl + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + + # convert 8-bit chars to groff escapes + sh debian/fix-manpage-special-chars.sh + $(MAKE) test + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + rm -rf a/ t/ tests/a/ + rm -f tests/folders/mbox.win + dh_clean + [ ! -f Makefile ] || $(MAKE) distclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/libmail-box-perl PREFIX=/usr + # This package install a spurious Makefile.PL in /usr/share/perl5/Mail + # ... Just kill it. Of course, inform upstream - When it is gone, + # we'll have to remove this couple of lines. + rm $(CURDIR)/debian/libmail-box-perl/usr/share/perl5/Mail/Makefile.PL + # and remove /usr/lib/perl5 + rmdir --parents --ignore-fail-on-non-empty $(CURDIR)/debian/libmail-box-perl/usr/lib/perl5 + touch install-stamp + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installchangelogs ChangeLog + dh_compress + dh_fixperms + dh_installdeb + dh_perl + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- libmail-box-perl-2.078.orig/debian/README.Debian +++ libmail-box-perl-2.078/debian/README.Debian @@ -0,0 +1,9 @@ +Memory consumption: + +If you experience high memory usage while opening or browsing folders you +might want to try either ->destruct()ing used messages and/or re-opening the +folder periodically; cf. +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443259 and +http://rt.cpan.org/Public/Bug/Display.html?id=29580 + + -- gregor herrmann Wed, 26 Sep 2007 17:06:05 +0200 --- libmail-box-perl-2.078.orig/debian/watch +++ libmail-box-perl-2.078/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.cpan.org/modules/by-module/Mail/Mail-Box-([0-9\.]+)\.tar\.gz --- libmail-box-perl-2.078.orig/debian/examples +++ libmail-box-perl-2.078/debian/examples @@ -0,0 +1,2 @@ +examples/* +scripts/ --- libmail-box-perl-2.078.orig/debian/fix-manpage-special-chars.sh +++ libmail-box-perl-2.078/debian/fix-manpage-special-chars.sh @@ -0,0 +1,7 @@ +#!bin/sh + +set -e +set -u + +sed -i -e 's/\xE4/\\[:a]/g; s/\xF6/\\[:o]/g' \ + blib/man3/Mail::Message::Field.3pm --- libmail-box-perl-2.078.orig/debian/copyright +++ libmail-box-perl-2.078/debian/copyright @@ -0,0 +1,18 @@ +This package was debianized by Adam Byrtek on Tue, +12 Mar 2002 17:12:22 +0100. + +The upstream author is: Mark Overmeer . + +Upstream URL: http://search.cpan.org/dist/Mail-Box/ + +Copyright: + +Copyrights 2001-2007 by Mark Overmeer + +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +Perl is distributed under your choice of the GNU General Public License or +the Artistic License. On Debian GNU/Linux systems, the complete text of the +GNU General Public License can be found in `/usr/share/common-licenses/GPL' +and the Artistic Licence in `/usr/share/common-licenses/Artistic'. --- libmail-box-perl-2.078.orig/debian/docs +++ libmail-box-perl-2.078/debian/docs @@ -0,0 +1,4 @@ +README +TODO.v2 +README.FAQ +README.todo --- libmail-box-perl-2.078.orig/debian/compat +++ libmail-box-perl-2.078/debian/compat @@ -0,0 +1 @@ +5 --- libmail-box-perl-2.078.orig/debian/changelog +++ libmail-box-perl-2.078/debian/changelog @@ -0,0 +1,247 @@ +libmail-box-perl (2.078-1) unstable; urgency=low + + * New upstream release. + * Change build dependency from libtap-parser-perl to libtest-harness-perl + (>= 3). + * debian/copyright: Add upstream URL, add links to both GPL and Artistic + license, add proper copyright attribution. + * debian/rules: + - Remove OPTIMIZE, we don't compile anything. + - Remove configure{,-stamp} targets, create install-stamp target, + adjust dependencies between targets. + - Remove unneeded call to dh_strip. + + -- gregor herrmann Sat, 17 Nov 2007 22:23:13 +0100 + +libmail-box-perl (2.076-1) unstable; urgency=low + + * New upstream release. + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza); Homepage field (source stanza). Removed: XS- + Vcs-Svn fields. + * Remove empty /usr/lib/perl5 directory. + + -- gregor herrmann Thu, 25 Oct 2007 20:00:56 +0200 + +libmail-box-perl (2.075-1) unstable; urgency=low + + [ Damyan Ivanov ] + * New upstream release + Closes: #442912 -- autodetection of MH folders not working correctly + * Replace libtest-harness-perl with libtap-parser-perl in B-D-I + Wrap B-D-I while there + + [ gregor herrmann ] + * Add README.Debian; explains how to avoid high memory consumption + (cf. #443259). + + -- gregor herrmann Fri, 05 Oct 2007 15:09:46 +0200 + +libmail-box-perl (2.074-1) unstable; urgency=low + + * New upstream bugfix release + * Moved change to Mail::Box::Dir and Mail::Box::File to a quilt patch + * Added libtest-pod-perl to B-D-I enabling POD tests + * Added 02_fix_man_page_width_errors.patch, fixing un-splittable lines in + two PODs + * Added myself to uploaders + * Added a short script to translate special chars in man pages to groff + escapes after $(MAKE). Elliminates an overriden lintian warning. + + -- Damyan Ivanov Sun, 23 Sep 2007 13:15:30 +0300 + +libmail-box-perl (2.073-1) unstable; urgency=low + + * New upstream release + + -- Gunnar Wolf Wed, 25 Jul 2007 15:07:50 -0500 + +libmail-box-perl (2.072-1) unstable; urgency=low + + * New upstream release. + * Set debhelper compatibility level to 5. + * Don't ignore errors from make distclean any more. + + -- gregor herrmann Sun, 15 Jul 2007 02:25:29 +0200 + +libmail-box-perl (2.070-1) unstable; urgency=low + + * New upstream release + * debian/watch updated + + -- Krzysztof Krzyzaniak (eloy) Wed, 18 Apr 2007 15:07:08 +0200 + +libmail-box-perl (2.069-1) unstable; urgency=low + + * New upstream release + + -- Gunnar Wolf Sat, 23 Dec 2006 14:47:38 -0600 + +libmail-box-perl (2.068-1) unstable; urgency=low + + * New upstream release. + * Change URL in watch file. + + -- gregor herrmann Sun, 8 Oct 2006 18:07:34 +0200 + +libmail-box-perl (2.066-1) unstable; urgency=low + + * Bumped up standards-version to 3.7.2 (no changes needed) + * New upstream release + + -- Gunnar Wolf Thu, 17 Aug 2006 10:39:03 -0500 + +libmail-box-perl (2.065-1) unstable; urgency=low + + * New upstream release + + -- Krzysztof Krzyzaniak (eloy) Tue, 28 Mar 2006 12:47:14 +0200 + +libmail-box-perl (2.064-1) unstable; urgency=low + + * New upstream release + * debian/control: + - Uploaders: added me + - Build-Depends: moved debhelper here + - Build-Depends-Indep: added libhtml-format-perl + * Not uploaded yet because of http://rt.cpan.org/Public/Bug/Display.html?id=18095 + + -- Krzysztof Krzyzaniak (eloy) Tue, 14 Mar 2006 14:09:21 +0100 + +libmail-box-perl (2.063-1) unstable; urgency=low + + * New upstream release + * Switched to the mechanism now provided by upstream to non-interactively + specify the build options instead of patching the Makefile.pl - Thanks! + + -- Gunnar Wolf Fri, 18 Nov 2005 11:58:33 -0600 + +libmail-box-perl (2.062-2) unstable; urgency=low + + * Set dh_compat level to 4 + * Added "use filetest 'access'" before checking for write access to work + correctly in filesystems with ACLs - Thanks, Niko Tyni, for the answer! + (Closes: #321076) + + -- Gunnar Wolf Thu, 17 Nov 2005 10:59:16 -0600 + +libmail-box-perl (2.062-1) unstable; urgency=low + + * New upstream release + * Bumped up standards-version to 3.6.2 + * Added Lintian overrides for manpage-has-errors-from-man (a pod2man + bug, see #328305) + + -- Gunnar Wolf Wed, 14 Sep 2005 13:25:56 -0500 + +libmail-box-perl (2.061-1) unstable; urgency=low + + * New upstream release + * Added build-dependency on libtext-autoformat-perl to avoid failing + some tests + * Added build-dependency on netbase, to have the needed information to + resolve the protocol's numbers - Thanks to Niko Tyni for pointing it out! + (Closes: #306002) + + -- Gunnar Wolf Mon, 1 Aug 2005 12:34:30 -0500 + +libmail-box-perl (2.060-2) unstable; urgency=low + + * No longer installs spurious Makefile.PL in /usr/share/perl5/Mail + (Closes: #304813) + + -- Gunnar Wolf Mon, 18 Apr 2005 15:16:49 -0500 + +libmail-box-perl (2.060-1) unstable; urgency=low + + * New upstream release (Closes: #293074) + * New maintainer - Debian Perl Group via Gunnar Wolf + - Thanks, Jeroen van Wolffelaar, for + remembering me about it :-/ (Closes: #282298) + * Added dependency and build-dependency on libfile-remove-perl and + libuser-identity-perl + + -- Gunnar Wolf Fri, 8 Apr 2005 16:13:29 -0500 + +libmail-box-perl (2.055-1) unstable; urgency=low + + * New upstream release + * debian/rules clean up. + * Depends and Build-Depends put into single line to stop lintian + complaining. + + -- Adam Byrtek Mon, 31 May 2004 18:15:21 +0200 + +libmail-box-perl (2.052-2) unstable; urgency=low + + * Alternate dependency upon perl (>= 5.8.2-2) fixed + (closes: #220854). + * Standards-Version raised to 3.6.1. + + -- Adam Byrtek Mon, 26 Jan 2004 00:08:10 +0100 + +libmail-box-perl (2.052-1) unstable; urgency=low + + * New upstream release (closes: #192057). + * Missing comma in debian/control fixed (closes: #212111). + * Added alternate dependency upon perl (>= 5.8.2-2), because + Scalar::Utils is now included in it (closes: #220854). + * Depends and Suggests fields updated. + * Makefile.PL patched so it can work non-interactively. + + -- Adam Byrtek Wed, 14 Jan 2004 23:04:46 +0100 + +libmail-box-perl (2.038-1) unstable; urgency=low + + * New upstream release. + * Tests are not run upon build, they are too restrictive when comes to + dependencies and require loopback interface (closes: #182418). + + -- Adam Byrtek Wed, 5 Mar 2003 15:58:59 +0100 + +libmail-box-perl (2.029-1) unstable; urgency=low + + * New upstream release. + + -- Adam Byrtek Sun, 17 Nov 2002 21:27:21 +0100 + +libmail-box-perl (2.026-2) unstable; urgency=low + + * debian/watch file added. + * Mail::Message::Convert::MailInternet fixed + Closes: #160055. + + -- Adam Byrtek Sun, 17 Nov 2002 14:48:11 +0100 + +libmail-box-perl (2.026-1) unstable; urgency=low + + * New upstream release. + + -- Adam Byrtek Sun, 13 Oct 2002 18:17:24 +0200 + +libmail-box-perl (2.021-1) unstable; urgency=low + + * New upstream release. + + -- Adam Byrtek Fri, 6 Sep 2002 22:11:59 +0200 + +libmail-box-perl (2.009-3) unstable; urgency=low + + * Fixed build-dependencies... which I've forgotten about (needed for + 'make test'). Closes: #142157. + + -- Adam Byrtek Wed, 10 Apr 2002 14:12:46 +0200 + +libmail-box-perl (2.009-2) unstable; urgency=low + + * Fixed dependencies. + + -- Adam Byrtek Tue, 12 Mar 2002 23:32:23 +0100 + +libmail-box-perl (2.009-1) unstable; urgency=low + + * Initial Release. + * Closes: #136457. + + -- Adam Byrtek Tue, 12 Mar 2002 17:12:22 +0100 --- libmail-box-perl-2.078.orig/debian/patches/01_access_check_use_filetest::access.patch +++ libmail-box-perl-2.078/debian/patches/01_access_check_use_filetest::access.patch @@ -0,0 +1,38 @@ +--- libmail-box-perl-2.074.orig/lib/Mail/Box/Dir.pm ++++ libmail-box-perl-2.074/lib/Mail/Box/Dir.pm +@@ -58,9 +58,13 @@ + + # Check if we can write to the folder, if we need to. + +- if($self->writable && -e $directory && ! -w $directory) +- { $self->log(WARNING=> "Folder directory $directory is write-protected."); +- $self->{MB_access} = 'r'; ++ { # filetest 'access' is slower, but works correctly if we have a ++ # filesystem with ACLs ++ use filetest 'access'; ++ if($self->writable && -e $directory && ! -w $directory) ++ { $self->log(WARNING=> "Folder directory $directory is write-protected."); ++ $self->{MB_access} = 'r'; ++ } + } + + $self; +--- libmail-box-perl-2.074.orig/lib/Mail/Box/File.pm ++++ libmail-box-perl-2.074/lib/Mail/Box/File.pm +@@ -88,9 +88,13 @@ + + # Check if we can write to the folder, if we need to. + +- if($self->writable && ! -w $filename) +- { $self->log(WARNING => "Folder $self file $filename is write-protected."); +- $self->{MB_access} = 'r'; ++ { # filetest 'access' is slower, but works correctly if we have a ++ # filesystem with ACLs ++ use filetest 'access'; ++ if($self->writable && ! -w $filename) ++ { $self->log(WARNING => "Folder $self file $filename is write-protected."); ++ $self->{MB_access} = 'r'; ++ } + } + + # Start parser if reading is required. --- libmail-box-perl-2.078.orig/debian/patches/series +++ libmail-box-perl-2.078/debian/patches/series @@ -0,0 +1,2 @@ +01_access_check_use_filetest::access.patch +02_man_page_width_errors.patch --- libmail-box-perl-2.078.orig/debian/patches/02_man_page_width_errors.patch +++ libmail-box-perl-2.078/debian/patches/02_man_page_width_errors.patch @@ -0,0 +1,26 @@ +Index: libmail-box-perl/lib/Mail/Box/Message/Destructed.pod +=================================================================== +--- libmail-box-perl.orig/lib/Mail/Box/Message/Destructed.pod 2007-09-23 11:25:40.000000000 +0300 ++++ libmail-box-perl/lib/Mail/Box/Message/Destructed.pod 2007-09-23 11:28:23.000000000 +0300 +@@ -182,7 +182,7 @@ + + =back + +-Mail::Box::Message::Destructed-EB(FILEHANDLE|SCALAR|REF-SCALAR|ARRAY-OF-LINES, OPTIONS) ++Mail::Box::Message::Destructed-EB( FILEHANDLE | SCALAR | REF-SCALAR | ARRAY-OF-LINES, OPTIONS) + + =over 4 + +Index: libmail-box-perl/lib/Mail/Box/Net/Message.pod +=================================================================== +--- libmail-box-perl.orig/lib/Mail/Box/Net/Message.pod 2007-09-23 11:25:40.000000000 +0300 ++++ libmail-box-perl/lib/Mail/Box/Net/Message.pod 2007-09-23 11:28:23.000000000 +0300 +@@ -185,7 +185,7 @@ + + =back + +-Mail::Box::Net::Message-EB(FILEHANDLE|SCALAR|REF-SCALAR|ARRAY-OF-LINES, OPTIONS) ++Mail::Box::Net::Message-EB( FILEHANDLE | SCALAR | REF-SCALAR | ARRAY-OF-LINES, OPTIONS) + + =over 4 +