[Lunar-commits] <moonbase-other> ccid: a generic USB Chip/Smart Card Interface Devices driver
Stefan Wold
ratler at lunar-linux.org
Sun Nov 3 16:29:10 CET 2013
commit b51034cc6295d8929ae6c770cec2af1dc5014ba3
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 12 Oct 2013 03:10:01 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/b51034cc6295d8929ae6c770cec2af1dc5014ba3
ccid: a generic USB Chip/Smart Card Interface Devices driver
---
crypto/ccid/92-pcscd-ccid.rules | +48/-0
crypto/ccid/BUILD | +3/-0
crypto/ccid/DEPENDS | +3/-0
crypto/ccid/DETAILS | +14/-0
crypto/ccid/POST_INSTALL | +1/-0
crypto/ccid/PRE_BUILD | +4/-0
6 files changed, 73 insertions(+)
--- /dev/null
+++ b/crypto/ccid/92-pcscd-ccid.rules
@@ -0,0 +1,48 @@
+# udev rules to set the access rights of CCID smart card readers
+# so they can be used by pcscd
+
+# Gemplus PCMCIA Card
+#SUBSYSTEMS=="pcmcia", DRIVERS=="serial_cs", ACTION=="add", ATTRS{prod_id1}=="Gemplus", ATTRS{prod_id2}=="SerialPort", ATTRS{prod_id3}=="GemPC Card", RUN+="/usr/sbin/pcscd --hotplug"
+
+# If not adding the device, go away
+ACTION!="add", GOTO="pcscd_ccid_rules_end"
+SUBSYSTEM!="usb", GOTO="pcscd_ccid_rules_end"
+ENV{DEVTYPE}!="usb_device", GOTO="pcscd_ccid_rules_end"
+
+# Kobil mIDentity
+#ATTRS{idVendor}=="0d46", ATTRS{idProduct}=="4081", RUN+="/usr/sbin/Kobil_mIDentity_switch"
+
+# generic CCID device (bInterfaceClass = 0x0b)
+# change group from default "root" to "pcscd"
+ENV{ID_USB_INTERFACES}=="*:0b0000:*", ENV{PCSCD}="1"
+
+# set USB power management to auto. "power/level" has been deprecated in
+# Linux 2.6.35 and replaced by "power/control"
+ENV{ID_USB_INTERFACES}==":0b0000:", RUN+="/bin/sh -c 'echo auto > /sys/$devpath/power/level ; echo auto > /sys/$devpath/power/control'"
+
+# non CCID generic (InterfaceClass: 0xFF)
+# CherrySmartTerminalST2XXX.txt
+ATTRS{idVendor}=="046a", ATTRS{idProduct}=="003e", ENV{PCSCD}="1"
+# DellSK-3106.txt
+ATTRS{idVendor}=="413c", ATTRS{idProduct}=="2100", ENV{PCSCD}="1"
+# MySmartPad.txt
+ATTRS{idVendor}=="09be", ATTRS{idProduct}=="0002", ENV{PCSCD}="1"
+# SCR3310-NTTCom USB SmartCard Reader
+ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="511a", ENV{PCSCD}="1"
+# SCR331-DI USB Smart Card Reader
+ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5120", ENV{PCSCD}="1"
+# SCR331-DI.txt
+ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5111", ENV{PCSCD}="1"
+# SDI010.txt
+ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5121", ENV{PCSCD}="1"
+# SPR532.txt
+ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="e003", ENV{PCSCD}="1"
+# Verisign_secure_storage_token.txt
+ATTRS{idVendor}=="08e6", ATTRS{idProduct}=="1359", ENV{PCSCD}="1"
+# Verisign_secure_token.txt
+ATTRS{idVendor}=="08e6", ATTRS{idProduct}=="ace0", ENV{PCSCD}="1"
+# SchlumbergerSema Cyberflex Access e-gate
+ATTRS{idVendor}=="0973", ATTRS{idProduct}=="0003", ENV{PCSCD}="1"
+
+# All done
+LABEL="pcscd_ccid_rules_end"
--- /dev/null
+++ b/crypto/ccid/BUILD
@@ -0,0 +1,3 @@
+OPTS+=" --enable-twinserial --enable-serialconfdir=/etc/reader.conf.d" &&
+default_build &&
+install -Dm0644 $SCRIPT_DIRECTORY/92-pcscd-ccid.rules /usr/lib/udev/rules.d/92-pcscd-ccid.rules
--- /dev/null
+++ b/crypto/ccid/DEPENDS
@@ -0,0 +1,3 @@
+depends pkgconfig
+depends libusb
+depends pcsc-lite
--- /dev/null
+++ b/crypto/ccid/DETAILS
@@ -0,0 +1,14 @@
+ MODULE=ccid
+ VERSION=1.4.12
+ SOURCE=${MODULE}-${VERSION}.tar.bz2
+ SOURCE_URL=https://alioth.debian.org/frs/download.php/file/3937/
+ SOURCE_VFY=sha1:a14a99ff6575d311dad083a066b80e4e0b6b8731
+ WEB_SITE="http://pcsclite.alioth.debian.org/ccid.html"
+ ENTERED=20131012
+ UPDATED=20131012
+ SHORT="A generic USB Chip/Smart Card Interface Devices driver"
+cat <<EOF
+Provides the source code for a generic USB CCID (Chip/Smart Card
+Interface Devices) driver and ICCD (Integrated Circuit(s) Card
+Devices).
+EOF
--- /dev/null
+++ b/crypto/ccid/POST_INSTALL
@@ -0,0 +1 @@
+udevadm control --reload
--- /dev/null
+++ b/crypto/ccid/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+
+# Disable installation of udev rules, we don't need them
+sedit '/$(INSTALL_UDEV_RULE_FILE)/d' src/Makefile.in
More information about the Lunar-commits
mailing list