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 <stijn@linux-ipv6.be>
(cherry picked from commit 624d2278e7)
This commit is contained in:
Stijn Tintel 2021-09-22 15:59:53 +03:00 committed by Josef Schlehofer
parent 81af8d6703
commit 0b16e3f359
No known key found for this signature in database
GPG Key ID: B950216FE4329F4C
1 changed files with 2 additions and 0 deletions

View File

@ -203,9 +203,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 \