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>
This commit is contained in:
Joachim Wiberg 2021-01-23 11:31:55 +01:00 committed by Yann E. MORIN
parent 282c7b6e64
commit f744e6dea1
2 changed files with 19 additions and 1 deletions

View File

@ -11,3 +11,16 @@ config BR2_PACKAGE_MROUTED
Note: at least two interfaces with MULTICAST flag is requried.
http://github.com/troglobit/mrouted
if BR2_PACKAGE_MROUTED
config BR2_PACKAGE_MROUTED_RSRR
bool "enable RSRR for RSVP"
help
Routing Support for Resource Reservation, currently used by
RSVP. This is an EXPERIMENTAL feature.
For details, see:
http://tools.ietf.org/html/draft-ietf-rsvp-routing-02
endif

View File

@ -10,9 +10,14 @@ MROUTED_SITE = \
MROUTED_DEPENDENCIES = host-bison
MROUTED_LICENSE = BSD-3-Clause
MROUTED_LICENSE_FILES = LICENSE
MROUTED_CONFIGURE_OPTS = --enable-rsrr
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