-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-apps/capa: new package, add 6.1.0
Signed-off-by: Andrew Udvare <audvare@gmail.com>
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DIST capa-6.1.0.tar.gz 16657780 BLAKE2B 87c0386d6f02eab4403c521299bc3039e3ba381cb199e6dbbe0831290f6503d2aaa877351efdc6dc77946384e52365a18a2dceef9eb0d57398672940d9d54cfc SHA512 ad43918cf82321c8875d757313a98c2f85f7fa1a474c15c04ac275ef2f0d8679d55c3249965f842371a1deba06655de84daedbe7f9b81d494b2e8b6352f6f59f | ||
DIST capa-rules-6.1.0.tar.gz 186186 BLAKE2B 120c08ffaba565132b69bd30f328e45d156e21edfa6d18fc0aa17d6d3802d105d973dfbde871c44ce5ba422ea5c48106c90f51f24de2613b700b0ab4d204cc66 SHA512 0d9d3bb72a4f8d62b745f02924c560277a500afae2d6ee52baac711fdaa15cb847b958317c04c4540175a7796b0a789a68c84ee8fd03942639d3bcb97356eeae | ||
EBUILD capa-6.1.0.ebuild 1731 BLAKE2B 52c4a2f15993e769e7f0af62104bc0971006dbdb3a60b95f0d3dd44b0bb2fe99112ab9f6da4a78b3601181ae78895411c9cc3d181418963a00ad6eab5188b51d SHA512 66b3d793dc6caabb72f93365e8fbe0718dc7bcaf8a7170fc9d1be6c6c13cace889bbb46e7a8b9da31051c849bcaf4563dcb717a3b4692384780d9e3b8b40f878 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright 2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DISTUTILS_USE_PEP517=setuptools | ||
PYTHON_COMPAT=( python3_{10..12} ) | ||
inherit distutils-r1 | ||
|
||
DESCRIPTION="The FLARE team's open-source tool to identify capabilities in executable files." | ||
HOMEPAGE="https://github.com/mandiant/capa" | ||
SRC_URI="https://github.com/mandiant/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz | ||
https://github.com/mandiant/${PN}-rules/archive/refs/tags/v${PV}.tar.gz -> ${PN}-rules-${PV}.tar.gz" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
|
||
RDEPEND="dev-python/colorama | ||
dev-python/dncil | ||
dev-python/dnfile | ||
dev-python/halo | ||
dev-python/ida-settings | ||
dev-python/networkx | ||
dev-python/pefile | ||
dev-python/protobuf | ||
dev-python/pydantic | ||
dev-python/pyelftools | ||
dev-python/pyyaml | ||
dev-python/ruamel-yaml | ||
dev-python/tabulate | ||
dev-python/termcolor | ||
dev-python/tqdm | ||
dev-python/viv-utils | ||
dev-python/vivisect | ||
dev-python/wcwidth" | ||
|
||
python_prepare_all() { | ||
sed -r \ | ||
-e 's|^packages = .*|packages = ["capa", "capa.features", "capa.features.extractors", "capa.features.extractors.binja", "capa.features.extractors.dnfile", "capa.features.extractors.ida", "capa.features.extractors.viv", "capa.features.freeze", "capa.ida.plugin", "capa.ida", "capa.render", "capa.render.proto", "capa.rules"]|' \ | ||
-i pyproject.toml || die | ||
sed -re "s|return Path\(__file__\).resolve\(\).parent.parent|return Path('${EPREFIX}/usr/share/${PN}')|" \ | ||
-i capa/main.py || die | ||
distutils-r1_python_prepare_all | ||
} | ||
|
||
python_install_all() { | ||
distutils-r1_python_install_all | ||
insinto /usr/share/${PN}/rules | ||
doins -r "${WORKDIR}/${PN}-rules-${PV}/"* | ||
insinto /usr/share/${PN}/sigs | ||
doins sigs/*.sig | ||
} | ||
|
||
distutils_enable_tests pytest |