diff options
author | Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> | 2023-03-27 17:21:50 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-04-05 15:32:43 +0300 |
commit | 921c7152389366d954fffcbec37188af0fa069d5 (patch) | |
tree | 53fc4c63e62f5163e9ef352cc0174c75ea7c97f6 /app-forensics | |
parent | app-forensics/yara: add 4.3.0 (diff) | |
download | gentoo-921c7152389366d954fffcbec37188af0fa069d5.tar.gz gentoo-921c7152389366d954fffcbec37188af0fa069d5.tar.bz2 gentoo-921c7152389366d954fffcbec37188af0fa069d5.zip |
app-forensics/yara: add 9999
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/yara/yara-9999.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
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 +} |