1 |
commit: d98d97359da37602fb63290fcd14c78351150f1f |
2 |
Author: Slawomir Lis <slis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 29 06:44:50 2016 +0000 |
4 |
Commit: Slawek Lis <slis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 29 06:44:50 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d98d9735 |
7 |
|
8 |
version bump, metadata update |
9 |
|
10 |
Package-Manager: portage-2.3.0_rc1 |
11 |
|
12 |
net-analyzer/suricata/Manifest | 1 + |
13 |
net-analyzer/suricata/metadata.xml | 5 +- |
14 |
net-analyzer/suricata/suricata-3.1.ebuild | 115 ++++++++++++++++++++++++++++++ |
15 |
3 files changed, 119 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/suricata/Manifest b/net-analyzer/suricata/Manifest |
18 |
index d82d007..1d5b46a 100644 |
19 |
--- a/net-analyzer/suricata/Manifest |
20 |
+++ b/net-analyzer/suricata/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST suricata-2.0.11.tar.gz 3091124 SHA256 c607f1e18e5636830f42a83f7c67e1466f07db82853f3a9dba4ab8c6c3bc656e SHA512 659e893fef3cdcca8440f2af7596d5cc58b142d3350b9ea5ba57d855c6759a00adafeb15a1dfe91dd55eca1437487eb4e842b4e2913d12417f0b906ca3d54ec9 WHIRLPOOL 5cfa55abd90284a0a3441853af9db18075a23fa5661d89448b409b8fdd1031ad348d76d455b7dfe7b2688e69633f5bbb65dc060cc2426af017ab1bcb824c9ac5 |
23 |
DIST suricata-3.0.1.tar.gz 3315637 SHA256 74c685f8da51b3f038a7b8185bdbed274aca25daf64ac7ea01eea60636727f26 SHA512 cd10f5b19dd7b6ccbed668263b54d93738842191e71391b040aa7fc2049ac597feb38cd333f07b15d30ebeaf778f6abe18b72215e609891608dca094531c7fd8 WHIRLPOOL a1f6c8ee760cac9e3daa3358e89d30b4a24441fb975214ae2fe165fcb697b4292e035007323041febdc0d8f09b16666515aba76f60f1e437d865193db3deb25d |
24 |
+DIST suricata-3.1.tar.gz 3327181 SHA256 a05aa534166495a4d9ea6104a936bc8edb49376aeb3ba0b1b2a4d9687d016669 SHA512 64483951136f064ed3ad0e01276ac633e53aed511d5517b67d6ab2b81e7c2af436dcece7f8a2576c741cd79d19176da622775ff580f2f0cf747fd134ddcfd352 WHIRLPOOL 39a79626ab496789676a39f62cf2c6cfdfc592d0d04add63f711d7487364fcdd54be63d73b0529b39a5ef9aa30dadaf5ae5af57ff51cf65d9ecfd2ea5f2451ff |
25 |
|
26 |
diff --git a/net-analyzer/suricata/metadata.xml b/net-analyzer/suricata/metadata.xml |
27 |
index 0f80bed..e538ae1 100644 |
28 |
--- a/net-analyzer/suricata/metadata.xml |
29 |
+++ b/net-analyzer/suricata/metadata.xml |
30 |
@@ -11,7 +11,8 @@ |
31 |
<flag name="detection">Enable detection modules</flag> |
32 |
<flag name="luajit">Enable Luajit support</flag> |
33 |
<flag name="nflog">Enable libnetfilter_log support</flag> |
34 |
- <flag name="nfqueue">Enable AF_PACKET support</flag> |
35 |
- <flag name="rules">Enable AF_PACKET support</flag> |
36 |
+ <flag name="nfqueue">Enable NFQUEUE support for inline IDP</flag> |
37 |
+ <flag name="redis">Enable Redis support</flag> |
38 |
+ <flag name="rules">Install default ruleset</flag> |
39 |
</use> |
40 |
</pkgmetadata> |
41 |
|
42 |
diff --git a/net-analyzer/suricata/suricata-3.1.ebuild b/net-analyzer/suricata/suricata-3.1.ebuild |
43 |
new file mode 100644 |
44 |
index 0000000..18a981c |
45 |
--- /dev/null |
46 |
+++ b/net-analyzer/suricata/suricata-3.1.ebuild |
47 |
@@ -0,0 +1,115 @@ |
48 |
+# Copyright 1999-2016 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Id$ |
51 |
+ |
52 |
+EAPI=5 |
53 |
+ |
54 |
+inherit autotools eutils user |
55 |
+ |
56 |
+DESCRIPTION="High performance Network IDS, IPS and Network Security Monitoring engine" |
57 |
+HOMEPAGE="http://suricata-ids.org/" |
58 |
+SRC_URI="http://www.openinfosecfoundation.org/download/${P}.tar.gz" |
59 |
+ |
60 |
+LICENSE="GPL-2" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~x86" |
63 |
+IUSE="+af-packet control-socket cuda debug +detection geoip hardened lua luajit nflog +nfqueue redis +rules test" |
64 |
+ |
65 |
+DEPEND=" |
66 |
+ >=dev-libs/jansson-2.2 |
67 |
+ dev-libs/libpcre |
68 |
+ dev-libs/libyaml |
69 |
+ net-libs/libnet:* |
70 |
+ net-libs/libnfnetlink |
71 |
+ dev-libs/nspr |
72 |
+ dev-libs/nss |
73 |
+ >=net-libs/libhtp-0.5.18 |
74 |
+ net-libs/libpcap |
75 |
+ sys-apps/file |
76 |
+ cuda? ( dev-util/nvidia-cuda-toolkit ) |
77 |
+ geoip? ( dev-libs/geoip ) |
78 |
+ lua? ( dev-lang/lua:* ) |
79 |
+ luajit? ( dev-lang/luajit:* ) |
80 |
+ nflog? ( net-libs/libnetfilter_log ) |
81 |
+ nfqueue? ( net-libs/libnetfilter_queue ) |
82 |
+ redis? ( dev-libs/hiredis ) |
83 |
+" |
84 |
+# #446814 |
85 |
+# prelude? ( dev-libs/libprelude ) |
86 |
+# pfring? ( sys-process/numactl net-libs/pf_ring) |
87 |
+RDEPEND="${DEPEND}" |
88 |
+ |
89 |
+pkg_setup() { |
90 |
+ enewgroup ${PN} |
91 |
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}" |
92 |
+} |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ eautoreconf |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ local myeconfargs=( |
100 |
+ "--localstatedir=/var/" \ |
101 |
+ "--enable-non-bundled-htp" \ |
102 |
+ $(use_enable af-packet) \ |
103 |
+ $(use_enable detection) \ |
104 |
+ $(use_enable nfqueue) \ |
105 |
+ $(use_enable redis hiredis) \ |
106 |
+ $(use_enable test coccinelle) \ |
107 |
+ $(use_enable test unittests) \ |
108 |
+ $(use_enable control-socket unix-socket) |
109 |
+ ) |
110 |
+ |
111 |
+ if use cuda ; then |
112 |
+ myeconfargs+=( $(use_enable cuda) ) |
113 |
+ fi |
114 |
+ if use debug ; then |
115 |
+ myeconfargs+=( $(use_enable debug) ) |
116 |
+ fi |
117 |
+ if use geoip ; then |
118 |
+ myeconfargs+=( $(use_enable geoip) ) |
119 |
+ fi |
120 |
+ if use hardened ; then |
121 |
+ myeconfargs+=( $(use_enable hardened gccprotect) ) |
122 |
+ fi |
123 |
+ if use nflog ; then |
124 |
+ myeconfargs+=( $(use_enable nflog) ) |
125 |
+ fi |
126 |
+ # not supported yet (no pfring in portage) |
127 |
+# if use pfring ; then |
128 |
+# myeconfargs+=( $(use_enable pfring) ) |
129 |
+# fi |
130 |
+ # no libprelude in portage |
131 |
+# if use prelude ; then |
132 |
+# myeconfargs+=( $(use_enable prelude) ) |
133 |
+# fi |
134 |
+ if use lua ; then |
135 |
+ myeconfargs+=( $(use_enable lua) ) |
136 |
+ fi |
137 |
+ if use luajit ; then |
138 |
+ myeconfargs+=( $(use_enable luajit) ) |
139 |
+ fi |
140 |
+ |
141 |
+# this should be used when pf_ring use flag support will be added |
142 |
+# LIBS+="-lrt -lnuma" |
143 |
+ |
144 |
+ econf LIBS="${LIBS}" ${myeconfargs[@]} |
145 |
+} |
146 |
+ |
147 |
+src_install() { |
148 |
+ emake DESTDIR="${D}" install |
149 |
+ |
150 |
+ insinto "/etc/${PN}" |
151 |
+ doins {classification,reference,threshold}.config suricata.yaml |
152 |
+ |
153 |
+ if use rules ; then |
154 |
+ insinto "/etc/${PN}/rules" |
155 |
+ doins rules/*.rules |
156 |
+ fi |
157 |
+ |
158 |
+ dodir "/var/lib/${PN}" |
159 |
+ dodir "/var/log/${PN}" |
160 |
+ fowners -R ${PN}: "/var/lib/${PN}" "/var/log/${PN}" "/etc/${PN}" |
161 |
+ fperms 750 "/var/lib/${PN}" "/var/log/${PN}" "/etc/${PN}" |
162 |
+} |