public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [RFC] unpacker.eclass extensions
@ 2013-06-15  8:39 Vadim A. Misbakh-Soloviov
  2013-06-15 14:33 ` Markos Chandras
  2013-06-17  5:55 ` Mike Frysinger
  0 siblings, 2 replies; 12+ messages in thread
From: Vadim A. Misbakh-Soloviov @ 2013-06-15  8:39 UTC (permalink / raw
  To: gentoo-dev; +Cc: azamat.hackimov

[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]

As gamerlay maintainer, I'd be glad to introduce some changes to
unpacker.eclass:
1) merging unpacker-nixstaller (Makeself  subspecies) from gamerlay:


# @FUNCTION: unpack_nixstaller
# @USAGE: <files to unpack>
# @DESCRIPTION:
# Unpack nixstaller generated files
# They're shell scripts with the blob package tagged onto
# the end of the archive. In the blob placed tarballs with
# actual content.
#
# Please note, if you need additional dependecies make sure to unpack
subarch
# archive as first argument.
#
nixstaller_unpack() {
        unpack_makeself

        local unpack_files="$@"

        for i in $unpack_files ; do
                unpack_banner "$i"
                # Make sure that file exists
                [[ -f "./$i" ]] && (
                        local type=$(file -b ${i})
                        case ${type} in
                                data)
                                        tar -xJf "./$i"
                                        ;;
                                gzip*)
                                        tar -xzf "./$i"
                                        ;;
                        esac
                ) || die "Failed to unpack $i"
        done
}


Original author is Azamat Hackimov aka winterheart (in CC).

2) It'd be also nice to detect mojo installers (most of the time,
they're "*-bin" or "*Installer" ELF32 sfx-archives) and pass them to
unpack_zip by default.
Unfortunately, I've no free time ATM, but if it is needed, I can write
prototype for Mojo unpacking.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-06-22 17:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15  8:39 [gentoo-dev] [RFC] unpacker.eclass extensions Vadim A. Misbakh-Soloviov
2013-06-15 14:33 ` Markos Chandras
2013-06-15 14:37   ` Markos Chandras
2013-06-17  5:55 ` Mike Frysinger
2013-06-17  7:15   ` Diego Elio Pettenò
2013-06-17 16:08     ` Mike Frysinger
2013-06-17 16:54       ` Rick "Zero_Chaos" Farina
2013-06-17 20:19         ` Diego Elio Pettenò
2013-06-17 20:37           ` Rick "Zero_Chaos" Farina
2013-06-17 21:41             ` Brian Dolbec
2013-06-19 21:15             ` Mike Frysinger
2013-06-22 17:55   ` [gentoo-dev] unpacker.eclass: add decompress probe helper Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox