Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/yara/
Date: Fri, 28 Jan 2022 05:18:47
Message-Id: 1643346879.bbe0fd00ae7b550bee5b46cd4f4ca461346f1d97.sam@gentoo
1 commit: bbe0fd00ae7b550bee5b46cd4f4ca461346f1d97
2 Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
3 AuthorDate: Fri Jan 14 23:53:58 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 05:14:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbe0fd00
7
8 app-forensics/yara: new ebuild
9
10 Bug: https://bugs.gentoo.org/800275
11 Closes: https://bugs.gentoo.org/576956
12 Package-Manager: Portage-3.0.28, Repoman-3.0.3
13 Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 app-forensics/yara/Manifest | 2 ++
17 app-forensics/yara/metadata.xml | 29 ++++++++++++++++++++++++
18 app-forensics/yara/yara-4.1.3.ebuild | 37 ++++++++++++++++++++++++++++++
19 app-forensics/yara/yara-4.2.0_rc1.ebuild | 39 ++++++++++++++++++++++++++++++++
20 4 files changed, 107 insertions(+)
21
22 diff --git a/app-forensics/yara/Manifest b/app-forensics/yara/Manifest
23 new file mode 100644
24 index 000000000000..20a05f4273f6
25 --- /dev/null
26 +++ b/app-forensics/yara/Manifest
27 @@ -0,0 +1,2 @@
28 +DIST yara-4.1.3.tar.gz 936462 BLAKE2B abfdd5918abe3641056ccde3eebb754cbd66eff5569978d3b1aad5d925d62fcb96b1f7367d0d014dd165db8634418259667be3b2441f93e0848bfbd905ca32dd SHA512 1bfa1787c62dfd9a87fa8db5e8c2fa68f082ae66b16b5373bdcc6bc66b32016fcaffd4baa7e59a7c1f6d3426c972eca9cc22f70d475067d7557b1014a4ab65fc
29 +DIST yara-4.2.0_rc1.tar.gz 1283822 BLAKE2B d7bf869e670a0223895aac31df0dbe063d3f0110d1981ae8a42ab26726976790c744b522f13a6963f521310a281fab2b27d6336b23e504a4a9a3d414473ae452 SHA512 03bd09d7c020078946101854e68b7f9ca17c04f7a68624e9e15dc476fe209cc11b010108a0e7aea9746f05aabdbb8d6a6a2ffc54516eb9cb86f170c4259934df
30
31 diff --git a/app-forensics/yara/metadata.xml b/app-forensics/yara/metadata.xml
32 new file mode 100644
33 index 000000000000..d98a389725d0
34 --- /dev/null
35 +++ b/app-forensics/yara/metadata.xml
36 @@ -0,0 +1,29 @@
37 +<?xml version="1.0" encoding="UTF-8"?>
38 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
39 +<pkgmetadata>
40 + <maintainer type="person">
41 + <email>mario.haustein@×××××××××××××××.de</email>
42 + <name>Mario Haustein</name>
43 + </maintainer>
44 + <maintainer type="person">
45 + <email>sam@g.o</email>
46 + <name>Sam James</name>
47 + </maintainer>
48 + <longdescription>
49 + YARA is a tool aimed at (but not limited to) helping malware
50 + researchers to identify and classify malware samples. With YARA you can
51 + create descriptions of malware families (or whatever you want to
52 + describe) based on textual or binary patterns.
53 + </longdescription>
54 + <use>
55 + <flag name='cuckoo'>Enable cockoo module</flag>
56 + <flag name='dex'>Enable dex module</flag>
57 + <flag name='dotnet'>Enable dotnet module</flag>
58 + <flag name='macho'>Enable macho module</flag>
59 + <flag name='magic'>Enable magic module</flag>
60 + <flag name='profiling'>Enable rules profiling</flag>
61 + </use>
62 + <upstream>
63 + <remote-id type="github">VirusTotal/yara</remote-id>
64 + </upstream>
65 +</pkgmetadata>
66
67 diff --git a/app-forensics/yara/yara-4.1.3.ebuild b/app-forensics/yara/yara-4.1.3.ebuild
68 new file mode 100644
69 index 000000000000..ffb30cc26e3a
70 --- /dev/null
71 +++ b/app-forensics/yara/yara-4.1.3.ebuild
72 @@ -0,0 +1,37 @@
73 +# Copyright 1999-2022 Gentoo Authors
74 +# Distributed under the terms of the GNU General Public License v2
75 +
76 +EAPI=8
77 +
78 +inherit autotools
79 +
80 +DESCRIPTION="A malware identification and classification tool"
81 +HOMEPAGE="http://virustotal.github.io/yara/"
82 +SRC_URI="https://github.com/virustotal/yara/archive/v${PV}.tar.gz -> ${P}.tar.gz"
83 +
84 +LICENSE="Apache-2.0"
85 +SLOT="0"
86 +KEYWORDS="~amd64 ~x86"
87 +IUSE="+dex +dotnet +cuckoo +macho +magic profiling"
88 +
89 +DEPEND="
90 + dev-libs/openssl:0=
91 + cuckoo? ( dev-libs/jansson:= )
92 + magic? ( sys-apps/file:0= )
93 +"
94 +RDEPEND="${DEPEND}"
95 +
96 +src_prepare() {
97 + default
98 + eautoreconf
99 +}
100 +
101 +src_configure() {
102 + econf \
103 + $(use_enable profiling) \
104 + $(use_enable cuckoo) \
105 + $(use_enable magic) \
106 + $(use_enable dotnet) \
107 + $(use_enable macho) \
108 + $(use_enable dex)
109 +}
110
111 diff --git a/app-forensics/yara/yara-4.2.0_rc1.ebuild b/app-forensics/yara/yara-4.2.0_rc1.ebuild
112 new file mode 100644
113 index 000000000000..38659ddcaa36
114 --- /dev/null
115 +++ b/app-forensics/yara/yara-4.2.0_rc1.ebuild
116 @@ -0,0 +1,39 @@
117 +# Copyright 1999-2022 Gentoo Authors
118 +# Distributed under the terms of the GNU General Public License v2
119 +
120 +EAPI=8
121 +
122 +inherit autotools
123 +
124 +DESCRIPTION="A malware identification and classification tool"
125 +HOMEPAGE="http://virustotal.github.io/yara/"
126 +SRC_URI="https://github.com/virustotal/yara/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
127 +
128 +LICENSE="Apache-2.0"
129 +SLOT="0"
130 +KEYWORDS=""
131 +IUSE="+dex +dotnet +cuckoo +macho +magic profiling"
132 +
133 +DEPEND="
134 + dev-libs/openssl:0=
135 + cuckoo? ( dev-libs/jansson:= )
136 + magic? ( sys-apps/file:0= )
137 +"
138 +RDEPEND="${DEPEND}"
139 +
140 +S="${WORKDIR}/${PN}-${PV/_/-}"
141 +
142 +src_prepare() {
143 + default
144 + eautoreconf
145 +}
146 +
147 +src_configure() {
148 + econf \
149 + $(use_enable profiling) \
150 + $(use_enable cuckoo) \
151 + $(use_enable magic) \
152 + $(use_enable dotnet) \
153 + $(use_enable macho) \
154 + $(use_enable dex)
155 +}