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 EB17A1580C6 for ; Wed, 5 Apr 2023 12:32:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F98EE0875; Wed, 5 Apr 2023 12:32:48 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0DD4BE0874 for ; Wed, 5 Apr 2023 12:32:48 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A584335D7F for ; Wed, 5 Apr 2023 12:32:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C7C5699A for ; Wed, 5 Apr 2023 12:32:45 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1680697963.921c7152389366d954fffcbec37188af0fa069d5.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/yara/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-forensics/yara/yara-9999.ebuild X-VCS-Directories: app-forensics/yara/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 921c7152389366d954fffcbec37188af0fa069d5 X-VCS-Branch: master Date: Wed, 5 Apr 2023 12:32:45 +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: b7832edf-85a8-40d8-8296-742aa9e3391e X-Archives-Hash: d28930dfae1e9df55c886a3d7ff70a1c commit: 921c7152389366d954fffcbec37188af0fa069d5 Author: Mario Haustein hrz tu-chemnitz de> AuthorDate: Mon Mar 27 15:21:50 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Apr 5 12:32:43 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=921c7152 app-forensics/yara: add 9999 Signed-off-by: Mario Haustein hrz.tu-chemnitz.de> Signed-off-by: Joonas Niilola gentoo.org> app-forensics/yara/yara-9999.ebuild | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/app-forensics/yara/yara-9999.ebuild b/app-forensics/yara/yara-9999.ebuild new file mode 100644 index 000000000000..3862dff1c51a --- /dev/null +++ b/app-forensics/yara/yara-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2023 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/8" +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}" +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 +}