commit:     d34261b26bba7eaf7927ee30424284ba4c671f49
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 28 08:43:19 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct  1 17:19:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d34261b2

unpacker.eclass: Add support for makeself 2.4.5

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/unpacker.eclass | 8 ++++++++
 1 file changed, 8 insertions(+)

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}'."

Reply via email to