mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-forensics/yara-x: add 1.11.0
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Part-of: https://github.com/gentoo/gentoo/pull/45381 Closes: https://github.com/gentoo/gentoo/pull/45381 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
77361f0262
commit
1230fbb7ca
@@ -1,4 +1,6 @@
|
||||
DIST yara-x-1.10.0-crates.tar.xz 43548196 BLAKE2B f64ea1a947236012599776e8f831037603c552e2b5760ad10425afa8fd4431fb000a67049e969ea3cd98bab095b2fb32f1a96e45f75e1683136796dbdadea5fb SHA512 bfcb9faee50e9e350776c7435244acb5a0726e140a6f101aa53a6bfc52f813a912b2f0504b358b8ee05f5afc5a600fb74d633b70b0966736d5777d741929c181
|
||||
DIST yara-x-1.10.0.tar.gz 45731985 BLAKE2B e90af37b52841f6c16c2f27213f370f23bf69a8af9f79ebbdf5e32f77bbe7d7abb60586c5be236d32e4f203b093cb94e34749d9311ad822c701e983aa2229757 SHA512 f82e1d8caf6c51074bea0761fe15954ed7fa6e1437532c7615d40f077bc465ef10f14a75fb4c38d896978d7d193605c4a584442049f54ff01df3e0d17f0083d1
|
||||
DIST yara-x-1.11.0-crates.tar.xz 45870116 BLAKE2B 00175f3c55f336a09ebf8d6ff90a028960e15fa7307fd0cf3ae602e1dc3d708759e4333b262cb50d06dce2e664b088e57e2d0fc2108cae111e28faa2673f1b44 SHA512 34be741490d44c2f48680eb0138231831cbf357c4984cee729a6213a0d93cca21630ebf0dc35d426f8112b36a1821696cda4bcec066b518bf56098c2f879c32b
|
||||
DIST yara-x-1.11.0.tar.gz 46624874 BLAKE2B 01565d46efc274ed9315f6bbac53c57b450f9fc191fffc3b2a288a461c261875854cc48442ea0e5cd44e48499ff92049393b39fb02448908e786dae1e5cd978e SHA512 885d86298ea5b1675620e0f4b494d99c2700d930033a5ec50428f3976b14526b8cf05003072b0eb34cc1eb5ff653bada192eb805fbe3d163031aed8c70eca15b
|
||||
DIST yara-x-1.8.1-crates.tar.xz 43611272 BLAKE2B bc655cf47eef9cba45fdf72013c686cbbf57e9a57fe24a1bb493cfb2f783b7d8cb49d6f92c82d0ff1856485c8eb474401e3a8a4a028b202e75c320d774f359e6 SHA512 4dc52b80f15220cd225edb18ffee31ed59088e083eb1fb00cb4c19b38fcf7d0fbe2cd957d7ffac288335334ae76b5425dc8745443f2c89adac6bc9aa4befb499
|
||||
DIST yara-x-1.8.1.tar.gz 45705548 BLAKE2B bf7efca80ff666a654ba53f3b5936a8d8eb60ee30f4a024772f071a4f4617d15a44e894b430b23f9a9740b07201b6fb0be460958c79f27e8ed1e29377d51cdb4 SHA512 26c01d8f36347d68664e872ca353749bb70b4916eb41f0a21f312d74e16fbba061f208246b32ac6f51a52272f41ad62730531bb71e44bb027bc4a49b2dd40233
|
||||
|
||||
92
app-forensics/yara-x/yara-x-1.11.0.ebuild
Normal file
92
app-forensics/yara-x/yara-x-1.11.0.ebuild
Normal file
@@ -0,0 +1,92 @@
|
||||
# Copyright 2025-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=maturin
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
RUST_MIN_VER="1.88.0"
|
||||
|
||||
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/v${PV}/${P}-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() {
|
||||
export RUST_BACKTRACE=full
|
||||
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