app-arch/sasquatch: add 4.5.1.5

Signed-off-by: David Roman <droman@ifae.es>
Part-of: https://github.com/gentoo/gentoo/pull/42340
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
David Roman
2025-05-30 10:20:12 +02:00
committed by Sam James
parent 0e9da7ffb2
commit dae0fd41f4
4 changed files with 89 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST sasquatch-4.5.1.4.tar.gz 498093 BLAKE2B 3b5d2175417fe47921581c7f1ad95f7ffb04507e1b622d1f8758ca71ea3047d689e0b1831765667f412ad29b6415ffc709423e036c188820fe31b8806629230f SHA512 94ae869f9d9a832b93e0d464983939a8fe2fb8e8b2ef39d5c3c628db5bd98dd93af6158117dfc9abbd0b9be7ba3967c06e0f636e3dc7af4dba1f6f6d290bcaf7
DIST sasquatch-4.5.1.5.tar.gz 498166 BLAKE2B 01d90e60accd2fca6286c8bf17caa9c0db8c5819b11ca4b565c3251182082878a8b620f6e72d1dde88a83d585823804813d2403a2c3efada77cd8d1b1839a76a SHA512 da646f2b5b2f268e6bcf98f2e3a4a599b6549f456be4a8f97cf07efbc105d5268437dd487dfbc70329b1719be3e80be2b0a132d6c9a63f21fe05154d2c85b693

View File

@@ -0,0 +1,22 @@
diff --git i/squashfs-tools/unsquashfs.c w/squashfs-tools/unsquashfs.c
index 139e329..3ff75cf 100644
--- i/squashfs-tools/unsquashfs.c
+++ w/squashfs-tools/unsquashfs.c
@@ -146,7 +146,7 @@ void progress_bar(long long current, long long max, int columns);
#define MAX_LINE 16384
-void sigwinch_handler()
+void sigwinch_handler(int a)
{
struct winsize winsize;
@@ -160,7 +160,7 @@ void sigwinch_handler()
}
-void sigalrm_handler()
+void sigalrm_handler(int a)
{
rotate = (rotate + 1) % 4;
}

View File

@@ -12,4 +12,7 @@
<upstream>
<remote-id type="github">onekey-sec/sasquatch</remote-id>
</upstream>
<use>
<flag name="deprecated">Enable deprecated LZMA1 support</flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,63 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic toolchain-funcs
MY_PV="$(ver_rs 3 '-')"
MY_P="${PN}-v${MY_PV}"
DESCRIPTION="An extended version of sasquashfs-tools"
HOMEPAGE="https://github.com/onekey-sec/sasquatch"
SRC_URI="https://github.com/onekey-sec/sasquatch/archive/refs/tags/${MY_P}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug deprecated lz4 lzma lzo xattr zstd"
REQUIRED_USE="
deprecated? ( !lzma )
lzma? ( !deprecated )
"
DEPEND="
sys-libs/zlib
lz4? ( app-arch/lz4 )
lzma? ( app-arch/xz-utils )
lzo? ( dev-libs/lzo )
xattr? ( sys-apps/attr )
zstd? ( app-arch/zstd )
"
RDEPEND=${DEPEND}
PATCHES=( "${FILESDIR}/${P}_signal-fix.patch" )
use10() {
usex "${1}" 1 0
}
src_compile() {
# set up make command line variables in EMAKE_SQUASHFS_CONF
local opts=(
LZMA_XZ_SUPPORT=$(use10 deprecated)
LZO_SUPPORT=$(use10 lzo)
LZ4_SUPPORT=$(use10 lz4)
XATTR_SUPPORT=$(use10 xattr)
XZ_SUPPORT=$(use10 lzma)
ZSTD_SUPPORT=$(use10 zstd)
)
tc-export CC
use debug && append-cppflags -DSQUASHFS_TRACE
emake "${opts[@]}" -C squashfs-tools
}
src_install() {
dobin squashfs-tools/sasquatch
dodoc ACKNOWLEDGEMENTS CHANGES README*
doman manpages/*.1
}