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 4195e5c4a8
)
This commit is contained in:
parent
49880edcb3
commit
cc09ec6597
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue