Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 166875 Details for
Bug 232230
Patches for vmware-workstation 6.5 beta2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Vmware bundle unbundler 0.0.1
unbundler.sh (text/plain), 2.12 KB, created by
Mike Auty (RETIRED)
on 2008-09-30 23:33:34 UTC
(
hide
)
Description:
Vmware bundle unbundler 0.0.1
Filename:
MIME Type:
Creator:
Mike Auty (RETIRED)
Created:
2008-09-30 23:33:34 UTC
Size:
2.12 KB
patch
obsolete
>#!/bin/bash -x > >ORIGFILE="$1" > >is_relative() { > local path="$1" > shift > > [ "${path:0:1}" != "/" ] > return >} > >set_offsets() { > # This won't work with non-GNU stat. > FILE_SIZE=`stat --format "%s" "$1"` > local offset=$(($FILE_SIZE - 4)) > > MAGIC_OFFSET=$offset > offset=$(($offset - 4)) > > CHECKSUM_OFFSET=$offset > offset=$(($offset - 4)) > > VERSION_OFFSET=$offset > offset=$(($offset - 4)) > > PREPAYLOAD_OFFSET=$offset > offset=$(($offset - 4)) > > PREPAYLOAD_SIZE_OFFSET=$offset > offset=$(($offset - 4)) > > LAUNCHER_SIZE_OFFSET=$offset > offset=$(($offset - 4)) > > PAYLOAD_OFFSET=$offset > offset=$(($offset - 4)) > > PAYLOAD_SIZE_OFFSET=$offset > offset=$(($offset - 4)) >} > >set_lengths() { > local file="$1" > if [ ! -s "$file" ]; then > echo "$file does not exist" > exit 1 > fi > > # XXX: put extraction in its own function > MAGIC_NUMBER=`od -An -t u4 -N 4 -j $MAGIC_OFFSET "$file" | tr -d ' '` > > if [ "$MAGIC_NUMBER" != "907380241" ]; then > echo "magic number does not match" > exit 1 > fi > > LAUNCHER_SIZE=`od -An -t u4 -N 4 -j $LAUNCHER_SIZE_OFFSET "$file" | tr -d ' '` > PAYLOAD_SIZE=`od -An -t u4 -N 4 -j $PAYLOAD_SIZE_OFFSET "$file" | tr -d ' '` > PREPAYLOAD_SIZE=`od -An -t u4 -N 4 -j $PREPAYLOAD_SIZE_OFFSET "$file" | tr -d ' '` > > SKIP_BYTES=$(($PREPAYLOAD_SIZE + $LAUNCHER_SIZE)) > > return 0 >} > >if is_relative "${ORIGFILE}"; then > ORIGFILE="`pwd`/${ORIGFILE}" >fi > > >set_offsets ${ORIGFILE} >set_lengths ${ORIGFILE} > >echo "Launcher ${LAUNCHER_SIZE}" >echo "Skip bytes ${SKIP_BYTES}" > >PREPAYLOAD="prepayload" >PAYLOAD="payload" > ># Unpack the pre-payload file >mkdir ${PREPAYLOAD} >cd ${PREPAYLOAD} >dd if="${ORIGFILE}" ibs=$LAUNCHER_SIZE obs=1024 skip=1 | tar -xzf - >cd .. > ># Unpack the main file >mkdir ${PAYLOAD} >cd ${PAYLOAD} >dd if="${ORIGFILE}" ibs=$SKIP_BYTES obs=1024 skip=1 | tar -xzf - >cd .. > >python -W ignore::DeprecationWarning ${PAYLOAD}/install/vmware-installer/vmware-installer.py \ > --set-setting vmware-installer.libconf "${PAYLOAD}/install/vmware-installer/lib/libconf" \ > --install-component "${PAYLOAD}"/install/vmware-installer \ > --install-bundle "${ORIGFILE}" \ > # --required --console > -x `pwd`/vmware-distrib >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 232230
:
160756
|
160758
| 166875 |
169120
|
169128
|
169130
|
170215