1 |
commit: 3af306d8750b3693dd04e3bed2c6a40a5258718a |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 23 21:10:21 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 23 21:10:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3af306d8 |
7 |
|
8 |
net-analyzer/suricata: remove old |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/suricata/Manifest | 1 - |
13 |
net-analyzer/suricata/suricata-5.0.1-r1.ebuild | 201 ------------------------- |
14 |
2 files changed, 202 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/suricata/Manifest b/net-analyzer/suricata/Manifest |
17 |
index 15bad1cad76..0d9c0caa06c 100644 |
18 |
--- a/net-analyzer/suricata/Manifest |
19 |
+++ b/net-analyzer/suricata/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST suricata-5.0.1.tar.gz 23721536 BLAKE2B 529837e8e4d6c33d2093df8208bf03519e0d60deef92eadf9d0a44b7416eae2f900b2f72349815acb86d9bdd9d4253bbc5d7c4c1a34157f544982b0788291624 SHA512 db0797a7992abf0ddf170cb603fdac06b0ff92278bb91343860bccbbe029ea0e83131dfb9805ca44bcbbe3925502119259e350a17e94209b21d1f8b610d965a6 |
22 |
DIST suricata-5.0.2.tar.gz 23735393 BLAKE2B 3fd9bac597cda59cbeb3d902eccf15e4b873b56b44967a1cad9e99e041f06778ffd4f8ea1378f0df3fa84f2cabd6ac13eda7a2cb233e80a75c27bf7c4e5f7cd0 SHA512 e288f6aee9f8fafb8fa811d2c83a89a29434edc24e05542e172852dc139b9d0bb474d35ddbdc4723df04e7a8b4e70e181c822a4fb1315ba2879c3c7a5c16ef16 |
23 |
|
24 |
diff --git a/net-analyzer/suricata/suricata-5.0.1-r1.ebuild b/net-analyzer/suricata/suricata-5.0.1-r1.ebuild |
25 |
deleted file mode 100644 |
26 |
index e74f32fee51..00000000000 |
27 |
--- a/net-analyzer/suricata/suricata-5.0.1-r1.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,201 +0,0 @@ |
30 |
-# Copyright 1999-2020 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=7 |
34 |
- |
35 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
36 |
- |
37 |
-inherit autotools flag-o-matic linux-info python-single-r1 systemd |
38 |
- |
39 |
-DESCRIPTION="High performance Network IDS, IPS and Network Security Monitoring engine" |
40 |
-HOMEPAGE="https://suricata-ids.org/" |
41 |
-SRC_URI="https://www.openinfosecfoundation.org/download/${P}.tar.gz" |
42 |
- |
43 |
-LICENSE="GPL-2" |
44 |
-SLOT="0" |
45 |
-KEYWORDS="~amd64 ~x86" |
46 |
-IUSE="+af-packet bpf control-socket cuda debug +detection geoip hardened logrotate lua luajit lz4 nflog +nfqueue redis systemd test" |
47 |
- |
48 |
-RESTRICT="!test? ( test )" |
49 |
- |
50 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
51 |
- ?? ( lua luajit ) |
52 |
- bpf? ( af-packet )" |
53 |
- |
54 |
-CDEPEND="acct-group/suricata |
55 |
- acct-user/suricata |
56 |
- dev-libs/jansson |
57 |
- dev-libs/libpcre |
58 |
- dev-libs/libyaml |
59 |
- net-libs/libnet:* |
60 |
- net-libs/libnfnetlink |
61 |
- dev-libs/nspr |
62 |
- dev-libs/nss |
63 |
- $(python_gen_cond_dep ' |
64 |
- dev-python/pyyaml[${PYTHON_MULTI_USEDEP}] |
65 |
- ') |
66 |
- >=net-libs/libhtp-0.5.32 |
67 |
- net-libs/libpcap |
68 |
- sys-apps/file |
69 |
- sys-libs/libcap-ng |
70 |
- bpf? ( >=dev-libs/libbpf-0.0.6 ) |
71 |
- cuda? ( dev-util/nvidia-cuda-toolkit ) |
72 |
- geoip? ( dev-libs/libmaxminddb ) |
73 |
- logrotate? ( app-admin/logrotate ) |
74 |
- lua? ( dev-lang/lua:* ) |
75 |
- luajit? ( dev-lang/luajit:* ) |
76 |
- lz4? ( app-arch/lz4 ) |
77 |
- nflog? ( net-libs/libnetfilter_log ) |
78 |
- nfqueue? ( net-libs/libnetfilter_queue ) |
79 |
- redis? ( dev-libs/hiredis )" |
80 |
-DEPEND="${CDEPEND} |
81 |
- >=sys-devel/autoconf-2.69-r5 |
82 |
- virtual/rust" |
83 |
-RDEPEND="${CDEPEND} |
84 |
- ${PYTHON_DEPS}" |
85 |
- |
86 |
-PATCHES=( |
87 |
- "${FILESDIR}/${PN}-5.0.1_configure-no-lz4-automagic.patch" |
88 |
- "${FILESDIR}/${PN}-5.0.1_default-config.patch" |
89 |
-) |
90 |
- |
91 |
-pkg_pretend() { |
92 |
- if use bpf && use kernel_linux; then |
93 |
- if kernel_is -lt 4 15; then |
94 |
- ewarn "Kernel 4.15 or newer is necessary to use all XDP features like the CPU redirect map" |
95 |
- fi |
96 |
- |
97 |
- CONFIG_CHECK="~XDP_SOCKETS" |
98 |
- ERROR_XDP_SOCKETS="CONFIG_XDP_SOCKETS is not set, making it impossible for Suricata will to load XDP programs. " |
99 |
- ERROR_XDP_SOCKETS+="Other eBPF features should work normally." |
100 |
- check_extra_config |
101 |
- fi |
102 |
-} |
103 |
- |
104 |
-src_prepare() { |
105 |
- # Bug #707204 |
106 |
- append-cflags $(test-flags-CC -fcommon) |
107 |
- |
108 |
- default |
109 |
- sed -ie 's/docdir =.*/docdir = ${datarootdir}\/doc\/'${PF}'\//' "${S}/doc/Makefile.am" |
110 |
- eautoreconf |
111 |
-} |
112 |
- |
113 |
-src_configure() { |
114 |
- local myeconfargs=( |
115 |
- "--localstatedir=/var" \ |
116 |
- "--runstatedir=/run" \ |
117 |
- "--enable-non-bundled-htp" \ |
118 |
- "--enable-gccmarch-native=no" \ |
119 |
- "--enable-python" \ |
120 |
- $(use_enable af-packet) \ |
121 |
- $(use_enable bpf ebpf) \ |
122 |
- $(use_enable control-socket unix-socket) \ |
123 |
- $(use_enable cuda) \ |
124 |
- $(use_enable detection) \ |
125 |
- $(use_enable geoip) \ |
126 |
- $(use_enable hardened gccprotect) \ |
127 |
- $(use_enable hardened pie) \ |
128 |
- $(use_enable lua) \ |
129 |
- $(use_enable luajit) \ |
130 |
- $(use_enable lz4) \ |
131 |
- $(use_enable nflog) \ |
132 |
- $(use_enable nfqueue) \ |
133 |
- $(use_enable redis hiredis) \ |
134 |
- $(use_enable test unittests) \ |
135 |
- "--disable-coccinelle" |
136 |
- ) |
137 |
- |
138 |
- if use debug; then |
139 |
- myeconfargs+=( $(use_enable debug) ) |
140 |
- # so we can get a backtrace according to "reporting bugs" on upstream web site |
141 |
- CFLAGS="-ggdb -O0" econf ${myeconfargs[@]} |
142 |
- else |
143 |
- econf ${myeconfargs[@]} |
144 |
- fi |
145 |
-} |
146 |
- |
147 |
-src_install() { |
148 |
- emake DESTDIR="${D}" install |
149 |
- python_optimize |
150 |
- |
151 |
- if use bpf; then |
152 |
- rm -f ebpf/Makefile.{am,in} |
153 |
- dodoc -r ebpf/ |
154 |
- keepdir /usr/libexec/suricata/ebpf |
155 |
- fi |
156 |
- |
157 |
- insinto "/etc/${PN}" |
158 |
- doins etc/{classification,reference}.config threshold.config suricata.yaml |
159 |
- |
160 |
- keepdir "/var/lib/${PN}/rules" "/var/lib/${PN}/update" |
161 |
- keepdir "/var/log/${PN}" |
162 |
- |
163 |
- fowners -R ${PN}: "/var/lib/${PN}" "/var/log/${PN}" "/etc/${PN}" |
164 |
- fperms 750 "/var/lib/${PN}" "/var/log/${PN}" "/etc/${PN}" |
165 |
- fperms 2750 "/var/lib/${PN}/rules" "/var/lib/${PN}/update" |
166 |
- |
167 |
- newinitd "${FILESDIR}/${PN}-5.0.1-init" ${PN} |
168 |
- newconfd "${FILESDIR}/${PN}-5.0.1-conf" ${PN} |
169 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
170 |
- systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf |
171 |
- |
172 |
- if use logrotate; then |
173 |
- insopts -m0644 |
174 |
- insinto /etc/logrotate.d |
175 |
- newins etc/${PN}.logrotate ${PN} |
176 |
- fi |
177 |
-} |
178 |
- |
179 |
-pkg_postinst() { |
180 |
- elog "" |
181 |
- if use systemd; then |
182 |
- elog "Suricata requires either the mode of operation (e.g. --af-packet) or the interface to listen on (e.g. -i eth0)" |
183 |
- elog "to be specified on the command line. The provided systemd unit launches Suricata in af-packet mode and relies" |
184 |
- elog "on file configuration to specify interfaces, should you prefer to run it differently you will have to customise" |
185 |
- elog "said unit. The simplest way of doing it is to override the Environment=OPTIONS='...' line using a .conf file" |
186 |
- elog "placed in the directory ${EPREFIX}/etc/systemd/system/suricata.service.d/ ." |
187 |
- elog "For details, see the section on drop-in directories in systemd.unit(5)." |
188 |
- else |
189 |
- elog "The ${PN} init script expects to find the path to the configuration" |
190 |
- elog "file as well as extra options in /etc/conf.d." |
191 |
- elog "" |
192 |
- elog "To create more than one ${PN} service, simply create a new .yaml file for it" |
193 |
- elog "then create a symlink to the init script from a link called" |
194 |
- elog "${PN}.foo - like so" |
195 |
- elog " cd /etc/${PN}" |
196 |
- elog " ${EDITOR##*/} suricata-foo.yaml" |
197 |
- elog " cd /etc/init.d" |
198 |
- elog " ln -s ${PN} ${PN}.foo" |
199 |
- elog "Then edit /etc/conf.d/${PN} and make sure you specify sensible options for foo." |
200 |
- elog "" |
201 |
- elog "You can create as many ${PN}.foo* services as you wish." |
202 |
- fi |
203 |
- |
204 |
- if use bpf; then |
205 |
- elog "" |
206 |
- elog "eBPF/XDP files must be compiled (using sys-devel/clang[llvm_targets_BPF]) before use" |
207 |
- elog "because their configuration is hard-coded. You can find the default ones in" |
208 |
- elog " ${EPREFIX}/usr/share/doc/${PF}/ebpf" |
209 |
- elog "and the common location for eBPF bytecode is" |
210 |
- elog " ${EPREFIX}/usr/libexec/${PN}" |
211 |
- elog "For more information, see https://${PN}.readthedocs.io/en/${P}/capture-hardware/ebpf-xdp.html" |
212 |
- fi |
213 |
- |
214 |
- if use debug; then |
215 |
- elog "" |
216 |
- elog "You have enabled the debug USE flag. Please read this link to report bugs upstream:" |
217 |
- elog "https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Reporting_Bugs" |
218 |
- elog "You need to also ensure the FEATURES variable in make.conf contains the" |
219 |
- elog "'nostrip' option to produce useful core dumps or back traces." |
220 |
- fi |
221 |
- |
222 |
- elog "" |
223 |
- elog "To download and install an initial set of rules, run:" |
224 |
- elog " emerge --config =${CATEGORY}/${PF}" |
225 |
- elog "" |
226 |
-} |
227 |
- |
228 |
-pkg_config() { |
229 |
- suricata-update |
230 |
-} |