40a1c141b3
lots of fixes but most importantly: - don't allow unknown operational/admin states (CVE-2022-29799, CVE-2022-29800) Signed-off-by: Michael Nosthoff <buildroot@heine.tech> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
26 lines
1.1 KiB
Makefile
26 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# networkd-dispatcher
|
|
#
|
|
################################################################################
|
|
|
|
NETWORKD_DISPATCHER_VERSION = 2.2.3
|
|
NETWORKD_DISPATCHER_SOURCE = networkd-dispatcher-$(NETWORKD_DISPATCHER_VERSION).tar.bz2
|
|
NETWORKD_DISPATCHER_SITE = https://gitlab.com/craftyguy/networkd-dispatcher/-/archive/$(NETWORKD_DISPATCHER_VERSION)
|
|
NETWORKD_DISPATCHER_LICENSE = GPL-3.0
|
|
NETWORKD_DISPATCHER_LICENSE_FILES = LICENSE
|
|
|
|
define NETWORKD_DISPATCHER_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/networkd-dispatcher $(TARGET_DIR)/usr/bin/networkd-dispatcher
|
|
mkdir -p $(TARGET_DIR)/etc/networkd-dispatcher/{routable,dormant,no-carrier,off,carrier,degraded,configuring,configured}.d
|
|
endef
|
|
|
|
define NETWORKD_DISPATCHER_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 $(@D)/networkd-dispatcher.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/networkd-dispatcher.service
|
|
$(INSTALL) -D -m 0644 $(@D)/networkd-dispatcher.conf \
|
|
$(TARGET_DIR)/etc/conf.d/networkd-dispatcher.conf
|
|
endef
|
|
|
|
$(eval $(generic-package))
|