diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-12-09 14:56:38 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-12-10 11:39:36 +0100 |
commit | ccae755e4427051aed2dd1298af13bac633bc785 (patch) | |
tree | 6a6126d8b9d9de5c1a14ccabfc6e97710199e814 | |
parent | 40edce6ea991d21839d65667860b43e3eafcbe19 (diff) | |
download | ptxdist-ccae755e4427051aed2dd1298af13bac633bc785.tar.gz ptxdist-ccae755e4427051aed2dd1298af13bac633bc785.tar.xz |
pcsc-lite: add new pacakge
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | rules/pcsc-lite.in | 37 | ||||
-rw-r--r-- | rules/pcsc-lite.make | 76 |
2 files changed, 113 insertions, 0 deletions
diff --git a/rules/pcsc-lite.in b/rules/pcsc-lite.in new file mode 100644 index 000000000..33ede43a4 --- /dev/null +++ b/rules/pcsc-lite.in @@ -0,0 +1,37 @@ +## SECTION=communication + +menuconfig PCSC_LITE + tristate "pcsc-lite " + select UDEV if PCSC_LITE_LIBUDEV + select UDEV_LIBUDEV if PCSC_LITE_LIBUDEV + select LIBUSB if PCSC_LITE_LIBUSB + help + Middleware to access a smart card using PC/SC (library) + + The purpose of PC/SC Lite is to provide a Windows(R) SCard + interface in a very small form factor for communicating to + smartcards and readers. + + The PC/SC Lite library is used to connect to the PC/SC + daemon from a client application and provide access to the + desired reader. + +if PCSC_LITE + +config PCSC_LITE_LIBUDEV + bool "libudev support" + +config PCSC_LITE_LIBUSB + bool "libusb support" + +config PCSC_LITE_DEBUGATR + bool "enable ATR debug messages from pcscd" + help + Enabled some debugging features. + +config PCSC_LITE_SYSTEMD_UNIT + bool "install systemd unit" + depends on SYSTEMD + default y + +endif diff --git a/rules/pcsc-lite.make b/rules/pcsc-lite.make new file mode 100644 index 000000000..31ec91121 --- /dev/null +++ b/rules/pcsc-lite.make @@ -0,0 +1,76 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.de> +# 2015 by Marc Kleine-Budde <mkl@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PCSC_LITE) += pcsc-lite + +# +# Paths and names +# +PCSC_LITE_VERSION := 1.8.14 +PCSC_LITE_MD5 := 439b2c8892f502e39e5b8997a7ae01ed +PCSC_LITE := pcsc-lite-$(PCSC_LITE_VERSION) +PCSC_LITE_SUFFIX := tar.bz2 +PCSC_LITE_URL := https://alioth.debian.org/frs/download.php/file/4138/$(PCSC_LITE).$(PCSC_LITE_SUFFIX) +PCSC_LITE_SOURCE := $(SRCDIR)/$(PCSC_LITE).$(PCSC_LITE_SUFFIX) +PCSC_LITE_DIR := $(BUILDDIR)/$(PCSC_LITE) +PCSC_LITE_BUILD_OOT := YES +# src/spy LICENSE := GPL-3.0+ - but file is not distributed +PCSC_LITE_LICENSE := BSD-3-Clause AND BSD-2-Clause AND MIT AND ISC + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +PCSC_LITE_CONF_TOOL := autoconf +PCSC_LITE_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --$(call ptx/endis, PTXCONF_PCSC_LITE_LIBUDEV)-libudev \ + --$(call ptx/endis, PTXCONF_PCSC_LITE_LIBUSB)-libusb \ + --enable-usbdropdir=/usr/lib/pcsc \ + --$(call ptx/endis, PTXCONF_PCSC_LITE_DEBUGATR)-debugatr \ + --with-systemdsystemunitdir=/lib/systemd/system + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/pcsc-lite.targetinstall: + @$(call targetinfo) + + @$(call install_init, pcsc-lite) + @$(call install_fixup, pcsc-lite,PRIORITY,optional) + @$(call install_fixup, pcsc-lite,SECTION,base) + @$(call install_fixup, pcsc-lite,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, pcsc-lite,DESCRIPTION,missing) + + @$(call install_alternative, pcsc-lite, 0, 0, 0644, /etc/reader.conf.d/reader.conf) + + @$(call install_lib, pcsc-lite, 0, 0, 0644, libpcsclite) + @$(call install_copy, pcsc-lite, 0, 0, 0755, -, /usr/sbin/pcscd) + +ifdef PTXCONF_PCSC_LITE_SYSTEMD_UNIT + @$(call install_alternative, pcsc-lite, 0, 0, 0644, /lib/systemd/system/pcscd.service) + @$(call install_alternative, pcsc-lite, 0, 0, 0644, /lib/systemd/system/pcscd.socket) + @$(call install_link, pcsc-lite, ../pcscd.socket, \ + /lib/systemd/system/sockets.target.wants/pcscd.socket) +endif + + @$(call install_finish, pcsc-lite) + + @$(call touch) + +# vim: syntax=make |