mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
app-forensics/yara-x: add 0.15.0
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Part-of: https://github.com/gentoo/gentoo/pull/42272 Closes: https://github.com/gentoo/gentoo/pull/42272 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
de8ac8a497
commit
eca59aad63
@@ -1,4 +1,6 @@
|
||||
DIST yara-x-0.13.0.tar.gz 44311891 BLAKE2B 03b154b5b8c79b80e54ff425d53c69e107823f2f101975b883e74d8b304e5f831d4c4021fcba516626369e91a2130b2d409e52c956d48bb11d616ffc73349cce SHA512 120fe66e52f9fcfe770ddfe686174e827f5459fcb50afe08a29a17bb545fd8b4aa08d695c0921f84d1d5a653213fe09b3f7adfa73f341fc50c6a1df75b7daefc
|
||||
DIST yara-x-0.14.0.tar.gz 44476699 BLAKE2B 6dbea06abac237eaf90375714fd28a5e32523b342943321ddab260ca84cda65167b2d07de330eff2c3d37f30bc2a52cbe141598d622c88a3f89c8a227fa6283a SHA512 ce66a38a1f6955bc79ed9ac2ec1b423bd2fc3f3dc1b13e75790394b8d7b5e9907d4edbc8ab860665ab09351b39ed11b813fdeacb972d988dea22d85f6490ee93
|
||||
DIST yara-x-0.15.0.tar.gz 44484562 BLAKE2B 89c1fb866abfbc401abfebed4547264566aefa33d1af926d201389eb368be72fb674c6e8abe32f63bdb7f9a5567038a9ce55c1919591d0aa875e9cb1e2444623 SHA512 99118a5527f65cc1af98e2b7fc7479e2191f1b79a1c31cc63e4e1289b0fcab3e78a927ff22a1dfb8531ce3b40b900d53608e38f856a07d09cde5fd7285e7d03a
|
||||
DIST yara-x-go-v0.14.0-crates.tar.xz 47078332 BLAKE2B 86ab66084f33bc36a1c3b10e1098d5733080b2313e67a77b44f9a404d7e95f0530d6a99096693148ba47e2e1146fb6c5e1126cfc80ebb33a6b596cfab73fe69d SHA512 84f1c8e62d16da65b3377a03fb5e2fd51b3c98705997ea5c6fa9a42477e5fe8f951a6e1eb46d58fa2438e193312ba5e3c53c9ad9cf9e30f16a04e62de25327bd
|
||||
DIST yara-x-go-v0.15.0-crates.tar.xz 45750356 BLAKE2B 8ba62e5d917bac88c8b3d2df20763225ef0dbfbb843b35659774deac21748b9014765165824b0b122a04ff302ea4b493d3644591affaa55c7462026329c56a5a SHA512 a086b089df9bb71ad96e4a343a521318a09ecf5defb34246c8c00ef4e0c2bf8c5315543fd7cddaed5a50e6d9203a060dce3e96b8f5caac7ca7238cde698497bb
|
||||
DIST yara-x-v0.13.0-crates.tar.xz 45269648 BLAKE2B d10294ee753c7017798d501472b0dfde0413325d6dfd4ba01c3cae8e3cefb71ce749efbaf9a2676871ac9ed6ba700e19230c563a092c1f9ca9bfc5f75e09c3ec SHA512 b4a5251e9720b2dfa0cc1a509e01641a8969628638fe511c9dcc6aa05d4bc405d6a06faa0b809db9f6201801e0ac34e54a546db348fe99f13b167ce6d7040132
|
||||
|
||||
92
app-forensics/yara-x/yara-x-0.15.0.ebuild
Normal file
92
app-forensics/yara-x/yara-x-0.15.0.ebuild
Normal file
@@ -0,0 +1,92 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.15.0
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=maturin
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
CRATES=""
|
||||
|
||||
inherit cargo distutils-r1
|
||||
|
||||
DESCRIPTION="A malware identification and classification tool"
|
||||
HOMEPAGE="https://virustotal.github.io/yara-x/"
|
||||
SRC_URI="https://github.com/VirusTotal/yara-x/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/gentoo-crate-dist/${PN}/releases/download/go/v${PV}/${PN}-go-v${PV}-crates.tar.xz"
|
||||
|
||||
LICENSE="BSD"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 EPL-2.0 ISC
|
||||
MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB
|
||||
"
|
||||
|
||||
SLOT="0"
|
||||
# Note: cranelift dependency only supports amd64, arm64, s390, and riscv64 as of 2025
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="python"
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
BDEPEND="
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
${DISTUTILS_DEPS}
|
||||
)
|
||||
"
|
||||
|
||||
wrap_python() {
|
||||
local phase=$1
|
||||
shift
|
||||
|
||||
if use python; then
|
||||
pushd py >/dev/null || die
|
||||
distutils-r1_${phase} "$@"
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
# https://bugs.gentoo.org/933231, https://bugs.gentoo.org/933232
|
||||
QA_FLAGS_IGNORED="usr/bin/yr"
|
||||
|
||||
pkg_setup() {
|
||||
# https://bugs.gentoo.org/933233
|
||||
QA_SONAME="usr/$(get_libdir)/libyara_x.*\\.so usr/lib.*/py.*/site-packages/yara_x/yara_x.*\\.so"
|
||||
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cargo_src_compile --workspace
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
python_test() {
|
||||
epytest
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cargo_src_test
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "$(cargo_target_dir)"/yr
|
||||
dolib.so "$(cargo_target_dir)"/*.so
|
||||
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
Reference in New Issue
Block a user