commit:     5b96d69cc7176f40f3fe3cbae9e63e848b64247a
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Tue Aug  9 11:33:14 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 23 05:24:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b96d69c

app-forensics/yara: add 4.2.3

Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-forensics/yara/Manifest          |  1 +
 app-forensics/yara/yara-4.2.3.ebuild | 57 ++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/app-forensics/yara/Manifest b/app-forensics/yara/Manifest
index b121a9780e37..7cb826c17da6 100644
--- a/app-forensics/yara/Manifest
+++ b/app-forensics/yara/Manifest
@@ -1,3 +1,4 @@
 DIST yara-4.2.0.tar.gz 1284059 BLAKE2B 
735d161fde5f84199315f1ce6d31f1ad79488312bede85d2941a03cb97fe75c3c4db0b3cba75782d338a462d87e9d9ed57b393bbdb68decfb350a1bbd096258b
 SHA512 
24ca707015c77d87126bcaac0991997f6b09403024765d615a06db47191a3f0177e1c1eb4a917ec8412876b61d28f4a708f36999ddd9214c3967968c71ae3b7c
 DIST yara-4.2.1.tar.gz 1285173 BLAKE2B 
dc290bf7fe85d468fd519e68a12d88097d817ca064a665397ba64768078a2d572b46e488eb48747ea1904207598b41a72a510b4b8e4e8601cf518cb6ab98c322
 SHA512 
036a35d713647b23998135da0d27c13a8876aa44e18e3c9dc99fa425273d7c4a953cbdc78f413f29e8bf818d84b340d0719e241d2a83b7165a16d97e952c45b0
 DIST yara-4.2.2.tar.gz 1287486 BLAKE2B 
956a9ed4dab64d24cff680248b4f95b06287e96d27b3f94ff80e97641b3dc4581eaee59cf0d19dfffa9f90a6f0a56f95d3f90f9e9472b65e133bf4aac3e42da3
 SHA512 
6eb42e63eff93ce636e1d2ae84e30621eeea0d91e1d72bb2cbe826aca6af306bb3564ac2314bc090fb59c9aca5436e72d33658009722ce0cfbaae7ef87cc894e
+DIST yara-4.2.3.tar.gz 1288334 BLAKE2B 
4e92570e4dced5c1aa114065d791fc6780ea1281919eb1e908d4181fb5a966137c58d82ae09e8ba18edc69a25d542e3820d8e8de4ac62c0636e273e158086954
 SHA512 
1df23837d14d3f9f72db901190e7412241514a8914d72b753df32ad8a44c7a49ad8f14941a95de83754e4d1dd0f23d712d8e6a43916343341b92cb1bc66f3c09

diff --git a/app-forensics/yara/yara-4.2.3.ebuild 
b/app-forensics/yara/yara-4.2.3.ebuild
new file mode 100644
index 000000000000..cf8905b87957
--- /dev/null
+++ b/app-forensics/yara/yara-4.2.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2022 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="http://virustotal.github.io/yara/";
+SRC_URI="https://github.com/virustotal/yara/archive/v${PV/_/-}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/${PN}-${PV/_/-}"
+
+LICENSE="Apache-2.0"
+SLOT="0/8"
+if [[ ${PV} != *_rc* ]] ; then
+       KEYWORDS="~amd64 ~ppc64 ~x86"
+fi
+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)* )"
+
+PATCHES=( "${FILESDIR}/${PN}-$(ver_cut 1-2)-test.patch" )
+
+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
+}

Reply via email to