kumquat-buildroot/package/mrouted/mrouted.mk
Joachim Wiberg f744e6dea1 package/mrouted: menuconfig support for enabling rsrr support
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
[yann.morin.1998@free.fr:
  - split long lines in help text
  - use traditional ifeq-else-endif block
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-01-23 21:49:56 +01:00

39 lines
1.1 KiB
Makefile

################################################################################
#
# mrouted
#
################################################################################
MROUTED_VERSION = 4.2
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
ifeq ($(BR2_PACKAGE_MROUTED_RSRR),y)
MROUTED_CONF_OPTS += --enable-rsrr
else
MROUTED_CONF_OPTS += --disable-rsrr
endif
define MROUTED_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/mrouted/S41mrouted \
$(TARGET_DIR)/etc/init.d/S41mrouted
endef
define MROUTED_INSTALL_INIT_SYSTEMD
$(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))