commit: 6fb3a242dea3e564c2af279b255a630d7f001288 Author: David Roman <davidroman96 <AT> gmail <DOT> com> AuthorDate: Sat Mar 23 16:13:30 2024 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Mon Mar 25 13:09:12 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fb3a242
app-misc/binwalk: add 2.4.0 Signed-off-by: David Roman <davidroman96 <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35881 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> app-misc/binwalk/Manifest | 1 + app-misc/binwalk/binwalk-2.4.0.ebuild | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/app-misc/binwalk/Manifest b/app-misc/binwalk/Manifest index 7337420de25c..ce797b05909f 100644 --- a/app-misc/binwalk/Manifest +++ b/app-misc/binwalk/Manifest @@ -1,2 +1,3 @@ DIST binwalk-2.3.6.tar.gz 39723335 BLAKE2B 20710dc32f67981b1ba69ced649bfddc0247b9054a30ba9a8ab17710094fa4f45a44b32b18e2de6e0c63d632044432e8d4a8ec8cdacb007996b7d91b983547bc SHA512 05e06682a9b8aa6b68b580b6818a2f08d8d81d89961f6cacfd9d14185c26727bbdf6dedb2f26079fffebf7de6f45002944ed8f3475ba04e4b05ac6d5c19560ea DIST binwalk-2.3.8.tar.gz 39723354 BLAKE2B 87c4e9e78e7a2c6132266ad9bd4ba1cfc05fccb078b41b7a9890c59586175c1993bea5c642493c42c10d3e2af36965c88612c881fec750eb7d99b260226ae65f SHA512 5b99626496ae236f32ae190372b4e24dbb3873413bc822a67096fb380139835379556987cfd6f7561a8b36574ec4d4ea8007182edb6d58ac1cd993cafb46d1a7 +DIST binwalk-2.4.0.tar.gz 39744574 BLAKE2B 8503e86afb584e431b25611fbed91e85aaf307e9011b5ef09a83b5f4756a815f9d3de67d440a2b7547cbe162d1940e8d6ffc4899afac14ccb938304002b1eb41 SHA512 41bee6a0d1cd587f81dcf81c30215a305b61e4db208bc9d8e4f0b9f12acb47e4dc2e6af23e06118ef6e30c484f6be743b456b6d4324be4388413ff291682345e diff --git a/app-misc/binwalk/binwalk-2.4.0.ebuild b/app-misc/binwalk/binwalk-2.4.0.ebuild new file mode 100644 index 000000000000..53c023e8014b --- /dev/null +++ b/app-misc/binwalk/binwalk-2.4.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..12} pypy3 ) + +inherit distutils-r1 optfeature + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/OSPG/binwalk.git" + inherit git-r3 +else + SRC_URI="https://github.com/OSPG/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos" +fi + +DESCRIPTION="A tool for identifying files embedded inside firmware images" +HOMEPAGE="https://github.com/OSPG/binwalk" + +LICENSE="MIT" +SLOT="0" + +distutils_enable_tests pytest + +python_install_all() { + local DOCS=( API.md INSTALL.md README.md ) + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "entropy graph" dev-python/matplotlib + optfeature "disassembly" dev-libs/capstone[python] + + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "binwalk has many optional dependencies to automatically" + elog "extract/decompress data, see INSTALL.md for more details." + fi +}