public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-arch/sasquatch/files/, app-arch/sasquatch/
@ 2025-05-30 21:53 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-05-30 21:53 UTC (permalink / raw
  To: gentoo-commits

commit:     dae0fd41f4908e65f7f7ad83313683824bdc22bf
Author:     David Roman <droman <AT> ifae <DOT> es>
AuthorDate: Fri May 30 08:20:12 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 30 21:52:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dae0fd41

app-arch/sasquatch: add 4.5.1.5

Signed-off-by: David Roman <droman <AT> ifae.es>
Part-of: https://github.com/gentoo/gentoo/pull/42340
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/sasquatch/Manifest                        |  1 +
 .../files/sasquatch-4.5.1.5_signal-fix.patch       | 22 ++++++++
 app-arch/sasquatch/metadata.xml                    |  3 ++
 app-arch/sasquatch/sasquatch-4.5.1.5.ebuild        | 63 ++++++++++++++++++++++
 4 files changed, 89 insertions(+)

diff --git a/app-arch/sasquatch/Manifest b/app-arch/sasquatch/Manifest
index ba92f7035cab..6f7511fcb609 100644
--- a/app-arch/sasquatch/Manifest
+++ b/app-arch/sasquatch/Manifest
@@ -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

diff --git a/app-arch/sasquatch/files/sasquatch-4.5.1.5_signal-fix.patch b/app-arch/sasquatch/files/sasquatch-4.5.1.5_signal-fix.patch
new file mode 100644
index 000000000000..cff02ccb39a2
--- /dev/null
+++ b/app-arch/sasquatch/files/sasquatch-4.5.1.5_signal-fix.patch
@@ -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;
+ }

diff --git a/app-arch/sasquatch/metadata.xml b/app-arch/sasquatch/metadata.xml
index c2e1efa76c7f..68cb89d8493c 100644
--- a/app-arch/sasquatch/metadata.xml
+++ b/app-arch/sasquatch/metadata.xml
@@ -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>

diff --git a/app-arch/sasquatch/sasquatch-4.5.1.5.ebuild b/app-arch/sasquatch/sasquatch-4.5.1.5.ebuild
new file mode 100644
index 000000000000..38c1a8e3bafc
--- /dev/null
+++ b/app-arch/sasquatch/sasquatch-4.5.1.5.ebuild
@@ -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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-30 21:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-30 21:53 [gentoo-commits] repo/gentoo:master commit in: app-arch/sasquatch/files/, app-arch/sasquatch/ Sam James

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