summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-04-29 07:53:42 +0000
committerPeter Volkov <pva@gentoo.org>2008-04-29 07:53:42 +0000
commit0ace3fecb83a66b9863b3fb9512a8550ef72c132 (patch)
tree7753a760987a83bfca56c7478093ddc50c1f2423
parentStable for HPPA (bug #219688). (diff)
downloadgentoo-2-0ace3fecb83a66b9863b3fb9512a8550ef72c132.tar.gz
gentoo-2-0ace3fecb83a66b9863b3fb9512a8550ef72c132.tar.bz2
gentoo-2-0ace3fecb83a66b9863b3fb9512a8550ef72c132.zip
Increased RPMBUFSIZ to allow rpm2targz unpack Nessus binaries, thank Cyberjun, bug #187219.
(Portage version: 2.1.4.4)
-rw-r--r--app-arch/rpm2targz/ChangeLog11
-rw-r--r--app-arch/rpm2targz/files/rpm2targz-9.0-increase-RPMBUFSIZ.patch11
-rw-r--r--app-arch/rpm2targz/rpm2targz-9.0-r7.ebuild59
3 files changed, 79 insertions, 2 deletions
diff --git a/app-arch/rpm2targz/ChangeLog b/app-arch/rpm2targz/ChangeLog
index 7f56148231f6..5054fb3ecdcf 100644
--- a/app-arch/rpm2targz/ChangeLog
+++ b/app-arch/rpm2targz/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-arch/rpm2targz
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm2targz/ChangeLog,v 1.60 2007/09/28 12:03:40 angelos Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm2targz/ChangeLog,v 1.61 2008/04/29 07:53:41 pva Exp $
+
+*rpm2targz-9.0-r7 (29 Apr 2008)
+
+ 29 Apr 2008; Peter Volkov <pva@gentoo.org>
+ +files/rpm2targz-9.0-increase-RPMBUFSIZ.patch, +rpm2targz-9.0-r7.ebuild:
+ Increased RPMBUFSIZ to allow rpm2targz unpack Nessus binaries, thank
+ Cyberjun, bug #187219.
28 Sep 2007; Christoph Mende <angelos@gentoo.org> rpm2targz-9.0-r6.ebuild:
Stable on amd64 wrt bug #193886
diff --git a/app-arch/rpm2targz/files/rpm2targz-9.0-increase-RPMBUFSIZ.patch b/app-arch/rpm2targz/files/rpm2targz-9.0-increase-RPMBUFSIZ.patch
new file mode 100644
index 000000000000..acf1b5d60115
--- /dev/null
+++ b/app-arch/rpm2targz/files/rpm2targz-9.0-increase-RPMBUFSIZ.patch
@@ -0,0 +1,11 @@
+--- rpmoffset.c.orig 2008-04-29 10:39:13.000000000 +0400
++++ rpmoffset.c 2008-04-29 10:39:57.000000000 +0400
+@@ -10,7 +10,7 @@
+ /* chunk of RAM right away so that we have enough. Yeah, horrible */
+ /* quick and dirty implementation, but hey -- it gets the job done. */
+
+-#define RPMBUFSIZ 2097152
++#define RPMBUFSIZ 3145728
+
+ main()
+ {
diff --git a/app-arch/rpm2targz/rpm2targz-9.0-r7.ebuild b/app-arch/rpm2targz/rpm2targz-9.0-r7.ebuild
new file mode 100644
index 000000000000..5f2516d46dd0
--- /dev/null
+++ b/app-arch/rpm2targz/rpm2targz-9.0-r7.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm2targz/rpm2targz-9.0-r7.ebuild,v 1.1 2008/04/29 07:53:41 pva Exp $
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Convert a .rpm file to a .tar.gz archive"
+HOMEPAGE="http://www.slackware.com/config/packages.php"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="userland_GNU"
+
+# NOTE: rpm2targz autodetects rpm2cpio at runtime, and uses it if available,
+# so we don't explicitly set it as a dependency.
+DEPEND="app-arch/cpio
+ sys-apps/file"
+RDEPEND="${DEPEND}
+ userland_GNU? (
+ sys-apps/util-linux
+ sys-apps/which )"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # makes rpm2targz extract in current dir
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ # adds bzip2 detection (#23249)
+ epatch "${FILESDIR}"/${P}-bzip2.patch
+ # adds bzip2 decompression to rpm2targz (#31164)
+ epatch "${FILESDIR}"/${P}-bzip2_rpm2targz.patch
+ # secures temp file handling (#96192)
+ epatch "${FILESDIR}"/${P}-secure_temp_handling.patch
+ # add supprot for a quicker rpm2tar
+ epatch "${FILESDIR}"/${P}-rpm2tar.patch
+ # non-gnu portability with which
+ epatch "${FILESDIR}"/${P}-portability.patch
+ # remove bashisms to be compatible with other sh
+ epatch "${FILESDIR}"/${P}-sh.patch
+ # remove warnings from the compiler (and QA warnings too)
+ epatch "${FILESDIR}"/${P}-warnings.patch
+ # Increase RPMBUFSIZ to increase the possibility to find magic compression
+ # identifier #187219, comment 13
+ epatch "${FILESDIR}"/${P}-increase-RPMBUFSIZ.patch
+}
+
+src_compile() {
+ emake rpmoffset CC=$(tc-getCC) || die
+}
+
+src_install() {
+ dobin rpmoffset rpm2targz || die
+ dosym rpm2targz /usr/bin/rpm2tar
+ dodoc rpm2targz.README
+}