1 |
commit: f042e7d532ed22af57c7734fb02886e357bbe049 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 23:40:36 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 23:40:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f042e7d5 |
7 |
|
8 |
net-analyzer/fail2ban: cleanup old |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/fail2ban/Manifest | 1 - |
14 |
net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 109 ------------------------ |
15 |
2 files changed, 110 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest |
18 |
index 26cff752e05..544366b395d 100644 |
19 |
--- a/net-analyzer/fail2ban/Manifest |
20 |
+++ b/net-analyzer/fail2ban/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST fail2ban-0.11.1.tar.gz 538660 BLAKE2B c88765ac3f49c19e0570248891814c647f2c3515290982de21c7b6c377508189fa53182fca84d62f61b231e250395992e8cf06cc61394dd41150f02d8a254f8b SHA512 019b088aa6375f98742ed101ef6f65adabca3324444d71d5b8597a8d1d22fa76b9f503660f0498643fe24a3b8e4368de916072a1ab77b8e2ea3eda41c3e0c8c6 |
23 |
DIST fail2ban-0.11.2.tar.gz 559552 BLAKE2B 0c61c1d5f6eb23d585533fbb84e69343cb305df188537a97002489318292c6056447c4c221c9d4d4cde6cca52f0c2fb877b597957f703e4d6707801a646e52b0 SHA512 46b27abd947b00ea64106dbac563ef8afef38eec86684024d47d9a0e8c1969ff864ad6df7f4f8de2aa3eb1af6d769fb6796592d9f0e35521d5f95f17b8cade97 |
24 |
|
25 |
diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild |
26 |
deleted file mode 100644 |
27 |
index 55969ac3638..00000000000 |
28 |
--- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,109 +0,0 @@ |
31 |
-# Copyright 1999-2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
36 |
-DISTUTILS_SINGLE_IMPL=1 |
37 |
- |
38 |
-inherit bash-completion-r1 distutils-r1 systemd |
39 |
- |
40 |
-DESCRIPTION="scans log files and bans IPs that show malicious signs" |
41 |
-HOMEPAGE="https://www.fail2ban.org/" |
42 |
-SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
- |
44 |
-LICENSE="GPL-2" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ppc ppc64 sparc x86" |
47 |
-IUSE="selinux systemd" |
48 |
- |
49 |
-RDEPEND=" |
50 |
- virtual/logger |
51 |
- virtual/mta |
52 |
- selinux? ( sec-policy/selinux-fail2ban ) |
53 |
- systemd? ( $(python_gen_cond_dep '|| ( |
54 |
- dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] |
55 |
- sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] |
56 |
- )' 'python*' ) ) |
57 |
-" |
58 |
- |
59 |
-RESTRICT="test" |
60 |
-DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) |
61 |
- |
62 |
-python_prepare_all() { |
63 |
- default |
64 |
- |
65 |
- # Replace /var/run with /run, but not in the top source directory |
66 |
- find . -mindepth 2 -type f -exec \ |
67 |
- sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die |
68 |
- |
69 |
- sed -i -e 's|runscript|openrc-run|g' files/gentoo-initd || die |
70 |
- |
71 |
- distutils-r1_python_prepare_all |
72 |
-} |
73 |
- |
74 |
-python_compile() { |
75 |
- ./fail2ban-2to3 || die |
76 |
- distutils-r1_python_compile |
77 |
-} |
78 |
- |
79 |
-python_install_all() { |
80 |
- distutils-r1_python_install_all |
81 |
- |
82 |
- rm -rf "${D}"/usr/share/doc/${PN} "${D}"/run || die |
83 |
- |
84 |
- # not FILESDIR |
85 |
- newconfd files/gentoo-confd ${PN} |
86 |
- newinitd files/gentoo-initd ${PN} |
87 |
- sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}/${PN}.service" || die |
88 |
- systemd_dounit "${T}/${PN}.service" |
89 |
- systemd_dotmpfilesd files/${PN}-tmpfiles.conf |
90 |
- doman man/*.{1,5} |
91 |
- |
92 |
- # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. |
93 |
- # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675 |
94 |
- insinto /etc/logrotate.d |
95 |
- newins files/${PN}-logrotate ${PN} |
96 |
- |
97 |
- keepdir /var/lib/${PN} |
98 |
- |
99 |
- newbashcomp files/bash-completion ${PN}-client |
100 |
- bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex |
101 |
-} |
102 |
- |
103 |
-pkg_preinst() { |
104 |
- has_version "<${CATEGORY}/${PN}-0.7" |
105 |
- previous_less_than_0_7=$? |
106 |
-} |
107 |
- |
108 |
-pkg_postinst() { |
109 |
- if [[ $previous_less_than_0_7 = 0 ]] ; then |
110 |
- elog |
111 |
- elog "Configuration files are now in /etc/fail2ban/" |
112 |
- elog "You probably have to manually update your configuration" |
113 |
- elog "files before restarting Fail2ban!" |
114 |
- elog |
115 |
- elog "Fail2ban is not installed under /usr/lib anymore. The" |
116 |
- elog "new location is under /usr/share." |
117 |
- elog |
118 |
- elog "You are upgrading from version 0.6.x, please see:" |
119 |
- elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8" |
120 |
- fi |
121 |
- |
122 |
- if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin; then |
123 |
- elog "For most jail.conf configurations, it is recommended you install either" |
124 |
- elog "dev-python/pyinotify or app-admin/gamin (in order of preference)" |
125 |
- elog "to control how log file modifications are detected" |
126 |
- fi |
127 |
- |
128 |
- if ! has_version dev-lang/python[sqlite]; then |
129 |
- elog "If you want to use ${PN}'s persistent database, then reinstall" |
130 |
- elog "dev-lang/python with USE=sqlite. If you do not use the" |
131 |
- elog "persistent database feature, then you should set" |
132 |
- elog "dbfile = :memory: in fail2ban.conf accordingly." |
133 |
- fi |
134 |
- |
135 |
- if has_version sys-apps/systemd[-python]; then |
136 |
- elog "If you want to track logins through sys-apps/systemd's" |
137 |
- elog "journal backend, then reinstall sys-apps/systemd with USE=python" |
138 |
- fi |
139 |
-} |