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.99rst.org/?a=commitdiff_plain;h=624d2278e7e78fd568679ad3976a6cf35ae143d1;p=openwrt-packages.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 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 \