keepalived: fix build with IPVS disabled 16687/head
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 22 Sep 2021 12:59:53 +0000 (15:59 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 22 Sep 2021 13:13:40 +0000 (16:13 +0300)
The genhash binary is only built when IPVS is enabled, so make its
installation depend on IPVS being enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
net/keepalived/Makefile

index 373b054273c8ab13f6b26caf1316d6e4800ccbe6..e182ec7ca12d59d28772dfaec5b2186232a9b99a 100644 (file)
@@ -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 \