/[gentoo-x86]/eclass/unpacker.eclass
Gentoo

Diff of /eclass/unpacker.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.13 2013/04/10 14:47:49 jer Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.14 2013/12/22 14:44:07 vapier Exp $
4 4
5# @ECLASS: unpacker.eclass 5# @ECLASS: unpacker.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs 8# @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs
20 20
21# @ECLASS-VARIABLE: UNPACKER_BZ2 21# @ECLASS-VARIABLE: UNPACKER_BZ2
22# @DEFAULT_UNSET 22# @DEFAULT_UNSET
23# @DESCRIPTION: 23# @DESCRIPTION:
24# Utility to use to decompress bzip2 files. Will dynamically pick between 24# Utility to use to decompress bzip2 files. Will dynamically pick between
25# `pbzip2` and `bzip2`. Make sure your choice accepts the "-c" option. 25# `pbzip2` and `bzip2`. Make sure your choice accepts the "-dc" options.
26# Note: this is meant for users to set, not ebuilds. 26# Note: this is meant for users to set, not ebuilds.
27 27
28# for internal use only (unpack_pdv and unpack_makeself) 28# for internal use only (unpack_pdv and unpack_makeself)
29find_unpackable_file() { 29find_unpackable_file() {
30 local src=$1 30 local src=$1
72# Basically look for the first lseek command (we do the strings/grep because 72# Basically look for the first lseek command (we do the strings/grep because
73# sometimes the function call is _llseek or something) and steal the 2nd 73# sometimes the function call is _llseek or something) and steal the 2nd
74# parameter. Here is an example: 74# parameter. Here is an example:
75# 75#
76# @CODE 76# @CODE
77# vapier@vapier 0 pdv_unpack # strings hldsupdatetool.bin | grep lseek 77# $ strings hldsupdatetool.bin | grep lseek
78# lseek 78# lseek
79# vapier@vapier 0 pdv_unpack # strace -elseek ./hldsupdatetool.bin 79# $ strace -elseek ./hldsupdatetool.bin
80# lseek(3, -4, SEEK_END) = 2981250 80# lseek(3, -4, SEEK_END) = 2981250
81# @CODE 81# @CODE
82# 82#
83# Thus we would pass in the value of '4' as the second parameter. 83# Thus we would pass in the value of '4' as the second parameter.
84unpack_pdv() { 84unpack_pdv() {

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20