27856dfd1a
Networkd-dispatcher is a dispatcher daemon for systemd-networkd connection status changes. This daemon is similar to NetworkManager-dispatcher, but is much more limited in the types of events it supports due to the limited nature of systemd-networkd. To simplify the large number of transitive dependencies, remove the ones that are implied by glibc. To simplify the comment, simply don't show it if python is selected. Python 2 is going to be removed soon anyway. Signed-off-by: Michael Nosthoff <buildroot@heine.tech> [Arnout: add Config.in comment and rework/simplify dependencies] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
26 lines
1.1 KiB
Makefile
26 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# networkd-dispatcher
|
|
#
|
|
################################################################################
|
|
|
|
NETWORKD_DISPATCHER_VERSION = 2.1
|
|
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))
|