diff options
author | 2022-09-28 10:43:19 +0200 | |
---|---|---|
committer | 2022-10-01 19:19:32 +0200 | |
commit | d34261b26bba7eaf7927ee30424284ba4c671f49 (patch) | |
tree | c2a7d87f6a8ee3d177ed07ef4b11cf961da1849b /eclass/unpacker.eclass | |
parent | x11-plugins/wmudmount: Depend on app-crypt/gcr:0 (diff) | |
download | gentoo-d34261b26bba7eaf7927ee30424284ba4c671f49.tar.gz gentoo-d34261b26bba7eaf7927ee30424284ba4c671f49.tar.bz2 gentoo-d34261b26bba7eaf7927ee30424284ba4c671f49.zip |
unpacker.eclass: Add support for makeself 2.4.5
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/unpacker.eclass')
-rw-r--r-- | eclass/unpacker.eclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index 6c9bcbdd7a7b..1fda7a89f3c2 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -218,6 +218,14 @@ unpack_makeself() { skip=$(head -n ${skip} "${src}" | wc -c) exe="dd" ;; + 2.4.5) + # e.g.: skip="713" + skip=$( + sed -n -e '/^skip=/{s:skip="\(.*\)":\1:p;q}' "${src}" + ) + skip=$(head -n "${skip}" "${src}" | wc -c) + exe="dd" + ;; *) eerror "I'm sorry, but I was unable to support the Makeself file." eerror "The version I detected was '${ver}'." |