summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2012-05-29 11:47:51 +0000
committerTiziano Müller <dev-zero@gentoo.org>2012-05-29 11:47:51 +0000
commit4b37690b6f650a447c2d459ae43d8c49bcefbc39 (patch)
treefd50ffaaad250fc3c3874da0337fa5733bb1d6b1 /dev-perl/Net-SMTP-TLS
parentFix dependencies as pointed out by Mikel Olasagasti (diff)
downloadgentoo-2-4b37690b6f650a447c2d459ae43d8c49bcefbc39.tar.gz
gentoo-2-4b37690b6f650a447c2d459ae43d8c49bcefbc39.tar.bz2
gentoo-2-4b37690b6f650a447c2d459ae43d8c49bcefbc39.zip
fix bug corrupting attachments (bug #385245, upstream bug #63538 at rt.cpan.org)
(Portage version: 2.1.10.56/cvs/Linux x86_64)
Diffstat (limited to 'dev-perl/Net-SMTP-TLS')
-rw-r--r--dev-perl/Net-SMTP-TLS/ChangeLog10
-rw-r--r--dev-perl/Net-SMTP-TLS/Net-SMTP-TLS-0.120.0-r1.ebuild24
-rw-r--r--dev-perl/Net-SMTP-TLS/files/0.120.0-multiple-attachments-fix.patch12
3 files changed, 45 insertions, 1 deletions
diff --git a/dev-perl/Net-SMTP-TLS/ChangeLog b/dev-perl/Net-SMTP-TLS/ChangeLog
index 20f83033c83f..f02ef2dce509 100644
--- a/dev-perl/Net-SMTP-TLS/ChangeLog
+++ b/dev-perl/Net-SMTP-TLS/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-perl/Net-SMTP-TLS
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-SMTP-TLS/ChangeLog,v 1.4 2012/04/12 18:02:54 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-SMTP-TLS/ChangeLog,v 1.5 2012/05/29 11:47:51 dev-zero Exp $
+
+*Net-SMTP-TLS-0.120.0-r1 (29 May 2012)
+
+ 29 May 2012; Tiziano Müller <dev-zero@gentoo.org>
+ +Net-SMTP-TLS-0.120.0-r1.ebuild,
+ +files/0.120.0-multiple-attachments-fix.patch:
+ fix bug corrupting attachments (bug #385245, upstream bug #63538 at
+ rt.cpan.org)
12 Apr 2012; Torsten Veller <tove@gentoo.org> metadata.xml:
Use cpan distribution (not a module) in metadata.xml
diff --git a/dev-perl/Net-SMTP-TLS/Net-SMTP-TLS-0.120.0-r1.ebuild b/dev-perl/Net-SMTP-TLS/Net-SMTP-TLS-0.120.0-r1.ebuild
new file mode 100644
index 000000000000..d852246fe99a
--- /dev/null
+++ b/dev-perl/Net-SMTP-TLS/Net-SMTP-TLS-0.120.0-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-SMTP-TLS/Net-SMTP-TLS-0.120.0-r1.ebuild,v 1.1 2012/05/29 11:47:51 dev-zero Exp $
+
+EAPI=4
+
+MODULE_AUTHOR=AWESTHOLM
+MODULE_VERSION=0.12
+inherit perl-module
+
+DESCRIPTION="A SMTP client supporting TLS and AUTH"
+IUSE=""
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-perl/Net-SSLeay
+ dev-perl/IO-Socket-SSL
+ virtual/perl-MIME-Base64
+ dev-perl/Digest-HMAC"
+RDEPEND="${DEPEND}"
+
+SRC_TEST="do"
+
+PATCHES=( "${FILESDIR}/${PV}-multiple-attachments-fix.patch" )
diff --git a/dev-perl/Net-SMTP-TLS/files/0.120.0-multiple-attachments-fix.patch b/dev-perl/Net-SMTP-TLS/files/0.120.0-multiple-attachments-fix.patch
new file mode 100644
index 000000000000..05eac0eaa3c6
--- /dev/null
+++ b/dev-perl/Net-SMTP-TLS/files/0.120.0-multiple-attachments-fix.patch
@@ -0,0 +1,12 @@
+diff --git a/lib/Net/SMTP/TLS.pm b/lib/Net/SMTP/TLS.pm
+index 10f9f19..4936fe5 100644
+--- a/lib/Net/SMTP/TLS.pm
++++ b/lib/Net/SMTP/TLS.pm
+@@ -367,6 +367,7 @@ sub datasend {
+ return undef;
+ }
+ $len -= $w;
++ $offset += $w;
+ }
+ else
+ {