From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9FA88158083 for ; Sat, 14 Sep 2024 09:53:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CAB78E29AB; Sat, 14 Sep 2024 09:53:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B119AE29AB for ; Sat, 14 Sep 2024 09:53:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E88F833BF39 for ; Sat, 14 Sep 2024 09:53:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5570727DE for ; Sat, 14 Sep 2024 09:53:00 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1726307555.9a47425ce61a8a4e65fd9ca6b48cd431a783375e.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/yara/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-forensics/yara/Manifest app-forensics/yara/yara-4.5.2.ebuild X-VCS-Directories: app-forensics/yara/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 9a47425ce61a8a4e65fd9ca6b48cd431a783375e X-VCS-Branch: master Date: Sat, 14 Sep 2024 09:53:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: aafc605e-df85-4a11-9de0-0401d362a3a7 X-Archives-Hash: b26d2a66ef1da80660d0a591f5305db5 commit: 9a47425ce61a8a4e65fd9ca6b48cd431a783375e Author: Mario Haustein hrz tu-chemnitz de> AuthorDate: Wed Sep 11 03:17:30 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Sat Sep 14 09:52:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a47425c app-forensics/yara: add 4.5.2 Signed-off-by: Mario Haustein hrz.tu-chemnitz.de> Signed-off-by: Florian Schmaus gentoo.org> app-forensics/yara/Manifest | 1 + app-forensics/yara/yara-4.5.2.ebuild | 60 ++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/app-forensics/yara/Manifest b/app-forensics/yara/Manifest index 666b5945eda9..cd03b5021c7c 100644 --- a/app-forensics/yara/Manifest +++ b/app-forensics/yara/Manifest @@ -1,2 +1,3 @@ DIST yara-4.5.0.tar.gz 2206492 BLAKE2B 788ed6c4989bbc2d0a113b46bcd1291e7544ab8f56ebe499725163b7b02feb016935210e8a08d9cb179fbffc09fafb461cc55156101d9616a23a480a78862d9e SHA512 c9fe8a89879d1a742236101f1754e6b25e70356cdf5c020b2583e3ac509600c3b462756c412b01f2ebcb17df351c83afcf04d1cfaa87e6753eb25bab0f797aa3 DIST yara-4.5.1.tar.gz 2207552 BLAKE2B b8983371e3ec6f0fd4208698742a576d3c76e1ce34b7ebbc10c7b414f663b570c812c10dce8eefe32f4cf6cffe033bb63a05987068c49e9235077e20d96ca06d SHA512 8bf1df7089f9bc5a448dbae0999e04f4ecdec06b4478e2cb5f42a2a3201b99fce68379e3f8f7c67a9db201205366250d7befe5c38451cced807ed692d436422c +DIST yara-4.5.2.tar.gz 2207923 BLAKE2B c686ca73f6f7be26cc0dca08964f66051180fdb782510d0cc40aed1d76cac985a6ac4a688e75934865200cc413f050afa308daa1da3adfaeec6155206f7fad85 SHA512 761f3930117c35d87b0e3be1a5d61a6887006470fdf578164feb1bd56a96b2d85770ab7c3a21258a2781ff3327cb705942f4f0eb959cff4b210f0c7fbec1fc30 diff --git a/app-forensics/yara/yara-4.5.2.ebuild b/app-forensics/yara/yara-4.5.2.ebuild new file mode 100644 index 000000000000..0ceb7748b741 --- /dev/null +++ b/app-forensics/yara/yara-4.5.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2024 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 +}