16 |
16 |
inherit git-r3
|
17 |
17 |
else
|
18 |
18 |
SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
19 |
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv sparc x86"
|
|
19 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
20 |
20 |
fi
|
21 |
21 |
|
22 |
22 |
LICENSE="GPL-2"
|
... | ... | |
29 |
29 |
selinux? ( sec-policy/selinux-fail2ban )
|
30 |
30 |
systemd? (
|
31 |
31 |
$(python_gen_cond_dep '
|
32 |
|
|| (
|
33 |
|
dev-python/python-systemd[${PYTHON_USEDEP}]
|
34 |
|
sys-apps/systemd[python(-),${PYTHON_USEDEP}]
|
35 |
|
)' 'python*' )
|
|
32 |
dev-python/python-systemd[${PYTHON_USEDEP}]
|
|
33 |
')
|
36 |
34 |
)
|
37 |
35 |
"
|
38 |
36 |
|
... | ... | |
40 |
38 |
|
41 |
39 |
PATCHES=(
|
42 |
40 |
"${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch
|
|
41 |
"${FILESDIR}"/${PN}-1.0.2-umask-tests.patch
|
43 |
42 |
"${FILESDIR}"/${P}-configreader-warning.patch
|
44 |
43 |
)
|
45 |
44 |
|
... | ... | |
103 |
102 |
pkg_postinst() {
|
104 |
103 |
tmpfiles_process ${PN}-tmpfiles.conf
|
105 |
104 |
|
106 |
|
if [[ ${previous_less_than_0_7} = 0 ]] ; then
|
|
105 |
if [[ ${previous_less_than_0_7} == 0 ]] ; then
|
107 |
106 |
elog
|
108 |
107 |
elog "Configuration files are now in /etc/fail2ban/"
|
109 |
108 |
elog "You probably have to manually update your configuration"
|
... | ... | |
116 |
115 |
elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8"
|
117 |
116 |
fi
|
118 |
117 |
|
119 |
|
if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin ; then
|
120 |
|
elog "For most jail.conf configurations, it is recommended you install either"
|
121 |
|
elog "dev-python/pyinotify or app-admin/gamin (in order of preference)"
|
122 |
|
elog "to control how log file modifications are detected"
|
|
118 |
if ! has_version dev-python/pyinotify ; then
|
|
119 |
elog "For most jail.conf configurations, it is recommended you install"
|
|
120 |
elog "dev-python/pyinotify to control how log file modifications are detected"
|
123 |
121 |
fi
|
124 |
122 |
|
125 |
123 |
if ! has_version dev-lang/python[sqlite] ; then
|
... | ... | |
128 |
126 |
elog "persistent database feature, then you should set"
|
129 |
127 |
elog "dbfile = :memory: in fail2ban.conf accordingly."
|
130 |
128 |
fi
|
131 |
|
|
132 |
|
if has_version sys-apps/systemd[-python] ; then
|
133 |
|
elog "If you want to track logins through sys-apps/systemd's"
|
134 |
|
elog "journal backend, then reinstall sys-apps/systemd with USE=python"
|
135 |
|
fi
|
136 |
129 |
}
|