From c54697444870043177672a6871f4a5f9b7e60252 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 13 Sep 2024 11:05:06 +0200 Subject: [PATCH] Install a default /etc/default/pcscd file Fixes systemd warning: pcscd.service: Referenced but unset environment variable evaluates to an empty string: PCSCD_ARGS Thanks to iWolf1 for the bug report and idea " Systemd complains "pcscd.service: Referenced but unset environment variable evaluates to an empty string: PCSCD_ARGS" #211 " Fixes: https://github.com/LudovicRousseau/PCSC/issues/211 --- etc/pcscd | 24 ++++++++++++++++++++++++ meson.build | 5 +++++ 2 files changed, 29 insertions(+) create mode 100644 etc/pcscd diff --git a/etc/pcscd b/etc/pcscd new file mode 100644 index 00000000..1e49c698 --- /dev/null +++ b/etc/pcscd @@ -0,0 +1,24 @@ +# Defaults for pcscd (/etc/default/pcscd) +# https://blog.apdu.fr/posts/2021/08/pcsc-lite-configuration-using/ + +# PCSCD_ARGS is used in the systemd service unit to pass cli arguments +# to pcscd executable. +PCSCD_ARGS = '' + +# Set the socket name to talk to remote instance of libpcsclite.so +# https://blog.apdu.fr/posts/2010/11/pcsc-client-and-server-on-two-different/ +# https://blog.apdu.fr/posts/2022/11/share-smart-card-reader-between-host/ +# https://blog.apdu.fr/posts/2022/02/one-smart-card-reader-accessible-from/ +;PCSCLITE_CSOCK_NAME = + +# Adjust USB drivers path at run-time +;PCSCLITE_HP_DROPDIR = "/usr/lib/pcsc/drivers/" + +# Remove and/or customize PC/SC reader names +# https://blog.apdu.fr/posts/2015/12/remove-andor-customize-pcsc-reader-names/ +;PCSCLITE_FILTER_IGNORE_READER_NAMES = '' +;PCSCLITE_FILTER_EXTEND_READER_NAMES = + +# Do not block on some PC/SC calls +# https://blog.apdu.fr/posts/2010/05/pcsc-lite-160-new-major-version/ +;PCSCLITE_NO_BLOCKING = diff --git a/meson.build b/meson.build index d529690a..67806188 100644 --- a/meson.build +++ b/meson.build @@ -245,6 +245,11 @@ endif install_data('etc/fr.apdu.pcsclite.metainfo.xml', install_dir : 'share/metainfo' ) + +install_data('etc/pcscd', + install_dir : 'etc/default' + ) + # generate config.h configure_file(output : 'config.h', configuration : conf_data)