1 |
commit: d3634f6c31c170dcab9cadbec7f502b10c2b1a70 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 1 06:18:43 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 1 06:19:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3634f6c |
7 |
|
8 |
net-analyzer/fail2ban: Old |
9 |
|
10 |
Package-Manager: Portage-2.3.53, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/fail2ban/Manifest | 1 - |
14 |
net-analyzer/fail2ban/fail2ban-0.10.3.1.ebuild | 113 ------------------------- |
15 |
2 files changed, 114 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest |
18 |
index 29d56938a6c..8ae35bf6701 100644 |
19 |
--- a/net-analyzer/fail2ban/Manifest |
20 |
+++ b/net-analyzer/fail2ban/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST fail2ban-0.10.3.1.tar.gz 485826 BLAKE2B 79ca86a601bd79ba3729d4c9b00f20a0717df8c7ceb20183099e11f84cceade274173be90d0b4b000d37a1b9d242e14106c9e7e40e372e450d69bca003fff6fb SHA512 ed3646ef2113fe10d9130c239818087b228ac9708411e26acc412beae022e3f9ff8cea32d824bd491117882fb8f184dcb88bda295bd31e865ac8310c7e27fc7a |
23 |
DIST fail2ban-0.10.4.tar.gz 493104 BLAKE2B 3a58ab114cf25172c77b229ce53bf6dd009d4fb8c700142480ba0212072d8820126bfabf5dd417835bdac5f5b65d599c6dde859d8c57267e90cfb569dc4a2073 SHA512 ee53f2e8dc3cda4f588c60da5227d3d71550496ddfdf5bdbffced25bafd442b8e2352a9ad9f27bf76489903b5b779cdb9614963342de907c1036ae9268b8f35f |
24 |
|
25 |
diff --git a/net-analyzer/fail2ban/fail2ban-0.10.3.1.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.3.1.ebuild |
26 |
deleted file mode 100644 |
27 |
index 3dda24f6f47..00000000000 |
28 |
--- a/net-analyzer/fail2ban/fail2ban-0.10.3.1.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,113 +0,0 @@ |
31 |
-# Copyright 1999-2018 Gentoo Foundation |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=6 |
35 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) |
36 |
-DISTUTILS_SINGLE_IMPL=1 |
37 |
- |
38 |
-inherit distutils-r1 eutils systemd vcs-snapshot |
39 |
- |
40 |
-DESCRIPTION="scans log files and bans IPs that show malicious signs" |
41 |
-HOMEPAGE="http://www.fail2ban.org/" |
42 |
-SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz" |
43 |
- |
44 |
-LICENSE="GPL-2" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd" |
47 |
-IUSE="selinux systemd" |
48 |
- |
49 |
-# TODO support ipfw and ipfilter |
50 |
-RDEPEND=" |
51 |
- kernel_linux? ( net-firewall/iptables ) |
52 |
- kernel_FreeBSD? ( sys-freebsd/freebsd-pf ) |
53 |
- net-misc/whois |
54 |
- virtual/logger |
55 |
- virtual/mta |
56 |
- selinux? ( sec-policy/selinux-fail2ban ) |
57 |
- systemd? ( $(python_gen_cond_dep '|| ( |
58 |
- dev-python/python-systemd[${PYTHON_USEDEP}] |
59 |
- sys-apps/systemd[python(-),${PYTHON_USEDEP}] |
60 |
- )' 'python*' ) ) |
61 |
-" |
62 |
- |
63 |
-REQUIRED_USE="systemd? ( !python_single_target_pypy )" |
64 |
- |
65 |
-DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) |
66 |
- |
67 |
-python_prepare_all() { |
68 |
- eapply_user |
69 |
- |
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 |
- if python_is_python3; then |
81 |
- ./fail2ban-2to3 || die |
82 |
- fi |
83 |
- distutils-r1_python_compile |
84 |
-} |
85 |
- |
86 |
-python_test() { |
87 |
- "${PYTHON}" "bin/${PN}-testcases" || die "tests failed with ${EPYTHON}" |
88 |
-} |
89 |
- |
90 |
-python_install_all() { |
91 |
- distutils-r1_python_install_all |
92 |
- |
93 |
- rm -rf "${D}"/usr/share/doc/${PN} "${D}"/run || die |
94 |
- |
95 |
- # not FILESDIR |
96 |
- newconfd files/gentoo-confd ${PN} |
97 |
- newinitd files/gentoo-initd ${PN} |
98 |
- sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}/${PN}.service" || die |
99 |
- systemd_dounit "${T}/${PN}.service" |
100 |
- systemd_dotmpfilesd files/${PN}-tmpfiles.conf |
101 |
- doman man/*.{1,5} |
102 |
- |
103 |
- # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. |
104 |
- # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675 |
105 |
- insinto /etc/logrotate.d |
106 |
- newins files/${PN}-logrotate ${PN} |
107 |
-} |
108 |
- |
109 |
-pkg_preinst() { |
110 |
- has_version "<${CATEGORY}/${PN}-0.7" |
111 |
- previous_less_than_0_7=$? |
112 |
-} |
113 |
- |
114 |
-pkg_postinst() { |
115 |
- if [[ $previous_less_than_0_7 = 0 ]] ; then |
116 |
- elog |
117 |
- elog "Configuration files are now in /etc/fail2ban/" |
118 |
- elog "You probably have to manually update your configuration" |
119 |
- elog "files before restarting Fail2ban!" |
120 |
- elog |
121 |
- elog "Fail2ban is not installed under /usr/lib anymore. The" |
122 |
- elog "new location is under /usr/share." |
123 |
- elog |
124 |
- elog "You are upgrading from version 0.6.x, please see:" |
125 |
- elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8" |
126 |
- fi |
127 |
- |
128 |
- if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin; then |
129 |
- elog "For most jail.conf configurations, it is recommended you install either" |
130 |
- elog "dev-python/pyinotify or app-admin/gamin (in order of preference)" |
131 |
- elog "to control how log file modifications are detected" |
132 |
- fi |
133 |
- |
134 |
- if ! has_version dev-lang/python[sqlite]; then |
135 |
- elog "If you want to use ${PN}'s persistent database, then reinstall" |
136 |
- elog "dev-lang/python with USE=sqlite" |
137 |
- fi |
138 |
- |
139 |
- if has_version sys-apps/systemd[-python]; then |
140 |
- elog "If you want to track logins through sys-apps/systemd's" |
141 |
- elog "journal backend, then reinstall sys-apps/systemd with USE=python" |
142 |
- fi |
143 |
-} |