From: Stijn Tintel Date: Wed, 22 Sep 2021 12:59:53 +0000 (+0300) Subject: keepalived: fix build with IPVS disabled X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F16687%2Fhead;p=feed%2Fpackages.git 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 --- diff --git a/net/keepalived/Makefile b/net/keepalived/Makefile index 373b054273..e182ec7ca1 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 \