summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-04-06 21:55:33 +0000
committerMike Frysinger <vapier@gentoo.org>2004-04-06 21:55:33 +0000
commitb5ca06368936a3c451ad35900fd561a3d4b33cc2 (patch)
tree40fc15b78b6531ebd7dc381a1450089bd1a93f53 /app-arch/sharutils
parentchanged description (Manifest recommit) (diff)
downloadgentoo-2-b5ca06368936a3c451ad35900fd561a3d4b33cc2.tar.gz
gentoo-2-b5ca06368936a3c451ad35900fd561a3d4b33cc2.tar.bz2
gentoo-2-b5ca06368936a3c451ad35900fd561a3d4b33cc2.zip
buffer size check #46998
Diffstat (limited to 'app-arch/sharutils')
-rw-r--r--app-arch/sharutils/ChangeLog7
-rw-r--r--app-arch/sharutils/files/digest-sharutils-4.2.1-r81
-rw-r--r--app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch11
-rw-r--r--app-arch/sharutils/sharutils-4.2.1-r8.ebuild57
4 files changed, 75 insertions, 1 deletions
diff --git a/app-arch/sharutils/ChangeLog b/app-arch/sharutils/ChangeLog
index 27718417662e..8b0d74fcbe95 100644
--- a/app-arch/sharutils/ChangeLog
+++ b/app-arch/sharutils/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-arch/sharutils
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/sharutils/ChangeLog,v 1.3 2004/03/05 18:09:16 iggy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/sharutils/ChangeLog,v 1.4 2004/04/06 21:55:33 vapier Exp $
+
+*sharutils-4.2.1-r8 (06 Apr 2004)
+
+ 06 Apr 2004; Mike Frysinger <vapier@gentoo.org> :
+ Add buffer size checking #46998 by Florian Schilhabel.
02 Mar 2004; Brian Jackson <iggy@gentoo.org> sharutils-4.2.1-r7.ebuild:
adding initial s390 support
diff --git a/app-arch/sharutils/files/digest-sharutils-4.2.1-r8 b/app-arch/sharutils/files/digest-sharutils-4.2.1-r8
new file mode 100644
index 000000000000..afb942300ec9
--- /dev/null
+++ b/app-arch/sharutils/files/digest-sharutils-4.2.1-r8
@@ -0,0 +1 @@
+MD5 b8ba1d409f07edcb335ff72a27bd9828 sharutils-4.2.1.tar.gz 306022
diff --git a/app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch b/app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch
new file mode 100644
index 000000000000..96ad67645019
--- /dev/null
+++ b/app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch
@@ -0,0 +1,11 @@
+--- src/shar.c.orig 2004-04-06 17:51:40.849154592 -0400
++++ src/shar.c 2004-04-06 17:53:13.843017376 -0400
+@@ -1905,7 +1905,7 @@
+ break;
+
+ case 'o':
+- strcpy (output_base_name, optarg);
++ strncpy (output_base_name, optarg, sizeof(output_base_name));
+ if (!strchr (output_base_name, '%'))
+ strcat (output_base_name, ".%02d");
+ part_number = 0;
diff --git a/app-arch/sharutils/sharutils-4.2.1-r8.ebuild b/app-arch/sharutils/sharutils-4.2.1-r8.ebuild
new file mode 100644
index 000000000000..c7e50a280d45
--- /dev/null
+++ b/app-arch/sharutils/sharutils-4.2.1-r8.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/sharutils/sharutils-4.2.1-r8.ebuild,v 1.1 2004/04/06 21:55:33 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="Tools to deal with shar archives"
+HOMEPAGE="http://www.gnu.org/software/sharutils/"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha ~hppa ~ia64 ~ppc64 s390"
+IUSE="nls"
+
+DEPEND="sys-apps/texinfo
+ nls? ( >=sys-devel/gettext-0.10.35 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-r6-gentoo.diff
+ epatch ${FILESDIR}/${P}-buffer-check.patch #46998
+
+ cd ${S}/po
+ cp ja_JP.EUC.po ja.po
+ cp ja_JP.EUC.gmo ja.gmo
+ sed -i -e 's/aangemaakt/aangemaakt\\n/' nl.po
+ sed -i -e 's/de %dk/de %dk\\n/' pt.po
+}
+
+src_compile() {
+ econf `use_enable nls` || die
+ emake || die
+}
+
+src_install() {
+ local x=
+
+ einstall \
+ localedir=${D}/usr/share/locale \
+ || die
+
+ doman doc/*.[15]
+ # Remove some strange locales
+ cd ${D}/usr/share/locale
+ for x in *.
+ do
+ rm -rf ${x}
+ done
+ rm -rf ${D}/usr/lib
+
+ cd ${S}
+ dodoc AUTHORS BACKLOG ChangeLog ChangeLog.OLD \
+ NEWS README README.OLD THANKS TODO
+}