commit: b8e5dbc4e63233be27a0ba4cc895de056007fad8 Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de> AuthorDate: Fri May 23 15:03:24 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun May 25 08:21:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8e5dbc4
app-forensics/yara: add 4.5.3 Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de> Part-of: https://github.com/gentoo/gentoo/pull/42228 Signed-off-by: Sam James <sam <AT> gentoo.org> app-forensics/yara/Manifest | 1 + app-forensics/yara/yara-4.5.3.ebuild | 60 ++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/app-forensics/yara/Manifest b/app-forensics/yara/Manifest index 79b9919b0e87..e976e5ca72f1 100644 --- a/app-forensics/yara/Manifest +++ b/app-forensics/yara/Manifest @@ -1,2 +1,3 @@ DIST yara-4.5.1.tar.gz 2207552 BLAKE2B b8983371e3ec6f0fd4208698742a576d3c76e1ce34b7ebbc10c7b414f663b570c812c10dce8eefe32f4cf6cffe033bb63a05987068c49e9235077e20d96ca06d SHA512 8bf1df7089f9bc5a448dbae0999e04f4ecdec06b4478e2cb5f42a2a3201b99fce68379e3f8f7c67a9db201205366250d7befe5c38451cced807ed692d436422c DIST yara-4.5.2.tar.gz 2207923 BLAKE2B c686ca73f6f7be26cc0dca08964f66051180fdb782510d0cc40aed1d76cac985a6ac4a688e75934865200cc413f050afa308daa1da3adfaeec6155206f7fad85 SHA512 761f3930117c35d87b0e3be1a5d61a6887006470fdf578164feb1bd56a96b2d85770ab7c3a21258a2781ff3327cb705942f4f0eb959cff4b210f0c7fbec1fc30 +DIST yara-4.5.3.tar.gz 2201564 BLAKE2B 0017c10e8b33218495038dc9c6232282d6e28206ad9e63fd77123f1c0bdc088b06ab7e700f55384be76aaf3a7e8a00b5ecf0e02c21a143a2fa855a071ea92c8b SHA512 185c2e29655f1c874ba48b8b5a764e7fad6496b8f041b9dd1157deed28fdfde611343b7c331bb43876e4724bdc680d035a08dca101d3a48951cd2c5ae5071cbb diff --git a/app-forensics/yara/yara-4.5.3.ebuild b/app-forensics/yara/yara-4.5.3.ebuild new file mode 100644 index 000000000000..bbcd2959cf82 --- /dev/null +++ b/app-forensics/yara/yara-4.5.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="A malware identification and classification tool" +HOMEPAGE="https://virustotal.github.io/yara/" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/VirusTotal/yara.git" +else + SRC_URI="https://github.com/virustotal/yara/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${PV/_/-}" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +fi + +LICENSE="Apache-2.0" +SLOT="0/10" +IUSE="+dex +dotnet +cuckoo +macho +magic profiling python test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/openssl:= + cuckoo? ( dev-libs/jansson:= ) + magic? ( sys-apps/file:= ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" +PDEPEND="python? ( =dev-python/yara-python-$(ver_cut 1)* )" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_enable profiling) \ + $(use_enable cuckoo) \ + $(use_enable magic) \ + $(use_enable dotnet) \ + $(use_enable macho) \ + $(use_enable dex) \ + $(use_enable test static) +} + +src_test() { + emake check +} + +src_install() { + default + + # TODO: Allow tests to work against dyn. lib rather than building + # statically just for tests. + find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die +}
