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