diff options
author | 2007-03-11 01:19:14 +0000 | |
---|---|---|
committer | 2007-03-11 01:19:14 +0000 | |
commit | 6321bd1d20a9d72c07e0833bc71417a5a1e14bc7 (patch) | |
tree | 3bf8e2c3fc90477d55675ee1e890d54bf88e7fed /net-mail/mpack | |
parent | Alpha love. (diff) | |
download | gentoo-2-6321bd1d20a9d72c07e0833bc71417a5a1e14bc7.tar.gz gentoo-2-6321bd1d20a9d72c07e0833bc71417a5a1e14bc7.tar.bz2 gentoo-2-6321bd1d20a9d72c07e0833bc71417a5a1e14bc7.zip |
Version bump. Fixes bug #161274, reported by Rossen Apostolov <rossen at protein.osaka-u.ac.jp>.
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-mail/mpack')
-rw-r--r-- | net-mail/mpack/ChangeLog | 11 | ||||
-rw-r--r-- | net-mail/mpack/files/digest-mpack-1.6 | 3 | ||||
-rw-r--r-- | net-mail/mpack/files/mpack-1.6-gentoo.patch | 69 | ||||
-rw-r--r-- | net-mail/mpack/mpack-1.6.ebuild | 30 |
4 files changed, 111 insertions, 2 deletions
diff --git a/net-mail/mpack/ChangeLog b/net-mail/mpack/ChangeLog index f95086dc1964..f61d064b3d59 100644 --- a/net-mail/mpack/ChangeLog +++ b/net-mail/mpack/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-mail/mpack -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/ChangeLog,v 1.10 2006/09/08 22:38:00 dang Exp $ +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/ChangeLog,v 1.11 2007/03/11 01:19:13 ticho Exp $ + +*mpack-1.6 (11 Mar 2007) + + 11 Mar 2007; Andrej Kacian <ticho@gentoo.org> + +files/mpack-1.6-gentoo.patch, +mpack-1.6.ebuild: + Version bump. Fixes bug #161274, reported by Rossen Apostolov <rossen at + protein.osaka-u.ac.jp>. 08 Sep 2006; Daniel Gryniewicz <dang@gentoo.org> mpack-1.5-r1.ebuild: Marked stable on amd64 for bug #146090 diff --git a/net-mail/mpack/files/digest-mpack-1.6 b/net-mail/mpack/files/digest-mpack-1.6 new file mode 100644 index 000000000000..11a759cb5354 --- /dev/null +++ b/net-mail/mpack/files/digest-mpack-1.6 @@ -0,0 +1,3 @@ +MD5 a70fa5afa76539a9afb70b9d81568fe8 mpack-1.6.tar.gz 179850 +RMD160 a83330aa15437dc3ca6475cbf6e35b09ab9cef07 mpack-1.6.tar.gz 179850 +SHA256 274108bb3a39982a4efc14fb3a65298e66c8e71367c3dabf49338162d207a94c mpack-1.6.tar.gz 179850 diff --git a/net-mail/mpack/files/mpack-1.6-gentoo.patch b/net-mail/mpack/files/mpack-1.6-gentoo.patch new file mode 100644 index 000000000000..faf72eb67e7a --- /dev/null +++ b/net-mail/mpack/files/mpack-1.6-gentoo.patch @@ -0,0 +1,69 @@ +diff -bur mpack-1.6-orig/unixos.c mpack-1.6/unixos.c +--- mpack-1.6-orig/unixos.c 2007-03-11 02:02:02.000000000 +0100 ++++ mpack-1.6/unixos.c 2007-03-11 02:04:48.000000000 +0100 +@@ -39,7 +39,7 @@ + #endif + + extern int errno; +-extern char *malloc(); ++extern void *malloc(); + extern char *getenv(); + + int overwrite_files = 0; +@@ -90,7 +90,7 @@ + strcpy(buf, getenv("TMPDIR")); + } + else { +- strcpy(buf, "/usr/tmp"); ++ strcpy(buf, "/var/tmp"); + } + strcat(buf, "/m-prts-"); + p = getenv("USER"); +diff -bur mpack-1.6-orig/unixpk.c mpack-1.6/unixpk.c +--- mpack-1.6-orig/unixpk.c 2007-03-11 02:02:02.000000000 +0100 ++++ mpack-1.6/unixpk.c 2007-03-11 02:14:02.000000000 +0100 +@@ -167,7 +167,7 @@ + strcpy(fnamebuf, "/usr/tmp"); + } + strcat(fnamebuf, "/mpackXXXXXX"); +- mktemp(fnamebuf); ++ mkstemp(fnamebuf); + outfname = strsave(fnamebuf); + } + +diff -bur mpack-1.6-orig/unixpk.man mpack-1.6/unixpk.man +--- mpack-1.6-orig/unixpk.man 2007-03-11 02:02:02.000000000 +0100 ++++ mpack-1.6/unixpk.man 2007-03-11 02:14:13.000000000 +0100 +@@ -136,7 +136,7 @@ + .SH ENVIRONMENT + .TP + .B TMPDIR +-Directory to store temporary files. Default is /usr/tmp. ++Directory to store temporary files. Default is /var/tmp. + .TP + .B SPLITSIZE + Default value of the -m switch. +diff -bur mpack-1.6-orig/unixunpk.man mpack-1.6/unixunpk.man +--- mpack-1.6-orig/unixunpk.man 2007-03-11 02:02:02.000000000 +0100 ++++ mpack-1.6/unixunpk.man 2007-03-11 02:03:14.000000000 +0100 +@@ -107,7 +107,7 @@ + .SH ENVIRONMENT + .TP + .B TMPDIR +-Directory to store temporary files. Default is /usr/tmp. ++Directory to store temporary files. Default is /var/tmp. + .SH FILES + .TP + .B $TMPDIR/m-prts-$USER/ +diff -bur mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c +--- mpack-1.6-orig/xmalloc.c 2007-03-11 02:02:02.000000000 +0100 ++++ mpack-1.6/xmalloc.c 2007-03-11 02:04:29.000000000 +0100 +@@ -24,7 +24,7 @@ + */ + #include <stdio.h> + #include <string.h> +-extern char *malloc(), *realloc(); ++extern void *malloc(), *realloc(); + + char *xmalloc (int size) + { diff --git a/net-mail/mpack/mpack-1.6.ebuild b/net-mail/mpack/mpack-1.6.ebuild new file mode 100644 index 000000000000..7380787993a9 --- /dev/null +++ b/net-mail/mpack/mpack-1.6.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/mpack-1.6.ebuild,v 1.1 2007/03/11 01:19:13 ticho Exp $ + +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" +IUSE="" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + econf || die + emake || die +} + +src_install () { + make DESTDIR=${D} install || die + dodoc README.* Changes +} |