keepalived: set default run directory for pid file on build 10454/head
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 4 Nov 2019 12:24:34 +0000 (13:24 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 4 Nov 2019 12:44:02 +0000 (13:44 +0100)
This fixes a runtime startup error on system which does not have a
toplevel runtime directory for the pid file. On openwrt the pid is
located at /var/run and not on /run. To fix that add a configure option to
move the pid location to /var/run.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/keepalived/Makefile

index cc77c652065b6a85a8fc6cdc9cc90e4ae1b17968..bac2c594399b03e4f8db8d2f0341e71a6941d1ee 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=keepalived
 PKG_VERSION:=2.0.19
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.keepalived.org/software
@@ -87,7 +87,8 @@ endef
 CONFIGURE_ARGS+= \
        --with-init=SYSV \
        --disable-nftables \
-       --disable-track-process
+       --disable-track-process \
+       --with-run-dir="/var/run"
 
 ifeq ($(CONFIG_KEEPALIVED_VRRP),)
 CONFIGURE_ARGS += \