2014-12-07 00:02:43 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
|
2016-02-18 09:49:11 +01:00
|
|
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
2016-10-22 18:04:24 +02:00
|
|
|
|
;;; Copyright © 2016 Mike Gerwitz <mtg@gnu.org>
|
2016-10-24 17:00:31 +02:00
|
|
|
|
;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
|
2014-12-07 00:02:43 +01:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2016-10-26 08:33:24 +02:00
|
|
|
|
(define-module (gnu packages security-token)
|
2014-12-07 00:02:43 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2016-10-26 12:00:58 +02:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2014-12-07 00:02:43 +01:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-10-22 18:04:24 +02:00
|
|
|
|
#:use-module (gnu packages curl)
|
2016-10-24 17:00:31 +02:00
|
|
|
|
#:use-module (gnu packages libusb)
|
2016-10-22 18:04:24 +02:00
|
|
|
|
#:use-module (gnu packages linux)
|
2014-12-07 00:02:43 +01:00
|
|
|
|
#:use-module (gnu packages man)
|
2016-10-22 18:04:24 +02:00
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
#:use-module (gnu packages pkg-config))
|
2014-12-07 00:02:43 +01:00
|
|
|
|
|
2016-10-24 17:00:31 +02:00
|
|
|
|
(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+)))
|
|
|
|
|
|
2014-12-07 00:02:43 +01:00
|
|
|
|
(define-public libyubikey
|
|
|
|
|
(package
|
|
|
|
|
(name "libyubikey")
|
2016-02-18 09:49:11 +01:00
|
|
|
|
(version "1.13")
|
2014-12-07 00:02:43 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://developers.yubico.com/yubico-c/Releases/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-18 09:49:11 +01:00
|
|
|
|
"009l3k2zyn06dbrlja2d4p2vfnzjhlcqxi88v02mlrnb17mx1v84"))))
|
2014-12-07 00:02:43 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(synopsis "Development kit for the YubiKey authentication device")
|
|
|
|
|
(description
|
|
|
|
|
"This package contains a C library and command-line tools that make up
|
|
|
|
|
the low-level development kit for the Yubico YubiKey authentication device.")
|
|
|
|
|
(home-page "https://developers.yubico.com/yubico-c/")
|
2016-10-26 12:00:58 +02:00
|
|
|
|
(license license:bsd-2)))
|
2014-12-07 00:02:43 +01:00
|
|
|
|
|
2016-10-22 18:04:24 +02:00
|
|
|
|
(define-public pcsc-lite
|
|
|
|
|
(package
|
|
|
|
|
(name "pcsc-lite")
|
2017-01-03 17:15:04 +01:00
|
|
|
|
(version "1.8.20")
|
2016-10-22 18:04:24 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
2017-01-03 17:15:04 +01:00
|
|
|
|
"https://alioth.debian.org/frs/download.php/file/4203/"
|
2016-10-22 18:04:24 +02:00
|
|
|
|
"pcsc-lite-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-01-03 17:15:04 +01:00
|
|
|
|
"1ckb0jf4n585a4j26va3jm2nrv3c1y38974514f8qy3c04a02zgc"))))
|
2016-10-22 18:04:24 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags '("--enable-usbdropdir=/var/lib/pcsc/drivers")))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl) ; for pod2man
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libudev" ,eudev)))
|
|
|
|
|
(home-page "https://pcsclite.alioth.debian.org/pcsclite.html")
|
|
|
|
|
(synopsis "Middleware to access a smart card using PC/SC")
|
|
|
|
|
(description
|
|
|
|
|
"pcsc-lite provides an interface to communicate with smartcards and
|
|
|
|
|
readers using the SCard API. pcsc-lite is used to connect to the PC/SC daemon
|
|
|
|
|
from a client application and provide access to the desired reader.")
|
|
|
|
|
(license (list license:bsd-3 ; pcsc-lite
|
|
|
|
|
license:expat ; src/sd-daemon.[ch]
|
|
|
|
|
license:isc ; src/strlcat.c src/strlcpy.c
|
|
|
|
|
license:gpl3+)))) ; src/spy/*
|
|
|
|
|
|
2014-12-07 00:02:43 +01:00
|
|
|
|
(define-public ykclient
|
|
|
|
|
(package
|
|
|
|
|
(name "ykclient")
|
2016-02-18 09:50:46 +01:00
|
|
|
|
(version "2.15")
|
2014-12-07 00:02:43 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://developers.yubico.com/yubico-c-client/Releases/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-18 09:50:46 +01:00
|
|
|
|
"05jhx9waj3pl120ddnwap1v3bjrnbfhvf3lxs2xmhpcmwzpwsqgl"))))
|
2014-12-07 00:02:43 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
|
|
|
|
;; There's just one test, and it requires network access to access
|
|
|
|
|
;; yubico.com, so skip it.
|
|
|
|
|
(arguments '(#:tests? #f))
|
|
|
|
|
|
|
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)
|
|
|
|
|
("help2man" ,help2man)))
|
|
|
|
|
(inputs `(("curl" ,curl)))
|
|
|
|
|
(synopsis "C library to validate one-time-password YubiKeys")
|
|
|
|
|
(description
|
|
|
|
|
"YubiKey C Client Library (libykclient) is a C library used to validate a
|
|
|
|
|
one-time-password (OTP) YubiKey against Yubico’s servers. See the Yubico
|
|
|
|
|
website for more information about Yubico and the YubiKey.")
|
|
|
|
|
(home-page "https://developers.yubico.com/yubico-c-client/")
|
2016-10-26 12:00:58 +02:00
|
|
|
|
(license license:bsd-2)))
|