commit: 0060e54f34fe6cb768c641890aabd337ceb8161c Author: David Roman <droman <AT> ifae <DOT> es> AuthorDate: Tue Feb 4 11:12:31 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun May 11 00:19:46 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0060e54f
app-arch/sasquatch: new package, add 4.5.1.4 Bug: https://bugs.gentoo.org/948807 Signed-off-by: David Roman <droman <AT> ifae.es> Part-of: https://github.com/gentoo/gentoo/pull/40435 Closes: https://github.com/gentoo/gentoo/pull/40435 Signed-off-by: Sam James <sam <AT> gentoo.org> app-arch/sasquatch/Manifest | 1 + app-arch/sasquatch/metadata.xml | 15 ++++++++ app-arch/sasquatch/sasquatch-4.5.1.4.ebuild | 55 +++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) diff --git a/app-arch/sasquatch/Manifest b/app-arch/sasquatch/Manifest new file mode 100644 index 000000000000..ba92f7035cab --- /dev/null +++ b/app-arch/sasquatch/Manifest @@ -0,0 +1 @@ +DIST sasquatch-4.5.1.4.tar.gz 498093 BLAKE2B 3b5d2175417fe47921581c7f1ad95f7ffb04507e1b622d1f8758ca71ea3047d689e0b1831765667f412ad29b6415ffc709423e036c188820fe31b8806629230f SHA512 94ae869f9d9a832b93e0d464983939a8fe2fb8e8b2ef39d5c3c628db5bd98dd93af6158117dfc9abbd0b9be7ba3967c06e0f636e3dc7af4dba1f6f6d290bcaf7 diff --git a/app-arch/sasquatch/metadata.xml b/app-arch/sasquatch/metadata.xml new file mode 100644 index 000000000000..c2e1efa76c7f --- /dev/null +++ b/app-arch/sasquatch/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>[email protected]</email> + <name>David Roman</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">onekey-sec/sasquatch</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-arch/sasquatch/sasquatch-4.5.1.4.ebuild b/app-arch/sasquatch/sasquatch-4.5.1.4.ebuild new file mode 100644 index 000000000000..12c84b206164 --- /dev/null +++ b/app-arch/sasquatch/sasquatch-4.5.1.4.ebuild @@ -0,0 +1,55 @@ +# 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 lz4 lzma lzo xattr zstd" + +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} + +use10() { + usex "${1}" 1 0 +} + +src_compile() { + # set up make command line variables in EMAKE_SQUASHFS_CONF + local opts=( + LZMA_XZ_SUPPORT=$(use10 lzma) + 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 +}
