aboutsummaryrefslogtreecommitdiff
path: root/package/pcsc-lite
diff options
context:
space:
mode:
authorGravatar Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>2017-03-28 11:55:47 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-28 21:45:13 +0200
commit4f9848d6a108925a0bb446c38ec34a8aa497dec4 (patch)
tree69bd6886ca7c4a2fa9d13072c1544dec84b0cd1d /package/pcsc-lite
parent3967abfc891b69415891ee30945326e6135969f0 (diff)
downloadbuildroot-4f9848d6a108925a0bb446c38ec34a8aa497dec4.tar.gz
buildroot-4f9848d6a108925a0bb446c38ec34a8aa497dec4.tar.bz2
package/pcsc-lite: enable systemd socket activation
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>
Diffstat (limited to 'package/pcsc-lite')
-rw-r--r--package/pcsc-lite/pcsc-lite.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/pcsc-lite/pcsc-lite.mk b/package/pcsc-lite/pcsc-lite.mk
index e53c004e8b..3349b6ca07 100644
--- a/package/pcsc-lite/pcsc-lite.mk
+++ b/package/pcsc-lite/pcsc-lite.mk
@@ -37,4 +37,10 @@ ifeq ($(PACKAGE_PCSC_LITE_EMBEDDED),y)
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))