1 |
commit: 8f5935a130e2f36e50950b193cbf0f92e7616032 |
2 |
Author: Slawomir Lis <slis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 19 05:36:04 2016 +0000 |
4 |
Commit: Slawek Lis <slis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 19 05:36:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f5935a1 |
7 |
|
8 |
Added detection USE flag, drop old |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
net-analyzer/suricata/Manifest | 1 - |
13 |
net-analyzer/suricata/metadata.xml | 3 +- |
14 |
net-analyzer/suricata/suricata-2.0.10.ebuild | 120 --------------------------- |
15 |
net-analyzer/suricata/suricata-2.0.11.ebuild | 6 +- |
16 |
4 files changed, 5 insertions(+), 125 deletions(-) |
17 |
|
18 |
diff --git a/net-analyzer/suricata/Manifest b/net-analyzer/suricata/Manifest |
19 |
index e35b5b9..cff1749 100644 |
20 |
--- a/net-analyzer/suricata/Manifest |
21 |
+++ b/net-analyzer/suricata/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST suricata-2.0.10.tar.gz 3090730 SHA256 c8d1d3b6ce3d2a56577fca224424071afd921739d3859efc8a62229556d4beef SHA512 fa3683a93d85b26166b0f67a85f1a498941aadf4372ef98bd7fe62fcdef150af46b65456e3a764e054c385abbf44138ae6f70882c68ba320508eade6e181f2c6 WHIRLPOOL b867003e76df2b0b1b56c89415ed96acbf9d8966739d77aa303055d29ae5cdad8ad0b58e969336f0c1fc2e5d9990941622c19c062828dae58bf062f5662225f3 |
24 |
DIST suricata-2.0.11.tar.gz 3091124 SHA256 c607f1e18e5636830f42a83f7c67e1466f07db82853f3a9dba4ab8c6c3bc656e SHA512 659e893fef3cdcca8440f2af7596d5cc58b142d3350b9ea5ba57d855c6759a00adafeb15a1dfe91dd55eca1437487eb4e842b4e2913d12417f0b906ca3d54ec9 WHIRLPOOL 5cfa55abd90284a0a3441853af9db18075a23fa5661d89448b409b8fdd1031ad348d76d455b7dfe7b2688e69633f5bbb65dc060cc2426af017ab1bcb824c9ac5 |
25 |
|
26 |
diff --git a/net-analyzer/suricata/metadata.xml b/net-analyzer/suricata/metadata.xml |
27 |
index 9ec4bf7..108297d 100644 |
28 |
--- a/net-analyzer/suricata/metadata.xml |
29 |
+++ b/net-analyzer/suricata/metadata.xml |
30 |
@@ -1,13 +1,14 @@ |
31 |
<?xml version="1.0" encoding="UTF-8"?> |
32 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
<pkgmetadata> |
34 |
- <maintainer type="person"> |
35 |
+ <maintainer> |
36 |
<email>slis@g.o</email> |
37 |
</maintainer> |
38 |
<use> |
39 |
<flag name="af-packet">Enable AF_PACKET support</flag> |
40 |
<flag name="control-socket">Enable unix socket</flag> |
41 |
<flag name="cuda">Enable NVIDIA Cuda computations support</flag> |
42 |
+ <flag name="detection">Enable detection modules</flag> |
43 |
<flag name="luajit">Enable Luajit support</flag> |
44 |
<flag name="nflog">Enable libnetfilter_log support</flag> |
45 |
<flag name="nfqueue">Enable AF_PACKET support</flag> |
46 |
|
47 |
diff --git a/net-analyzer/suricata/suricata-2.0.10.ebuild b/net-analyzer/suricata/suricata-2.0.10.ebuild |
48 |
deleted file mode 100644 |
49 |
index 3c69998..0000000 |
50 |
--- a/net-analyzer/suricata/suricata-2.0.10.ebuild |
51 |
+++ /dev/null |
52 |
@@ -1,120 +0,0 @@ |
53 |
-# Copyright 1999-2015 Gentoo Foundation |
54 |
-# Distributed under the terms of the GNU General Public License v2 |
55 |
-# $Id$ |
56 |
- |
57 |
-EAPI=5 |
58 |
- |
59 |
-inherit autotools eutils user |
60 |
- |
61 |
-DESCRIPTION="High performance Network IDS, IPS and Network Security Monitoring engine" |
62 |
-HOMEPAGE="http://suricata-ids.org/" |
63 |
-SRC_URI="http://www.openinfosecfoundation.org/download/${P}.tar.gz" |
64 |
- |
65 |
-LICENSE="GPL-2" |
66 |
-SLOT="0" |
67 |
-KEYWORDS="~amd64 ~x86" |
68 |
-IUSE="+af-packet control-socket cuda debug geoip hardened lua luajit nflog +nfqueue +rules test" |
69 |
- |
70 |
-DEPEND=" |
71 |
- >=dev-libs/jansson-2.2 |
72 |
- dev-libs/libpcre |
73 |
- dev-libs/libyaml |
74 |
- net-libs/libnet:* |
75 |
- net-libs/libnfnetlink |
76 |
- dev-libs/nspr |
77 |
- dev-libs/nss |
78 |
- net-libs/libpcap |
79 |
- sys-apps/file |
80 |
- cuda? ( dev-util/nvidia-cuda-toolkit ) |
81 |
- geoip? ( dev-libs/geoip ) |
82 |
- lua? ( dev-lang/lua:* ) |
83 |
- luajit? ( dev-lang/luajit:* ) |
84 |
- nflog? ( net-libs/libnetfilter_log ) |
85 |
- nfqueue? ( net-libs/libnetfilter_queue ) |
86 |
-" |
87 |
-# #446814 |
88 |
-# prelude? ( dev-libs/libprelude ) |
89 |
-# pfring? ( sys-process/numactl net-libs/pf_ring) |
90 |
-# system-htp? ( >=net-analyzer/htp-0.5.5 ) |
91 |
-RDEPEND="${DEPEND}" |
92 |
- |
93 |
-pkg_setup() { |
94 |
- enewgroup ${PN} |
95 |
- enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}" |
96 |
-} |
97 |
- |
98 |
-src_prepare() { |
99 |
- epatch "${FILESDIR}/fortify_source-numeric.patch" |
100 |
- epatch "${FILESDIR}/magic-location.patch" |
101 |
- epatch "${FILESDIR}/json.patch" |
102 |
- |
103 |
- eautoreconf |
104 |
-} |
105 |
- |
106 |
-src_configure() { |
107 |
- local myeconfargs=( |
108 |
- "--localstatedir=/var/" \ |
109 |
- "--disable-detection" \ |
110 |
- $(use_enable af-packet) \ |
111 |
- $(use_enable nfqueue) \ |
112 |
- $(use_enable test coccinelle) \ |
113 |
- $(use_enable test unittests) \ |
114 |
- $(use_enable control-socket unix-socket) |
115 |
- ) |
116 |
- |
117 |
- if use cuda ; then |
118 |
- myeconfargs+=( $(use_enable cuda) ) |
119 |
- fi |
120 |
- if use debug ; then |
121 |
- myeconfargs+=( $(use_enable debug) ) |
122 |
- fi |
123 |
- if use geoip ; then |
124 |
- myeconfargs+=( $(use_enable geoip) ) |
125 |
- fi |
126 |
- if use hardened ; then |
127 |
- myeconfargs+=( $(use_enable hardened gccprotect) ) |
128 |
- fi |
129 |
- if use nflog ; then |
130 |
- myeconfargs+=( $(use_enable nflog) ) |
131 |
- fi |
132 |
- # not supported yet (no pfring in portage) |
133 |
-# if use pfring ; then |
134 |
-# myeconfargs+=( $(use_enable pfring) ) |
135 |
-# fi |
136 |
- # no libprelude in portage |
137 |
-# if use prelude ; then |
138 |
-# myeconfargs+=( $(use_enable prelude) ) |
139 |
-# fi |
140 |
- # htp not added into portage yet |
141 |
-# if use system-htp ; then |
142 |
-# myeconfargs+=( $(use_enable system-htp non-bundled-htp) ) |
143 |
-# fi |
144 |
- if use lua ; then |
145 |
- myeconfargs+=( $(use_enable lua) ) |
146 |
- fi |
147 |
- if use luajit ; then |
148 |
- myeconfargs+=( $(use_enable luajit) ) |
149 |
- fi |
150 |
- |
151 |
-# this should be used when pf_ring use flag support will be added |
152 |
-# LIBS+="-lrt -lnuma" |
153 |
- |
154 |
- econf LIBS="${LIBS}" ${myeconfargs[@]} |
155 |
-} |
156 |
- |
157 |
-src_install() { |
158 |
- emake DESTDIR="${D}" install |
159 |
- |
160 |
- insinto "/etc/${PN}" |
161 |
- doins {classification,reference,threshold}.config suricata.yaml |
162 |
- |
163 |
- if use rules ; then |
164 |
- insinto "/etc/${PN}/rules" |
165 |
- doins rules/*.rules |
166 |
- fi |
167 |
- |
168 |
- dodir "/var/lib/${PN}" |
169 |
- dodir "/var/log/${PN}" |
170 |
- fowners -R ${PN}: "/var/lib/${PN}" "/var/log/${PN}" "/etc/${PN}" |
171 |
- fperms 750 "/var/lib/${PN}" "/var/log/${PN}" "/etc/${PN}" |
172 |
-} |
173 |
\ No newline at end of file |
174 |
|
175 |
diff --git a/net-analyzer/suricata/suricata-2.0.11.ebuild b/net-analyzer/suricata/suricata-2.0.11.ebuild |
176 |
index 3c69998..250c663 100644 |
177 |
--- a/net-analyzer/suricata/suricata-2.0.11.ebuild |
178 |
+++ b/net-analyzer/suricata/suricata-2.0.11.ebuild |
179 |
@@ -1,4 +1,4 @@ |
180 |
-# Copyright 1999-2015 Gentoo Foundation |
181 |
+# Copyright 1999-2016 Gentoo Foundation |
182 |
# Distributed under the terms of the GNU General Public License v2 |
183 |
# $Id$ |
184 |
|
185 |
@@ -13,7 +13,7 @@ SRC_URI="http://www.openinfosecfoundation.org/download/${P}.tar.gz" |
186 |
LICENSE="GPL-2" |
187 |
SLOT="0" |
188 |
KEYWORDS="~amd64 ~x86" |
189 |
-IUSE="+af-packet control-socket cuda debug geoip hardened lua luajit nflog +nfqueue +rules test" |
190 |
+IUSE="+af-packet control-socket cuda debug +detection geoip hardened lua luajit nflog +nfqueue +rules test" |
191 |
|
192 |
DEPEND=" |
193 |
>=dev-libs/jansson-2.2 |
194 |
@@ -54,8 +54,8 @@ src_prepare() { |
195 |
src_configure() { |
196 |
local myeconfargs=( |
197 |
"--localstatedir=/var/" \ |
198 |
- "--disable-detection" \ |
199 |
$(use_enable af-packet) \ |
200 |
+ $(use_enable detection) \ |
201 |
$(use_enable nfqueue) \ |
202 |
$(use_enable test coccinelle) \ |
203 |
$(use_enable test unittests) \ |