|
@@ -4,7 +4,7 @@
|
|
|
#
|
|
|
################################################################################
|
|
|
|
|
|
-FAIL2BAN_VERSION = 1.0.2
|
|
|
+FAIL2BAN_VERSION = 1.1.0
|
|
|
FAIL2BAN_SITE = $(call github,fail2ban,fail2ban,$(FAIL2BAN_VERSION))
|
|
|
FAIL2BAN_LICENSE = GPL-2.0+
|
|
|
FAIL2BAN_LICENSE_FILES = COPYING
|
|
@@ -12,13 +12,13 @@ FAIL2BAN_CPE_ID_VENDOR = fail2ban
|
|
|
FAIL2BAN_SELINUX_MODULES = fail2ban
|
|
|
FAIL2BAN_SETUP_TYPE = setuptools
|
|
|
|
|
|
-define FAIL2BAN_PYTHON_2TO3
|
|
|
- $(HOST_DIR)/bin/2to3 --write --nobackups --no-diffs $(@D)/bin/* $(@D)/fail2ban
|
|
|
+# fail2ban contains bundled copies of pyasyncore and pyasynchat,
|
|
|
+# remove them so only the packaged versions are installed.
|
|
|
+define FAIL2BAN_REMOVE_BUNDLED_COMPAT
|
|
|
+ $(SED) '/fail2ban\.compat/d' $(@D)/setup.py
|
|
|
+ rm -rf $(@D)/fail2ban/compat
|
|
|
endef
|
|
|
-FAIL2BAN_DEPENDENCIES = host-python3
|
|
|
-# We can't use _POST_PATCH_HOOKS because dependencies are not guaranteed
|
|
|
-# to build and install before _POST_PATCH_HOOKS run.
|
|
|
-FAIL2BAN_PRE_CONFIGURE_HOOKS += FAIL2BAN_PYTHON_2TO3
|
|
|
+FAIL2BAN_POST_PATCH_HOOKS += FAIL2BAN_REMOVE_BUNDLED_COMPAT
|
|
|
|
|
|
define FAIL2BAN_FIX_DEFAULT_CONFIG
|
|
|
$(SED) '/^socket/c\socket = /run/fail2ban.sock' $(TARGET_DIR)/etc/fail2ban/fail2ban.conf
|