[Lunar-commits] <moonbase-other> pcsc-lite: a PC/SC Architecture smartcard middleware library

Stefan Wold ratler at lunar-linux.org
Sun Nov 3 16:29:10 CET 2013


commit aa37458b438535cffa04127f50a505ff5c28959b
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 12 Oct 2013 03:08:55 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/aa37458b438535cffa04127f50a505ff5c28959b

pcsc-lite: a PC/SC Architecture smartcard middleware library
---
  utils/pcsc-lite/99-pcscd-hotplug.rules  | +1/-0     
  utils/pcsc-lite/BUILD                   | +10/-0    
  utils/pcsc-lite/DEPENDS                 | +3/-0     
  utils/pcsc-lite/DETAILS                 | +12/-0    
  utils/pcsc-lite/POST_INSTALL            | +1/-0     
  utils/pcsc-lite/PRE_BUILD               | +4/-0     
  utils/pcsc-lite/systemd.d/pcscd.service | +12/-0    
  utils/pcsc-lite/systemd.d/pcscd.socket  | +8/-0     
  utils/pcsc-lite/tmpfiles.d/pcscd.conf   | +1/-0     
  9 files changed, 52 insertions(+)

--- /dev/null
+++ b/utils/pcsc-lite/99-pcscd-hotplug.rules
@@ -0,0 +1 @@
+ACTION=="add", ENV{PCSCD}=="1", GROUP="pcscd", RUN+="/usr/bin/env systemctl start pcscd"
--- /dev/null
+++ b/utils/pcsc-lite/BUILD
@@ -0,0 +1,10 @@
+OPTS+=" --enable-libudev \
+--enable-ipcdir=/run/pcscd \
+--enable-usbdropdir=/usr/lib/pcsc/drivers \
+--with-systemdsystemunitdir=$(pkg-config systemd --variable=systemdsystemunitdir) \
+--disable-maintainer-mode"
+
+add_priv_user pcscd:pcscd -s /bin/false -d /run/pcscd &&
+default_build &&
+install -dm 0755 /usr/lib/pcsc/drivers &&
+install -Dm 0644 $SCRIPT_DIRECTORY/99-pcscd-hotplug.rules /usr/lib/udev/rules.d/99-pcscd-hotplug.rules
--- /dev/null
+++ b/utils/pcsc-lite/DEPENDS
@@ -0,0 +1,3 @@
+depends pkgconfig
+depends systemd
+depends Python
--- /dev/null
+++ b/utils/pcsc-lite/DETAILS
@@ -0,0 +1,12 @@
+          MODULE=pcsc-lite
+         VERSION=1.8.8
+          SOURCE=${MODULE}-${VERSION}.tar.bz2
+      SOURCE_URL=https://alioth.debian.org/frs/download.php/file/3862/
+      SOURCE_VFY=sha1:714efaaaf5333e4a04309efd3a6dbc8e7edc61ce
+        WEB_SITE="https://alioth.debian.org/projects/pcsclite/"
+         ENTERED=20131012
+         UPDATED=20131012
+           SHORT="PC/SC Architecture smartcard middleware library"
+cat <<EOF
+Middleware to access a smart card using SCard API (PC/SC).
+EOF
--- /dev/null
+++ b/utils/pcsc-lite/POST_INSTALL
@@ -0,0 +1 @@
+udevadm control --reload
--- /dev/null
+++ b/utils/pcsc-lite/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+
+# We handle installation of systemd unit files on our own
+sedit 's;^\(install-data-am:\).*;\1;' etc/Makefile.in
--- /dev/null
+++ b/utils/pcsc-lite/systemd.d/pcscd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=PC/SC Smart Card Daemon
+Requires=pcscd.socket
+
+[Service]
+User=pcscd
+Group=pcscd
+ExecStart=/usr/sbin/pcscd --foreground --auto-exit
+ExecReload=/usr/sbin/pcscd --hotplug
+
+[Install]
+Also=pcscd.socket
--- /dev/null
+++ b/utils/pcsc-lite/systemd.d/pcscd.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=PC/SC Smart Card Daemon Activation Socket
+
+[Socket]
+ListenStream=/run/pcscd/pcscd.comm
+
+[Install]
+WantedBy=sockets.target
--- /dev/null
+++ b/utils/pcsc-lite/tmpfiles.d/pcscd.conf
@@ -0,0 +1 @@
+d /run/pcscd 0755 pcscd pcscd -




More information about the Lunar-commits mailing list