kumquat-buildroot/package/mrouted/mrouted.mk
Joachim Wiberg 893d642a77 package/mrouted: add /var/lib/misc for systemd builds
Similar to dnsmasq, mrouted saves state data across reboots in the
/var/lib/misc/ directory.  In the case of mrouted it is the unique
generation id (used by neighboring mrouted routers to identify any
router restarting).  This file is generated on first boot.

Workaround only needed for systemd builds, the sysv skeleton already
has the /var/lib/misc/ directory.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-07-30 12:37:46 +02:00

34 lines
1014 B
Makefile

################################################################################
#
# mrouted
#
################################################################################
MROUTED_VERSION = 4.5
MROUTED_SITE = \
https://github.com/troglobit/mrouted/releases/download/$(MROUTED_VERSION)
MROUTED_DEPENDENCIES = host-bison
MROUTED_LICENSE = BSD-3-Clause
MROUTED_LICENSE_FILES = LICENSE
MROUTED_CPE_ID_VENDOR = troglobit
define MROUTED_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/mrouted/S41mrouted \
$(TARGET_DIR)/etc/init.d/S41mrouted
endef
define MROUTED_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/var/lib/misc/
$(INSTALL) -D -m 644 $(@D)/mrouted.service \
$(TARGET_DIR)/usr/lib/systemd/system/mrouted.service
endef
# We will asume that CONFIG_NET and CONFIG_INET are already
# set in the kernel configuration provided by the user.
define MROUTED_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_MULTICAST)
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_MROUTE)
endef
$(eval $(autotools-package))