Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
Date: Sun, 20 Feb 2022 05:51:49
Message-Id: 1645335675.854c9a80a414d213db23dc45513cb9bcd2f20271.sam@gentoo
1 commit: 854c9a80a414d213db23dc45513cb9bcd2f20271
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 05:41:15 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 05:41:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=854c9a80
7
8 net-analyzer/fail2ban: drop 0.11.2, 0.11.2-r1, 0.11.2-r2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild | 133 -----------------------
13 net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild | 134 ------------------------
14 net-analyzer/fail2ban/fail2ban-0.11.2.ebuild | 130 -----------------------
15 3 files changed, 397 deletions(-)
16
17 diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild
18 deleted file mode 100644
19 index 52bfd2a78f2a..000000000000
20 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild
21 +++ /dev/null
22 @@ -1,133 +0,0 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -PYTHON_COMPAT=( python3_{8,9} )
29 -DISTUTILS_SINGLE_IMPL=1
30 -
31 -inherit bash-completion-r1 distutils-r1 systemd tmpfiles
32 -
33 -DESCRIPTION="Scans log files and bans IPs that show malicious signs"
34 -HOMEPAGE="https://www.fail2ban.org/"
35 -if [[ ${PV} == *9999 ]] ; then
36 - EGIT_REPO_URI="https://github.com/${PN}/${PN}"
37 - inherit git-r3
38 -else
39 - SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
40 - KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 sparc x86"
41 -fi
42 -
43 -LICENSE="GPL-2"
44 -SLOT="0"
45 -IUSE="selinux systemd"
46 -
47 -RDEPEND="
48 - virtual/logger
49 - virtual/mta
50 - selinux? ( sec-policy/selinux-fail2ban )
51 - systemd? (
52 - $(python_gen_cond_dep '
53 - || (
54 - dev-python/python-systemd[${PYTHON_USEDEP}]
55 - sys-apps/systemd[python(-),${PYTHON_USEDEP}]
56 - )' 'python*' )
57 - )
58 -"
59 -
60 -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt )
61 -
62 -PATCHES=(
63 - "${FILESDIR}"/${P}-fix-tests-for-2021.patch
64 - "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch
65 - "${FILESDIR}"/${P}-fix-2to3-usage.patch
66 - "${FILESDIR}"/${P}-fix-systemd-test.patch
67 -)
68 -
69 -python_prepare_all() {
70 - # Replace /var/run with /run, but not in the top source directory
71 - find . -mindepth 2 -type f -exec \
72 - sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die
73 -
74 - sed -i -e 's|runscript|openrc-run|g' files/gentoo-initd || die
75 -
76 - distutils-r1_python_prepare_all
77 -}
78 -
79 -python_compile() {
80 - ./fail2ban-2to3 || die
81 - distutils-r1_python_compile
82 -}
83 -
84 -python_test() {
85 - bin/fail2ban-testcases \
86 - --no-network \
87 - --no-gamin \
88 - --verbosity=4 || die "Tests failed with ${EPYTHON}"
89 -}
90 -
91 -python_install_all() {
92 - distutils-r1_python_install_all
93 -
94 - rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die
95 -
96 - # Not ${FILESDIR}
97 - newconfd files/gentoo-confd ${PN}
98 - newinitd files/gentoo-initd ${PN}
99 -
100 - sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}"/${PN}.service || die
101 - systemd_dounit "${T}"/${PN}.service
102 - dotmpfiles files/${PN}-tmpfiles.conf
103 -
104 - doman man/*.{1,5}
105 -
106 - # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d.
107 - # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675
108 - insinto /etc/logrotate.d
109 - newins files/${PN}-logrotate ${PN}
110 -
111 - keepdir /var/lib/${PN}
112 -
113 - newbashcomp files/bash-completion ${PN}-client
114 - bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex
115 -}
116 -
117 -pkg_preinst() {
118 - has_version "<${CATEGORY}/${PN}-0.7"
119 - previous_less_than_0_7=$?
120 -}
121 -
122 -pkg_postinst() {
123 - tmpfiles_process ${PN}-tmpfiles.conf
124 -
125 - if [[ ${previous_less_than_0_7} = 0 ]] ; then
126 - elog
127 - elog "Configuration files are now in /etc/fail2ban/"
128 - elog "You probably have to manually update your configuration"
129 - elog "files before restarting Fail2Ban!"
130 - elog
131 - elog "Fail2Ban is not installed under /usr/lib anymore. The"
132 - elog "new location is under /usr/share."
133 - elog
134 - elog "You are upgrading from version 0.6.x, please see:"
135 - elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8"
136 - fi
137 -
138 - if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin ; then
139 - elog "For most jail.conf configurations, it is recommended you install either"
140 - elog "dev-python/pyinotify or app-admin/gamin (in order of preference)"
141 - elog "to control how log file modifications are detected"
142 - fi
143 -
144 - if ! has_version dev-lang/python[sqlite] ; then
145 - elog "If you want to use ${PN}'s persistent database, then reinstall"
146 - elog "dev-lang/python with USE=sqlite. If you do not use the"
147 - elog "persistent database feature, then you should set"
148 - elog "dbfile = :memory: in fail2ban.conf accordingly."
149 - fi
150 -
151 - if has_version sys-apps/systemd[-python] ; then
152 - elog "If you want to track logins through sys-apps/systemd's"
153 - elog "journal backend, then reinstall sys-apps/systemd with USE=python"
154 - fi
155 -}
156
157 diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild
158 deleted file mode 100644
159 index a8fa65da7679..000000000000
160 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild
161 +++ /dev/null
162 @@ -1,134 +0,0 @@
163 -# Copyright 1999-2022 Gentoo Authors
164 -# Distributed under the terms of the GNU General Public License v2
165 -
166 -EAPI=7
167 -
168 -PYTHON_COMPAT=( python3_{8..10} )
169 -DISTUTILS_SINGLE_IMPL=1
170 -
171 -inherit bash-completion-r1 distutils-r1 systemd tmpfiles
172 -
173 -DESCRIPTION="Scans log files and bans IPs that show malicious signs"
174 -HOMEPAGE="https://www.fail2ban.org/"
175 -if [[ ${PV} == *9999 ]] ; then
176 - EGIT_REPO_URI="https://github.com/${PN}/${PN}"
177 - inherit git-r3
178 -else
179 - SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
180 - KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ppc ~ppc64 ~sparc x86"
181 -fi
182 -
183 -LICENSE="GPL-2"
184 -SLOT="0"
185 -IUSE="selinux systemd"
186 -
187 -RDEPEND="
188 - virtual/logger
189 - virtual/mta
190 - selinux? ( sec-policy/selinux-fail2ban )
191 - systemd? (
192 - $(python_gen_cond_dep '
193 - || (
194 - dev-python/python-systemd[${PYTHON_USEDEP}]
195 - sys-apps/systemd[python(-),${PYTHON_USEDEP}]
196 - )' 'python*' )
197 - )
198 -"
199 -
200 -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt )
201 -
202 -PATCHES=(
203 - "${FILESDIR}"/${P}-fix-tests-for-2021.patch
204 - "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch
205 - "${FILESDIR}"/${P}-fix-2to3-usage.patch
206 - "${FILESDIR}"/${P}-fix-systemd-test.patch
207 - "${FILESDIR}"/${P}-fix-py3.10-collections.patch
208 -)
209 -
210 -python_prepare_all() {
211 - # Replace /var/run with /run, but not in the top source directory
212 - find . -mindepth 2 -type f -exec \
213 - sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die
214 -
215 - sed -i -e 's|runscript|openrc-run|g' files/gentoo-initd || die
216 -
217 - distutils-r1_python_prepare_all
218 -}
219 -
220 -python_compile() {
221 - ./fail2ban-2to3 || die
222 - distutils-r1_python_compile
223 -}
224 -
225 -python_test() {
226 - bin/fail2ban-testcases \
227 - --no-network \
228 - --no-gamin \
229 - --verbosity=4 || die "Tests failed with ${EPYTHON}"
230 -}
231 -
232 -python_install_all() {
233 - distutils-r1_python_install_all
234 -
235 - rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die
236 -
237 - # Not ${FILESDIR}
238 - newconfd files/gentoo-confd ${PN}
239 - newinitd files/gentoo-initd ${PN}
240 -
241 - sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}"/${PN}.service || die
242 - systemd_dounit "${T}"/${PN}.service
243 - dotmpfiles files/${PN}-tmpfiles.conf
244 -
245 - doman man/*.{1,5}
246 -
247 - # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d.
248 - # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675
249 - insinto /etc/logrotate.d
250 - newins files/${PN}-logrotate ${PN}
251 -
252 - keepdir /var/lib/${PN}
253 -
254 - newbashcomp files/bash-completion ${PN}-client
255 - bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex
256 -}
257 -
258 -pkg_preinst() {
259 - has_version "<${CATEGORY}/${PN}-0.7"
260 - previous_less_than_0_7=$?
261 -}
262 -
263 -pkg_postinst() {
264 - tmpfiles_process ${PN}-tmpfiles.conf
265 -
266 - if [[ ${previous_less_than_0_7} = 0 ]] ; then
267 - elog
268 - elog "Configuration files are now in /etc/fail2ban/"
269 - elog "You probably have to manually update your configuration"
270 - elog "files before restarting Fail2Ban!"
271 - elog
272 - elog "Fail2Ban is not installed under /usr/lib anymore. The"
273 - elog "new location is under /usr/share."
274 - elog
275 - elog "You are upgrading from version 0.6.x, please see:"
276 - elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8"
277 - fi
278 -
279 - if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin ; then
280 - elog "For most jail.conf configurations, it is recommended you install either"
281 - elog "dev-python/pyinotify or app-admin/gamin (in order of preference)"
282 - elog "to control how log file modifications are detected"
283 - fi
284 -
285 - if ! has_version dev-lang/python[sqlite] ; then
286 - elog "If you want to use ${PN}'s persistent database, then reinstall"
287 - elog "dev-lang/python with USE=sqlite. If you do not use the"
288 - elog "persistent database feature, then you should set"
289 - elog "dbfile = :memory: in fail2ban.conf accordingly."
290 - fi
291 -
292 - if has_version sys-apps/systemd[-python] ; then
293 - elog "If you want to track logins through sys-apps/systemd's"
294 - elog "journal backend, then reinstall sys-apps/systemd with USE=python"
295 - fi
296 -}
297
298 diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild
299 deleted file mode 100644
300 index 967284198c14..000000000000
301 --- a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild
302 +++ /dev/null
303 @@ -1,130 +0,0 @@
304 -# Copyright 1999-2021 Gentoo Authors
305 -# Distributed under the terms of the GNU General Public License v2
306 -
307 -EAPI=7
308 -
309 -PYTHON_COMPAT=( python3_{7,8,9} )
310 -DISTUTILS_SINGLE_IMPL=1
311 -
312 -inherit bash-completion-r1 distutils-r1 systemd tmpfiles
313 -
314 -DESCRIPTION="Scans log files and bans IPs that show malicious signs"
315 -HOMEPAGE="https://www.fail2ban.org/"
316 -if [[ ${PV} == *9999 ]] ; then
317 - EGIT_REPO_URI="https://github.com/${PN}/${PN}"
318 - inherit git-r3
319 -else
320 - SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
321 - KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 sparc x86"
322 -fi
323 -
324 -LICENSE="GPL-2"
325 -SLOT="0"
326 -IUSE="selinux systemd"
327 -
328 -RDEPEND="
329 - virtual/logger
330 - virtual/mta
331 - selinux? ( sec-policy/selinux-fail2ban )
332 - systemd? (
333 - $(python_gen_cond_dep '
334 - || (
335 - dev-python/python-systemd[${PYTHON_USEDEP}]
336 - sys-apps/systemd[python(-),${PYTHON_USEDEP}]
337 - )' 'python*' )
338 - )
339 -"
340 -
341 -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt )
342 -
343 -PATCHES=(
344 - "${FILESDIR}"/${P}-fix-tests-for-2021.patch
345 -)
346 -
347 -python_prepare_all() {
348 - # Replace /var/run with /run, but not in the top source directory
349 - find . -mindepth 2 -type f -exec \
350 - sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die
351 -
352 - sed -i -e 's|runscript|openrc-run|g' files/gentoo-initd || die
353 -
354 - distutils-r1_python_prepare_all
355 -}
356 -
357 -python_compile() {
358 - ./fail2ban-2to3 || die
359 - distutils-r1_python_compile
360 -}
361 -
362 -python_test() {
363 - bin/fail2ban-testcases \
364 - --no-network \
365 - --no-gamin \
366 - --verbosity=4 || die "Tests failed with ${EPYTHON}"
367 -}
368 -
369 -python_install_all() {
370 - distutils-r1_python_install_all
371 -
372 - rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die
373 -
374 - # Not ${FILESDIR}
375 - newconfd files/gentoo-confd ${PN}
376 - newinitd files/gentoo-initd ${PN}
377 -
378 - sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}"/${PN}.service || die
379 - systemd_dounit "${T}"/${PN}.service
380 - dotmpfiles files/${PN}-tmpfiles.conf
381 -
382 - doman man/*.{1,5}
383 -
384 - # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d.
385 - # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675
386 - insinto /etc/logrotate.d
387 - newins files/${PN}-logrotate ${PN}
388 -
389 - keepdir /var/lib/${PN}
390 -
391 - newbashcomp files/bash-completion ${PN}-client
392 - bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex
393 -}
394 -
395 -pkg_preinst() {
396 - has_version "<${CATEGORY}/${PN}-0.7"
397 - previous_less_than_0_7=$?
398 -}
399 -
400 -pkg_postinst() {
401 - tmpfiles_process ${PN}-tmpfiles.conf
402 -
403 - if [[ ${previous_less_than_0_7} = 0 ]] ; then
404 - elog
405 - elog "Configuration files are now in /etc/fail2ban/"
406 - elog "You probably have to manually update your configuration"
407 - elog "files before restarting Fail2Ban!"
408 - elog
409 - elog "Fail2Ban is not installed under /usr/lib anymore. The"
410 - elog "new location is under /usr/share."
411 - elog
412 - elog "You are upgrading from version 0.6.x, please see:"
413 - elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8"
414 - fi
415 -
416 - if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin ; then
417 - elog "For most jail.conf configurations, it is recommended you install either"
418 - elog "dev-python/pyinotify or app-admin/gamin (in order of preference)"
419 - elog "to control how log file modifications are detected"
420 - fi
421 -
422 - if ! has_version dev-lang/python[sqlite] ; then
423 - elog "If you want to use ${PN}'s persistent database, then reinstall"
424 - elog "dev-lang/python with USE=sqlite. If you do not use the"
425 - elog "persistent database feature, then you should set"
426 - elog "dbfile = :memory: in fail2ban.conf accordingly."
427 - fi
428 -
429 - if has_version sys-apps/systemd[-python] ; then
430 - elog "If you want to track logins through sys-apps/systemd's"
431 - elog "journal backend, then reinstall sys-apps/systemd with USE=python"
432 - fi
433 -}