summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2011-12-31 22:45:11 +0000
committerSebastian Pipping <sping@gentoo.org>2011-12-31 22:45:11 +0000
commit882243718969f4c48196f8f37fb5e6edc5395119 (patch)
treeca74f1b27adba0f16530d71196765a4ea11c9b46 /net-mail/mpack
parentRemove old. (diff)
downloadgentoo-2-882243718969f4c48196f8f37fb5e6edc5395119.tar.gz
gentoo-2-882243718969f4c48196f8f37fb5e6edc5395119.tar.bz2
gentoo-2-882243718969f4c48196f8f37fb5e6edc5395119.zip
net-mail/mpack: 1.6-r2
(Portage version: 2.1.10.43/cvs/Linux x86_64)
Diffstat (limited to 'net-mail/mpack')
-rw-r--r--net-mail/mpack/ChangeLog8
-rw-r--r--net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch28
-rw-r--r--net-mail/mpack/mpack-1.6-r2.ebuild28
3 files changed, 63 insertions, 1 deletions
diff --git a/net-mail/mpack/ChangeLog b/net-mail/mpack/ChangeLog
index 2e7503e97b59..eb44b1cd4466 100644
--- a/net-mail/mpack/ChangeLog
+++ b/net-mail/mpack/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-mail/mpack
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/ChangeLog,v 1.15 2011/12/07 23:34:59 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/ChangeLog,v 1.16 2011/12/31 22:45:11 sping Exp $
+
+*mpack-1.6-r2 (31 Dec 2011)
+
+ 31 Dec 2011; Sebastian Pipping <sping@gentoo.org> +mpack-1.6-r2.ebuild,
+ +files/mpack-1.6-cve-2011-4919.patch:
+ Apply patch for CVE-2011-4919 (information disclosure) (bug #171075)
*mpack-1.6-r1 (07 Dec 2011)
diff --git a/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch b/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch
new file mode 100644
index 000000000000..62a04faa7936
--- /dev/null
+++ b/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch
@@ -0,0 +1,28 @@
+From 0c87201f64491575350b18d04c62ec142e119d1f Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 31 Dec 2011 20:17:20 +0100
+Subject: [PATCH] Fix permissions
+
+---
+ unixos.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/unixos.c b/unixos.c
+index fa6d0a7..0e2f469 100644
+--- a/unixos.c
++++ b/unixos.c
+@@ -134,9 +134,9 @@ FILE *os_createnewfile(char *fname)
+ FILE *ret;
+
+ #ifdef O_EXCL
+- fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0644);
++ fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0600);
+ #else
+- fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0644);
++ fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0600);
+ #endif
+
+ if (fd == -1)
+--
+1.7.8.1
+
diff --git a/net-mail/mpack/mpack-1.6-r2.ebuild b/net-mail/mpack/mpack-1.6-r2.ebuild
new file mode 100644
index 000000000000..bba9f81ac68e
--- /dev/null
+++ b/net-mail/mpack/mpack-1.6-r2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/mpack-1.6-r2.ebuild,v 1.1 2011/12/31 22:45:11 sping Exp $
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="Command-line MIME encoding and decoding utilities"
+HOMEPAGE="ftp://ftp.andrew.cmu.edu/pub/mpack/"
+SRC_URI="ftp://ftp.andrew.cmu.edu/pub/mpack/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="~amd64 ~sparc ~x86 ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+src_prepare() {
+ # NOTE: These three patches replace <mpack-1.6-gentoo.patch>
+ epatch "${FILESDIR}"/${P}-compile.patch
+ epatch "${FILESDIR}"/${P}-paths.patch
+ epatch "${FILESDIR}"/${P}-cve-2011-4919.patch
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+ dodoc README.* Changes
+}