Gentoo Archives: gentoo-commits

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