move zarafa to its own ovelray

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2932 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2011-06-19 05:28:25 +00:00
parent 2de0ba3e6d
commit edcf30401c
6 changed files with 0 additions and 237 deletions

View File

@ -1,17 +0,0 @@
# 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

@ -1,4 +0,0 @@
AUX rpmoffset.c 1964 RMD160 acea626f5080b7ea47863cf9e3bc2ab3b381c61e SHA1 5ec35b3d37773ca4a09443c6ea687c7d3a739f34 SHA256 e1e18d68009bd4541d6c65b43f45b58d720b9c87eba612d7616e244142f80dfe
EBUILD rpm5offset-9.0.ebuild 626 RMD160 8e00ebb9e2178c77d24bc00c7415e10d0783984e SHA1 a84f110afe57abf7cf2e5ccf9c273ff60248e85f SHA256 58736742fc4655d0dba4f7b7b0546d15319df2b1ade324ac6fb1f0c128b1a926
MISC ChangeLog 486 RMD160 84d82672de16cc5e01034e2502aa2bcc24b90967 SHA1 121205dac2a9749486776182bfa2e2ebfa9d1e74 SHA256 7a87ea2dd02a2287e2c5303eaf50e6464b010777c794f6034d520c5ff7d1a692
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@ -1,72 +0,0 @@
/* 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

@ -1,5 +0,0 @@
<?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

@ -1,26 +0,0 @@
# 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
}

View File

@ -1,113 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/rpm.eclass,v 1.20 2010/07/18 21:57:20 vapier Exp $
# @ECLASS: rpm.eclass
# @MAINTAINER:
# base-system@gentoo.org
# @BLURB: convenience class for extracting RPMs
inherit eutils
DEPEND=">=app-arch/rpm5offset-9.0"
# @FUNCTION: rpm_unpack
# @USAGE: <rpms>
# @DESCRIPTION:
# Unpack the contents of the specified rpms like the unpack() function.
rpm5_unpack() {
[[ $# -eq 0 ]] && set -- ${A}
local a rpmoff decompcmd
for a in "$@" ; do
echo ">>> Unpacking ${a} to ${PWD}"
if [[ ${a} == ./* ]] ; then
: nothing to do -- path is local
elif [[ ${a} == ${DISTDIR}/* ]] ; then
ewarn 'QA: do not use ${DISTDIR} with rpm_unpack -- it is added for you'
elif [[ ${a} == /* ]] ; then
ewarn 'QA: do not use full paths with rpm_unpack -- use ./ paths instead'
else
a="${DISTDIR}/${a}"
fi
# rpm2tar -O "${a}" | tar xf - || die "failure unpacking ${a}"
rpmoff=`rpm5offset < ${a}`
[ -z "${rpmoff}" ] && return 1
decompcmd="lzma -dc"
if [ -n "`dd if=${a} skip=${rpmoff} bs=1 count=3 2>/dev/null | file - | grep bzip2`" ]; then
decompcmd="bzip2 -dc"
fi
if [ -n "`dd if=${a} skip=${rpmoff} bs=1 count=3 2>/dev/null | file - | grep gzip`" ]; then
decompcmd="gzip -dc"
fi
dd ibs=${rpmoff} skip=1 if=${a} 2> /dev/null \
| ${decompcmd} \
| cpio -idmu --no-preserve-owner --quiet || return 1
done
}
# @FUNCTION: srcrpm_unpack
# @USAGE: <rpms>
# @DESCRIPTION:
# Unpack the contents of the specified rpms like the unpack() function as well
# as any archives that it might contain. Note that the secondary archive
# unpack isn't perfect in that it simply unpacks all archives in the working
# directory (with the assumption that there weren't any to start with).
srcrpm5_unpack() {
[[ $# -eq 0 ]] && set -- ${A}
rpm5_unpack "$@"
# no .src.rpm files, then nothing to do
[[ "$* " != *".src.rpm " ]] && return 0
eshopts_push -s nullglob
# unpack everything
local a
for a in *.tar.{gz,bz2} *.t{gz,bz2} *.zip *.ZIP ; do
unpack "./${a}"
rm -f "${a}"
done
eshopts_pop
return 0
}
# @FUNCTION: rpm_src_unpack
# @DESCRIPTION:
# Automatically unpack all archives in ${A} including rpms. If one of the
# archives in a source rpm, then the sub archives will be unpacked as well.
rpm5_src_unpack() {
local a
for a in ${A} ; do
case ${a} in
*.rpm) srcrpm5_unpack "${a}" ;;
*) unpack "${a}" ;;
esac
done
}
# @FUNCTION: rpm_spec_epatch
# @USAGE: [spec]
# @DESCRIPTION:
# Read the specified spec (defaults to ${PN}.spec) and attempt to apply
# all the patches listed in it. If the spec does funky things like moving
# files around, well this won't handle that.
rpm5_spec_epatch() {
local p spec=${1:-${PN}.spec}
local dir=${spec%/*}
grep '^%patch' "${spec}" | \
while read line ; do
set -- ${line}
p=$1
shift
EPATCH_OPTS="$*"
set -- $(grep "^P${p#%p}: " "${spec}")
shift
epatch "${dir:+${dir}/}$*"
done
}
EXPORT_FUNCTIONS src_unpack