From 347f2cdc8b48f12cc9111c3c7336d309195278fe Mon Sep 17 00:00:00 2001 From: geos_one Date: Fri, 16 Jan 2009 12:24:00 +0000 Subject: [PATCH] add rpmoffset with lzma support --- .../app-arch/rpm5offset/Manifest | 2 + .../app-arch/rpm5offset/files/rpmoffset.c | 72 +++++++++++++++++++ .../app-arch/rpm5offset/rpm5offset-9.0.ebuild | 26 +++++++ .../app-crypt/novell-nici/Manifest | 3 + .../novell-nautilus-plugin/Manifest | 2 +- .../novell-nautilus-plugin-3.0.508.4.ebuild | 20 +++--- trunk/novell4gentoo/kde-misc/kio_slp/Manifest | 1 + 7 files changed, 115 insertions(+), 11 deletions(-) create mode 100644 trunk/novell4gentoo/app-arch/rpm5offset/Manifest create mode 100644 trunk/novell4gentoo/app-arch/rpm5offset/files/rpmoffset.c create mode 100644 trunk/novell4gentoo/app-arch/rpm5offset/rpm5offset-9.0.ebuild diff --git a/trunk/novell4gentoo/app-arch/rpm5offset/Manifest b/trunk/novell4gentoo/app-arch/rpm5offset/Manifest new file mode 100644 index 00000000..c5e30f8a --- /dev/null +++ b/trunk/novell4gentoo/app-arch/rpm5offset/Manifest @@ -0,0 +1,2 @@ +AUX rpmoffset.c 1964 RMD160 acea626f5080b7ea47863cf9e3bc2ab3b381c61e SHA1 5ec35b3d37773ca4a09443c6ea687c7d3a739f34 SHA256 e1e18d68009bd4541d6c65b43f45b58d720b9c87eba612d7616e244142f80dfe +EBUILD rpm5offset-9.0.ebuild 628 RMD160 cf664dc26a5305e9d85b29ef89f9a1faf26bbae2 SHA1 c08ecbb217ffa829d134544c78fbbeb451510193 SHA256 5b9561a70c0dece76fb9e4f94690e8b8cf143dd98edf08d13938a922ce0eaef5 diff --git a/trunk/novell4gentoo/app-arch/rpm5offset/files/rpmoffset.c b/trunk/novell4gentoo/app-arch/rpm5offset/files/rpmoffset.c new file mode 100644 index 00000000..61a46244 --- /dev/null +++ b/trunk/novell4gentoo/app-arch/rpm5offset/files/rpmoffset.c @@ -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 +#include + +/* 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); +} diff --git a/trunk/novell4gentoo/app-arch/rpm5offset/rpm5offset-9.0.ebuild b/trunk/novell4gentoo/app-arch/rpm5offset/rpm5offset-9.0.ebuild new file mode 100644 index 00000000..6090fc12 --- /dev/null +++ b/trunk/novell4gentoo/app-arch/rpm5offset/rpm5offset-9.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2008 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/lzma-utils" +DEPEND="${DEPEND}" + +src_compile() { + "$(tc-getCC)" ${CFLAGS} ${LDFLAGS} ${FILESDIR}/rpmoffset.c -o rpm5offset || die +} + +src_install() { + dobin rpm5offset || die +} diff --git a/trunk/novell4gentoo/app-crypt/novell-nici/Manifest b/trunk/novell4gentoo/app-crypt/novell-nici/Manifest index 2c51af08..2c64c0a5 100644 --- a/trunk/novell4gentoo/app-crypt/novell-nici/Manifest +++ b/trunk/novell4gentoo/app-crypt/novell-nici/Manifest @@ -1,5 +1,7 @@ DIST Novell_Client_11.0-i386-20081003-CD1.iso 10033152 RMD160 fadcd5ad983fd7c7dc103c16dcfe9830cf0cd574 SHA1 358e219ad0bda13bbd4835342f24c1b01c5f1775 SHA256 cc84aab8c954037479ed2fa3616b76de17047341d25a2aa6210ac050023e3c00 DIST Novell_Client_11.0-x86_64-20081003-CD1.iso 10487808 RMD160 8965da596c4e339ff2b5b8d240f91a478f9ca2d5 SHA1 acb2ef899c9c593e6f16b1226ed68f54e12f7214 SHA256 81c3153f9fa435ab7251694873c9b4083b126ebae544bd30527fb8183e690789 +DIST Novell_Client_SLE11-i586-20081218-CD1.iso 8058880 RMD160 4a2a4146e82f0bb6f3f64e47f992fafcd20ce2e4 SHA1 e688c2571d90d5726928ff325e8da274f863d89f SHA256 7c3a6487879ae7846f3859e906e52811321b049667cbb04cb48fac079e6aee2e +DIST Novell_Client_SLE11-x86_64-20081218-CD1.iso 8388608 RMD160 749d45b32a1317a8e48f5c4346ea235078bab721 SHA1 7bb062942005e1316539e8b97e961c8cbb0a0c2e SHA256 cc0be51b5f3c61bd071751c26c65fd3fc0a5cea495622bbce2e811973fa70d59 DIST novell-client-2.0-SP1-sle10sp2-i386.iso 10100736 RMD160 dc9313c69a22359c9cdbb2f9105543d11a912381 SHA1 da0cfa59099a4de7d4bdc2a6390d8993c48ee00c SHA256 9c7edfcb67c6ea3a7c67c48568139b8c6dc369b106781320cf117cbda468ae70 DIST novell-client-2.0-SP1-sle10sp2-x86_64.iso 10971136 RMD160 2cf2b3c0b73b827ab4be0d74f87a9764c807c76b SHA1 91318ad4e643d2f43d47fd9fb234050d9ad62194 SHA256 789dc3bb04d8e7a7714001bce6af6ba8aba769ed32251e9cad53274322261028 DIST novell-client-2.0-sle10sp1-i386.iso 10866688 RMD160 b478e97de576987b0a3b801965dbddb4fc8d8ce0 SHA1 49d70ed6e7007b7e18468ec0b42bed6ac6b8702f SHA256 a6609aee78e90a5375fd698b571a015b3696d10ff2f11d085e4abf5b404a35d6 @@ -9,5 +11,6 @@ EBUILD novell-nici-2.7.2_p001.ebuild 1688 RMD160 9cb6e827fd8f65800e703286cb858db EBUILD novell-nici-2.7.3_p12.ebuild 3579 RMD160 ff8c0d7da8da1398b3836df7ddc14f13e2ad4a69 SHA1 1bcdd21d9f21b515bc90fd54d060cca9b89628b3 SHA256 351253f8e39fe023eb67889b4e7245ad03f26cf1a07588054e38c0b37fb2da96 EBUILD novell-nici-2.7.4.0.7.ebuild 3645 RMD160 c6cf146cd1e2ab11768157124785a31ee20a78c2 SHA1 b41c6409a49454c9cde204870e78c174635da11a SHA256 969b190b31e8fc84d2411d9a246522ad698b8ee39d20186444919e092ff6e40d EBUILD novell-nici-2.7.4.3.ebuild 3681 RMD160 459e2e657b9ca1d64284893c14390ca11c26e7d3 SHA1 0b9ac696d4f554c03a821f65c516a75161295764 SHA256 6d728f9d409954e1d772da5cd8437c7fba2594b5e1d4713150f3b0f2f1a98014 +EBUILD novell-nici-2.7.4.6.ebuild 3707 RMD160 5368cd5555a25e63e90091e60f25d195dafb210c SHA1 89932882c0eb41eb0da4cac129af32f63bae9082 SHA256 250da1ca8fcdbb6edd8a68ed347c8670b62afb60ae888bbee698417034990e83 MISC ChangeLog 2945 RMD160 e5f2571b4b75d2cff6dda7a92754a602abdf8eda SHA1 a942c638386501cc4628494b41c6af6f8e702d38 SHA256 b3706dba4bf2c10bd18b0350d223a6a24f7a1781a2fd7d12f3988b8099382e9c MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/trunk/novell4gentoo/gnome-extra/novell-nautilus-plugin/Manifest b/trunk/novell4gentoo/gnome-extra/novell-nautilus-plugin/Manifest index a230afc0..191e2903 100644 --- a/trunk/novell4gentoo/gnome-extra/novell-nautilus-plugin/Manifest +++ b/trunk/novell4gentoo/gnome-extra/novell-nautilus-plugin/Manifest @@ -6,6 +6,6 @@ DIST novell-client-2.0-sle10sp1-i386.iso 10866688 RMD160 b478e97de576987b0a3b801 DIST novell-client-2.0-sle10sp1-x86_64.iso 11649024 RMD160 4f3a08e9cfea2b78072ba9114ecf03b44d8da17a SHA1 f1f5c78851a66c963fef02c69d89e86a3ba12d00 SHA256 3b70e2c81ded3916771a22a5c284c0d5ac7b32b8a47207d01350f9f952fd216f EBUILD novell-nautilus-plugin-2.0.0_p3.ebuild 3693 RMD160 3b68b648fe2a6c6cb84f1badff75df07f9c102b8 SHA1 0ed4fca476a7928102a394e660a8ed8ac760f9e6 SHA256 4e1a21947771853e81fcad46c708d869bdc5bbf183ee7ab53ec3f5ddb49814f9 EBUILD novell-nautilus-plugin-3.0.508.0.3.ebuild 3795 RMD160 052bb910411d516015f7d77c09223d2de50caa09 SHA1 1db0b3ffe0c872926d1fdde164f444955e158570 SHA256 90162095b13a3ccff933f84e2bad9ab74bbf2fbbddc484b2f37b2f623ff5740a -EBUILD novell-nautilus-plugin-3.0.508.4.ebuild 3797 RMD160 a5a4664bba81061f35ce4a203da2f3c9c7ae2663 SHA1 e86fe8abc3afeb119be130626a83984eb2e80d4d SHA256 27613e41d164e2bdb1ab35e00227838f65b39f957001e79d154411b31aa761e9 +EBUILD novell-nautilus-plugin-3.0.508.4.ebuild 3800 RMD160 453a66f4dc9fae76edc1b8d975816e148ba14910 SHA1 7ab2b9db30fce416e815eaf65f3402fbae049d89 SHA256 ec2c6deadb03c2c3347f4c870baacac5ddd0c777ca5a4548ccdae00c324160d3 MISC ChangeLog 565 RMD160 4de6bef6ce5970ef3f2d1cad020350e50cb63fe8 SHA1 9ee7a0b7140a3a6e7d18532ae2ec5b4be21acb9c SHA256 18cf505cf6dead08a4ec9325b89697ae710abdc72ee6a62d9c3f50d2ff637eb3 MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/trunk/novell4gentoo/gnome-extra/novell-nautilus-plugin/novell-nautilus-plugin-3.0.508.4.ebuild b/trunk/novell4gentoo/gnome-extra/novell-nautilus-plugin/novell-nautilus-plugin-3.0.508.4.ebuild index 68ce1e92..21603115 100644 --- a/trunk/novell4gentoo/gnome-extra/novell-nautilus-plugin/novell-nautilus-plugin-3.0.508.4.ebuild +++ b/trunk/novell4gentoo/gnome-extra/novell-nautilus-plugin/novell-nautilus-plugin-3.0.508.4.ebuild @@ -33,7 +33,6 @@ RDEPEND="virtual/libc >=dev-libs/atk-1.10.3 >=dev-libs/glib-2.8.5 >=gnome-base/gconf-2.12.1 - >=gnome-base/gnome-vfs-2.12.2 >=gnome-base/libbonobo-2.10.1 >=gnome-base/orbit-2.12.14 >=gnome-base/nautilus-2.10.2 @@ -53,6 +52,7 @@ RDEPEND="virtual/libc >=x11-libs/libXrender-0.9 >=sys-devel/gcc-4.1 >=sys-libs/zlib-1.2.3" +# >=gnome-base/gnome-vfs-2.12.2 @@ -76,8 +76,8 @@ src_unpack() { src_compile() { EXTENSIONDIR=`pkg-config --variable=extensiondir libnautilus-extension` - GNOMEVFSMODDIR=`pkg-config --variable=libdir gnome-vfs-2.0`/gnome-vfs-2.0/modules - GNOMEVFSLIBDIR=`pkg-config --variable=libdir gnome-vfs-2.0` +# GNOMEVFSMODDIR=`pkg-config --variable=libdir gnome-vfs-2.0`/gnome-vfs-2.0/modules +# GNOMEVFSLIBDIR=`pkg-config --variable=libdir gnome-vfs-2.0` } src_install() { @@ -90,13 +90,13 @@ src_install() { fi done exeinto ${EXTENSIONDIR} - doexe "${WORKDIR}"/${PN}-${MY_PV}/opt/gnome/${nlib}/nautilus/extensions-1.0/* - exeinto ${GNOMEVFSMODDIR} - doexe "${WORKDIR}"/${PN}-${MY_PV}/opt/gnome/${nlib}/gnome-vfs-2.0/modules/* - exeinto ${GNOMEVFSLIBDIR} - doexe "${WORKDIR}"/${PN}-${MY_PV}/opt/gnome/${nlib}/*.so - insinto /etc/gnome-vfs-2.0/modules - doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/gnome/gnome-vfs-2.0/modules/* + doexe "${WORKDIR}"/${PN}-${MY_PV}/usr/${nlib}/nautilus/extensions-2.0/* +# exeinto ${GNOMEVFSMODDIR} +# doexe "${WORKDIR}"/${PN}-${MY_PV}/opt/gnome/${nlib}/gnome-vfs-2.0/modules/* +# exeinto ${GNOMEVFSLIBDIR} +# doexe "${WORKDIR}"/${PN}-${MY_PV}/opt/gnome/${nlib}/*.so +# insinto /etc/gnome-vfs-2.0/modules +# doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/gnome/gnome-vfs-2.0/modules/* dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/* } diff --git a/trunk/novell4gentoo/kde-misc/kio_slp/Manifest b/trunk/novell4gentoo/kde-misc/kio_slp/Manifest index bf2d36b5..2933be3f 100644 --- a/trunk/novell4gentoo/kde-misc/kio_slp/Manifest +++ b/trunk/novell4gentoo/kde-misc/kio_slp/Manifest @@ -1,4 +1,5 @@ DIST kio_slp-0.4.1-132.src.rpm 24073 RMD160 74411cfc64696578975457dbfe05f81d81da21de SHA1 7e7dd70caebd62c45e3eb2ed9465e66d5bde6d23 SHA256 713e25ef2193585e0a707272d2d1c18b5f12d9ddc53f0ec6af8d9c5b035ec80c +EBUILD kio_slp-0.4.1_p132-r1.ebuild 861 RMD160 dc61531c2b1ca0a230b213fea7af3c142bb47189 SHA1 8704e55fbf47c640c305543339584608f0868d53 SHA256 a44b90a693f59beb525eb67989faa2f04b728c518eabe6723c8d3d0fa8da1eeb EBUILD kio_slp-0.4.1_p132.ebuild 861 RMD160 dc61531c2b1ca0a230b213fea7af3c142bb47189 SHA1 8704e55fbf47c640c305543339584608f0868d53 SHA256 a44b90a693f59beb525eb67989faa2f04b728c518eabe6723c8d3d0fa8da1eeb MISC ChangeLog 1833 RMD160 77f1bef4758cd41f5b5d1c2ec83973fbe2a2fb32 SHA1 9697648498adc5e4712c5740128925cc13d26c48 SHA256 47eeb26a00b9636ca9e3b62c2c8aa331d59f66802667a8873dab1a7332b51fde MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42