add missing files to the tree

This commit is contained in:
Mario Fetka
2013-04-20 08:40:33 +02:00
parent 43478a1a04
commit 9275d8b68f
49 changed files with 65119 additions and 792 deletions

View File

@@ -0,0 +1,17 @@
# ChangeLog for app-arch/rpm5offset
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
12 Oct 2010; Mario Fetka <mario.fetka@gmail.com> rpm5offset-9.0.ebuild,
-rpm5offset-9.0-r1.ebuild:
remove broken ebuild
*rpm5offset-9.0-r1 (09 Sep 2009)
09 Sep 2009; Mario Fetka <mario.fetka@gmail.com>
+rpm5offset-9.0-r1.ebuild:
add support for app-arch/xz-utils
16 Jan 2009; Mario Fetka <mario.fetka@gmail.com> +metadata.xml:
initial rpm5offset

View File

@@ -0,0 +1,4 @@
AUX rpmoffset.c 1964 SHA256 e1e18d68009bd4541d6c65b43f45b58d720b9c87eba612d7616e244142f80dfe SHA512 67a9357a0433d5d450ceb1bfbdff521975676e6b2c01c9941ebef7ab6a39a31fe9517eda654c3c86d7b9609badeabd22e5f86c68e7462ee872e86ff5d4e48fce WHIRLPOOL 6ef7ab3edb5586cf1661d4a78f5abccd8eb3e81dd561ce2d23ed827fba946d029f530b593d7b50f68b9761d2c2467507240771b46c9ec0d45b5827bb8e767051
EBUILD rpm5offset-9.0.ebuild 626 SHA256 58736742fc4655d0dba4f7b7b0546d15319df2b1ade324ac6fb1f0c128b1a926 SHA512 f5261f7ed52999220e85640ba3749c1de4b805c9adf4d43cab0e2e4b787bce96b6676ea2d29d9f9d3c1bd4739092f25cca5d3b9ae69ba394f2e2ce416cf045e4 WHIRLPOOL b38005205b99be42457ac440b05fd35446c32bb9b76912104a413c4d41e071ea31caec646e07ea0edc0e1f4e40071d72c9bd61f406547b07824a6a32f980d4b5
MISC ChangeLog 486 SHA256 7a87ea2dd02a2287e2c5303eaf50e6464b010777c794f6034d520c5ff7d1a692 SHA512 c640ba94e272de2486c9e9f59b8219e57d951e42c66fa677b16fcb837c4c1e1173c9760768c04ed1782f8336ff472c087c17b124fc1148dc5f782d2df4ab3c3a WHIRLPOOL 4898699b61690816f506d14533a20693158f56187486f965255a6abc26e0fbadc422031fa6ca814701f560fd475c33e556dec7f145da56fe6adc8b10a6818117
MISC metadata.xml 170 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 SHA512 c011e0dc20997640fdaf4dbdd0493106446df3ff753040a8ffc638cea0512a535bce9e1c4d2969e708993529c473d9dc17c59804c15a0eee2b0a7e9854b65143 WHIRLPOOL b33b91daccf2a989c728257c6372f7f8a7481bd72af841bf3c76e6625750d6f5e0d31c942fe88368fc016edcc5be954656c488b6d44ea00e4fe0caaec1bdd41e

View File

@@ -0,0 +1,72 @@
/* Find how deeply inside an .RPM the real data is */
/* kept, and report the offset in bytes */
/* Wouldn't it be a lot more sane if we could just untar these things? */
#include <stdlib.h>
#include <stdio.h>
/* These offsets keep getting bigger, so we're going to just bite a 2MB */
/* 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 3145728
main()
{
char *buff = malloc(RPMBUFSIZ),*eb,*p;
for (p = buff, eb = buff + read(0,buff,RPMBUFSIZ); p < eb; p++)
{
/* gzip format */
if (*p == '\037' && p[1] == '\213' && p[2] == '\010')
{
printf("%ld\n",p - buff);
exit(0);
}
/* bzip2 format */
else if (*p == 'B' && p[1] == 'Z' && p[2] == 'h' )
{
printf("%ld\n",p - buff);
exit(0);
}
/* LZMA files; both LZMA_Alone and LZMA utils formats. The LZMA_Alone
* format is used by the LZMA_Alone tool from LZMA SDK. The LZMA utils
* format is the default format of LZMA utils 4.32.1 and later. */
/* LZMA utils format */
else if (*p == '\377' && p[1] == 'L' &&
p[2] == 'Z' && p[3] == 'M' &&
p[4] == 'A' && p[5] == '\000')
{
printf("%ld\n",p - buff);
exit(0);
}
/* The LZMA_Alone format has no magic bytes, thus we
* need to play a wizard. This can give false positives,
* thus the detection below should be removed when
* the newer LZMA utils format has got popular. */
// else if (*p == 0x5D && p[1] == 0x00 &&
else if (*p == '\135' &&
p[5] == '\377' && p[6] == '\377' &&
p[7] == '\377' && p[8] == '\377' &&
p[9] == '\377' && p[10] == '\377' &&
p[11] == '\377' && p[12] == '\377')
/* ((p[10] == 0x00 && p[11] == 0x00 &&
p[12] == 0x00) ||
(p[5] == 0xFF && p[6] == 0xFF &&
p[7] == 0xFF && p[8] == 0xFF &&
p[9] == 0xFF && p[10] == 0xFF &&
p[11] == 0xFF && p[12] == 0xFF)))
*/ {
printf("%ld\n",p - buff);
exit(0);
}
}
exit(1);
}

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>maintainer-wanted</herd>
</pkgmetadata>

View File

@@ -0,0 +1,26 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit toolchain-funcs
DESCRIPTION="Find how deeply inside an .RPM the real data is"
HOMEPAGE="http://www.slackware.com/config/packages.php"
SRC_URI=""
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="userland_GNU"
RDEPEND="app-arch/cpio
app-arch/xz-utils"
DEPEND="${DEPEND}"
src_compile() {
"$(tc-getCC)" ${CFLAGS} ${LDFLAGS} ${FILESDIR}/rpmoffset.c -o rpm5offset || die
}
src_install() {
dobin rpm5offset || die
}