From 19e94a01d68b04640fac43ee873d84dcffbf3f63 Mon Sep 17 00:00:00 2001 From: blshkv Date: Thu, 11 Feb 2016 14:18:02 +0800 Subject: [PATCH] sasquatch: an initial ebuild, required for binwalk --- sys-fs/sasquatch/Manifest | 2 + sys-fs/sasquatch/sasquatch-20160119.ebuild | 57 ++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 sys-fs/sasquatch/Manifest create mode 100644 sys-fs/sasquatch/sasquatch-20160119.ebuild diff --git a/sys-fs/sasquatch/Manifest b/sys-fs/sasquatch/Manifest new file mode 100644 index 000000000..d13f3eaae --- /dev/null +++ b/sys-fs/sasquatch/Manifest @@ -0,0 +1,2 @@ +DIST sasquatch-20160119.patch 1128943 SHA256 7b7ea30d0c476efb92f0db5167db225dedbdc41b49055fce9d389819f76f4c86 SHA512 ffc53ceeccc7ad3b58879030f91996db540cf184675ea1009672a0457f7c18d812f36c639fb1cc5d182a14e35f0dfe4a8f7b04fa47b0c8260dfffb6b6bc04f21 WHIRLPOOL 0d9ff819906f3d07a5328405e25898d01f7514110861e957ec2e63f0b4838135452214651c42f295e8ec3992dac048d4b421577d00dc7b6347e0e7c4f575ea55 +DIST squashfs4.3.tar.gz 182550 SHA256 0d605512437b1eb800b4736791559295ee5f60177e102e4d4ccd0ee241a5f3f6 SHA512 854ed7acc99920f24ecf11e0da807e5a2a162eeda55db971aba63a03f0da2c13b20ec0564a906c4b0e415bd8258b273a10208c7abc0704f2ceea773aa6148a79 WHIRLPOOL c819f416b34cc46a232b8bc385017774603f81b4a865e6b97208004c183ebad5de7d0f726be444f8cb4e1d450abed9340dab730aec0762407f034e99b39bdc06 diff --git a/sys-fs/sasquatch/sasquatch-20160119.ebuild b/sys-fs/sasquatch/sasquatch-20160119.ebuild new file mode 100644 index 000000000..4d430a675 --- /dev/null +++ b/sys-fs/sasquatch/sasquatch-20160119.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="The sasquatch project is a set of patches to the standard unsquashfs utility" +HOMEPAGE="https://github.com/devttys0/sasquatch" +SRC_URI="mirror://sourceforge/squashfs/squashfs4.3.tar.gz \ + https://raw.githubusercontent.com/devttys0/sasquatch/f6229d2cce3e07c2e96961086bc3e0c0522d7a65/patches/patch0.txt -> ${P}.patch" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+xz lzma lz4 lzo xattr" + +#build-essential liblzma-dev liblzo2-dev zlib1g-dev +RDEPEND=" + sys-libs/zlib + !xz? ( !lzo? ( sys-libs/zlib ) ) + lz4? ( app-arch/lz4 ) + lzma? ( app-arch/xz-utils ) + lzo? ( dev-libs/lzo ) + xattr? ( sys-apps/attr ) + xz? ( app-arch/xz-utils ) +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/squashfs4.3/squashfs-tools" + +src_prepare() { + epatch "${DISTDIR}/${P}.patch" +} + +src_configure() { + # set up make command line variables in EMAKE_SQUASHFS_CONF + EMAKE_SQUASHFS_CONF=( + $(usex lzma LZMA_XZ_SUPPORT=1 LZMA_XS_SUPPORT=0) + $(usex lzo LZO_SUPPORT=1 LZO_SUPPORT=0) + $(usex lz4 LZ4_SUPPORT=1 LZ4_SUPPORT=0) + $(usex xattr XATTR_SUPPORT=1 XATTR_SUPPORT=0) + $(usex xz XZ_SUPPORT=1 XZ_SUPPORT=0) + ) + + tc-export CC +} + +src_compile() { + emake ${EMAKE_SQUASHFS_CONF[@]} +} + +src_install() { + dobin sasquatch +# dobin mksquashfs unsquashfs +# dodoc ../README +}