kumquat-buildroot/package/ssdp-responder/ssdp-responder.mk
Joachim Wiberg 5a32daed29 package/ssdp-responder: add /var/lib/misc for systemd builds
Similar to dnsmasq, ssdp-responder saves state data across reboots in
the /var/lib/misc/ directory.  In the case of ssdp-responder it is the
(per-device unique) UUID that 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:40 +02:00

33 lines
1.0 KiB
Makefile

################################################################################
#
# ssdp-responder
#
################################################################################
SSDP_RESPONDER_VERSION = 2.1
SSDP_RESPONDER_SITE = https://github.com/troglobit/ssdp-responder/releases/download/v$(SSDP_RESPONDER_VERSION)
SSDP_RESPONDER_LICENSE = ISC
SSDP_RESPONDER_LICENSE_FILES = LICENSE
SSDP_RESPONDER_CPE_ID_VENDOR = \
simple_service_discovery_protocol_responder_project
SSDP_RESPONDER_CPE_ID_PRODUCT = simple_service_discovery_protocol_responder
SSDP_RESPONDER_DEPENDENCIES = host-pkgconf
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
SSDP_RESPONDER_DEPENDENCIES += systemd
SSDP_RESPONDER_CONF_OPTS += --with-systemd
else
SSDP_RESPONDER_CONF_OPTS += --without-systemd
endif
define SSDP_RESPONDER_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/ssdp-responder/S50ssdpd \
$(TARGET_DIR)/etc/init.d/S50ssdpd
endef
define SSDP_RESPONDER_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/var/lib/misc/
endef
$(eval $(autotools-package))