From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: [PATCH 1/1] gnu: Add ccid. Date: Thu, 27 Oct 2016 10:46:11 +0100 Message-ID: <20161027094611.19750-1-mbakke@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzhHy-0004Mg-8q for guix-devel@gnu.org; Thu, 27 Oct 2016 05:48:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzhHt-0007vr-CP for guix-devel@gnu.org; Thu, 27 Oct 2016 05:47:58 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34086) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzhHt-0007vd-8C for guix-devel@gnu.org; Thu, 27 Oct 2016 05:47:53 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: Marius Bakke * gnu/packages/security-token.scm (ccid): New variable. --- gnu/packages/security-token.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 735b2fe..8f58c58 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2014 Ludovic Courtès ;;; Copyright © 2016 Efraim Flashner ;;; Copyright © 2016 Mike Gerwitz +;;; Copyright © 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,11 +26,50 @@ #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages curl) + #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages man) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config)) +(define-public ccid + (package + (name "ccid") + (version "1.4.25") + (source (origin + (method url-fetch) + (uri (string-append + "https://alioth.debian.org/frs/download.php/file/4187/" + "ccid-" version ".tar.bz2")) + (sha256 + (base32 + "029n4lpy5nvg278s4mybisyj4lm0bcjslvwfslw6hkghw162n1kb")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags (list (string-append "--enable-usbdropdir=" %output + "/pcsc/drivers")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-Makefile + (lambda _ + (substitute* "src/Makefile.in" + (("/bin/echo") (which "echo"))) + #t))))) + (native-inputs + `(("perl" ,perl) + ("pkg-config" ,pkg-config))) + (inputs + `(("libusb" ,libusb) + ("pcsc-lite" ,pcsc-lite))) + (home-page "https://pcsclite.alioth.debian.org/ccid.html") + (synopsis "PC/SC driver for USB smart card devices") + (description + "This package provides a PC/SC IFD handler implementation for devices +compliant with the CCID and ICCD protocols. It supports a wide range of +readers and is needed to communicate with such devices through the +@command{pcscd} resource manager.") + (license license:lgpl2.1+))) + (define-public libyubikey (package (name "libyubikey") -- 2.10.1