pcsc-lite installs systemd service files, but they are not used.
Enable pcscd.socket so that systemd starts the daemon when the
first client connects.
Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
PCSC_LITE_CONF_OPTS += --enable-embedded
endif
+define PCSC_LITE_INSTALL_INIT_SYSTEMD
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/sockets.target.wants
+ ln -sf ../../../../usr/lib/systemd/system/pcscd.socket \
+ $(TARGET_DIR)/etc/systemd/system/sockets.target.wants/pcscd.socket
+endef
+
$(eval $(autotools-package))