summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-03-06 22:07:06 +0800
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2023-11-02 01:16:36 +0100
commitcc09ec659757c0e12ba9256163494a6024327866 (patch)
tree0dafaef2560662516bf816bdadc8c32ab32113d0
parent49880edcb3b744bcde4edf911e0fa4ed654d4b6b (diff)
fail2ban: Override Build/Compile instead of Py3Build/Compile
This allows changes to the Python build system apply more easily to the package. Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 4195e5c4a8dcb0dfce8049e3e61844a3c1a90d67)
-rw-r--r--net/fail2ban/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/fail2ban/Makefile b/net/fail2ban/Makefile
index dd3d9b8cb..aeb7e2dfc 100644
--- a/net/fail2ban/Makefile
+++ b/net/fail2ban/Makefile
@@ -48,6 +48,11 @@ define Package/fail2ban/conffiles
/etc/config/fail2ban
endef
+define Build/Compile
+ cd $(PKG_BUILD_DIR) && ./fail2ban-2to3
+ $(call Py3Build/Compile)
+endef
+
define Py3Package/fail2ban/filespec
+|$(PYTHON3_PKG_DIR)
-|$(PYTHON3_PKG_DIR)/fail2ban/tests
@@ -77,11 +82,6 @@ define Py3Package/fail2ban/install
$(INSTALL_BIN) ./files/fail2ban.defaults $(1)/etc/uci-defaults/99_fail2ban
endef
-define Py3Build/Compile
- cd $(PKG_BUILD_DIR) && ./fail2ban-2to3
- $(call Py3Build/Compile/Default)
-endef
-
$(eval $(call Py3Package,fail2ban))
$(eval $(call BuildPackage,fail2ban))
$(eval $(call BuildPackage,fail2ban-src))