public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-forensics/yara/
Date: Fri,  2 Jul 2021 07:23:41 +0000 (UTC)	[thread overview]
Message-ID: <1625210614.517e3ddd92b4826e7a713007030177ebffc41464.Alessandro-Barbieri@gentoo> (raw)

commit:     517e3ddd92b4826e7a713007030177ebffc41464
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Jul  2 07:17:53 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Jul  2 07:23:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=517e3ddd

app-forensics/yara: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 app-forensics/yara/Manifest          |  1 +
 app-forensics/yara/metadata.xml      | 24 ++++++++++++
 app-forensics/yara/yara-4.1.1.ebuild | 72 ++++++++++++++++++++++++++++++++++++
 3 files changed, 97 insertions(+)

diff --git a/app-forensics/yara/Manifest b/app-forensics/yara/Manifest
new file mode 100644
index 000000000..7bdea3d1b
--- /dev/null
+++ b/app-forensics/yara/Manifest
@@ -0,0 +1 @@
+DIST yara-4.1.1.tar.gz 936115 BLAKE2B 6edf277702fb40513097195c730002875eef75502e92d672597ca09fefc054c14a082076877e8bea3daaeb05148a9116e2c302ea90a6ce6270e460fce31db658 SHA512 e4474254249d5b3fbb7231fdec5f4e080be042098e1b2bc953aa93513ce0b4742e34acac2911687e75055ecd589d942f71b79c58ca47eee243626ab3ec8add71

diff --git a/app-forensics/yara/metadata.xml b/app-forensics/yara/metadata.xml
new file mode 100644
index 000000000..875695e98
--- /dev/null
+++ b/app-forensics/yara/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+    <maintainer type="person">
+      <description>co-maintainers welcome</description>
+      <email>lssndrbarbieri@gmail.com</email>
+      <name>Alessandro Barbieri</name>
+    </maintainer>
+    <upstream>
+        <bugs-to>https://github.com/VirusTotal/yara/issues</bugs-to>
+    </upstream>
+    <use>
+        <flag name="cpu-profiler">compile with CPU profiling support</flag>
+        <flag name="cuckoo">enable cuckoo module</flag>
+        <flag name="debug-dex">enable dex module debugging</flag>
+        <flag name="dex">enable dex module</flag>
+        <flag name="dotnet">enable dotnet module</flag>
+        <flag name="jemalloc">use jemalloc to debug heap-related issues</flag>
+        <flag name="macho">enable macho module</flag>
+        <flag name="magic">enable magic module</flag>
+        <flag name="profile">enable rules profiling support</flag>
+        <flag name="tcmalloc">use tcmalloc as the default heap allocator</flag>
+    </use>
+</pkgmetadata>

diff --git a/app-forensics/yara/yara-4.1.1.ebuild b/app-forensics/yara/yara-4.1.1.ebuild
new file mode 100644
index 000000000..f47cce0cc
--- /dev/null
+++ b/app-forensics/yara/yara-4.1.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="docs"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit autotools python-any-r1 docs
+
+DESCRIPTION="A malware identification and classification tool"
+HOMEPAGE="
+	http://virustotal.github.io/yara
+	https://github.com/virustotal/yara
+"
+SRC_URI="https://github.com/virustotal/yara/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="cpu-profiler cuckoo +dex debug-dex dotnet jemalloc macho magic profile tcmalloc"
+#TODO: test https://github.com/VirusTotal/yara/issues/1524
+
+REQUIRED_USE="?? ( jemalloc tcmalloc )"
+DEPEND="
+	dev-libs/openssl:0=
+
+	cpu-profiler? ( dev-util/google-perftools )
+	cuckoo? ( dev-libs/jansson )
+	jemalloc? ( dev-libs/jemalloc )
+	magic? ( sys-apps/file )
+	tcmalloc? ( dev-util/google-perftools )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	local myconf=(
+		$(use_enable cuckoo)
+		$(use_enable debug-dex)
+		$(use_enable dex)
+		$(use_enable dotnet)
+		$(use_enable macho)
+		$(use_enable magic)
+		$(use_enable profile profiling)
+
+		$(use_with cpu-profiler)
+		$(use_with jemalloc)
+		$(use_with tcmalloc)
+	)
+	econf "${myconf[@]}"
+}
+
+src_compile() {
+	default
+	docs_compile
+}
+
+
+src_install() {
+	default
+	einstalldocs
+	dodoc CONTRIBUTORS sample.{file,rules}
+	find "${ED}" -name '*.la' -delete || die
+	find "${ED}" -name '*.a' -delete || die
+}


             reply	other threads:[~2021-07-02  7:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-02  7:23 Alessandro Barbieri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-03  9:59 [gentoo-commits] repo/proj/guru:master commit in: app-forensics/yara/ Andrew Ammerlaan
2021-07-03  9:58 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-07-19 13:35 Alessandro Barbieri
2022-02-07 20:40 [gentoo-commits] repo/proj/guru:master " Arthur Zamarin
2022-02-07 20:37 ` [gentoo-commits] repo/proj/guru:dev " Arthur Zamarin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1625210614.517e3ddd92b4826e7a713007030177ebffc41464.Alessandro-Barbieri@gentoo \
    --to=lssndrbarbieri@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox