From 624d2278e7e78fd568679ad3976a6cf35ae143d1 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Wed, 22 Sep 2021 15:59:53 +0300 Subject: [PATCH] keepalived: fix build with IPVS disabled The genhash binary is only built when IPVS is enabled, so make its installation depend on IPVS being enabled. Signed-off-by: Stijn Tintel --- net/keepalived/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/keepalived/Makefile b/net/keepalived/Makefile index 373b05427..e182ec7ca 100644 --- a/net/keepalived/Makefile +++ b/net/keepalived/Makefile @@ -208,9 +208,11 @@ define Package/keepalived/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/keepalived \ $(1)/usr/sbin/ +ifeq ($(CONFIG_KEEPALIVED_LVS),y) $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/genhash \ $(1)/usr/bin/ +endif $(INSTALL_DIR) $(1)/etc/keepalived $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf \