From a6706f30cbf1ac5fb9d9961d389a571963f08e7a Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sat, 28 Apr 2018 00:49:35 -0700 Subject: gnu: Add opensc. * gnu/packages/security-token.scm (opensc): New variable. --- gnu/packages/security-token.scm | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'gnu/packages/security-token.scm') diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 6ff83ce5a4..305e3d8a4e 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2017 Thomas Danckaert ;;; Copyright © 2017 Tobias Geerinckx-Rice ;;; Copyright © 2017 Ricardo Wurmus +;;; Copyright © 2018 Chris Marusich ;;; ;;; This file is part of GNU Guix. ;;; @@ -31,6 +32,7 @@ (define-module (gnu packages security-token) #:use-module (guix build-system glib-or-gtk) #:use-module (gnu packages autotools) #:use-module (gnu packages curl) + #:use-module (gnu packages docbook) #:use-module (gnu packages gettext) #:use-module (gnu packages gtk) #:use-module (gnu packages libusb) @@ -38,6 +40,7 @@ (define-module (gnu packages security-token) #:use-module (gnu packages man) #:use-module (gnu packages networking) #:use-module (gnu packages cyrus-sasl) + #:use-module (gnu packages readline) #:use-module (gnu packages tls) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -202,3 +205,51 @@ (define-public ykclient website for more information about Yubico and the YubiKey.") (home-page "https://developers.yubico.com/yubico-c-client/") (license license:bsd-2))) + +(define-public opensc + (package + (name "opensc") + (version "0.17.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/OpenSC/OpenSC/releases/download/" + version "/opensc-" version ".tar.gz")) + (sha256 + (base32 + "0043jh5g7q2lyd5vnb0akwb5y349isx7vbm9wqhlgav7d20wcwxy")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; By setting an absolute path here, we arrange for OpenSC to + ;; successfully dlopen libpcsclite.so.1 by default. The user can + ;; still override this if they want to, by specifying a custom OpenSC + ;; configuration file at runtime. + (add-after 'unpack 'set-default-libpcsclite.so.1-path + (lambda* (#:key inputs #:allow-other-keys) + (let ((libpcsclite (string-append (assoc-ref inputs "pcsc-lite") + "/lib/libpcsclite.so.1"))) + (substitute* "configure" + (("DEFAULT_PCSC_PROVIDER=\"libpcsclite\\.so\\.1\"") + (string-append + "DEFAULT_PCSC_PROVIDER=\"" libpcsclite "\""))) + #t)))))) + (inputs + `(("readline" ,readline) + ("openssl" ,openssl) + ("pcsc-lite" ,pcsc-lite) + ("ccid" ,ccid))) + (native-inputs + `(("libxslt" ,libxslt) + ("docbook-xsl" ,docbook-xsl) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/OpenSC/OpenSC/wiki") + (synopsis "Tools and libraries related to smart cards") + (description + "OpenSC is a set of software tools and libraries to work with smart +cards, with the focus on smart cards with cryptographic capabilities. OpenSC +facilitate the use of smart cards in security applications such as +authentication, encryption and digital signatures. OpenSC implements the PKCS +#15 standard and the PKCS #11 API.") + (license license:lgpl2.1+))) -- cgit v1.2.3 From ba8d8820fc823eff8e71ab3157e3728f67094373 Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sat, 28 Apr 2018 03:44:09 -0700 Subject: gnu: Add yubico-piv-tool. * gnu/packages/security-token.scm (yubico-piv-tool): New variable. --- gnu/packages/security-token.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'gnu/packages/security-token.scm') diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 305e3d8a4e..9d9580ca7b 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -32,8 +32,11 @@ (define-module (gnu packages security-token) #:use-module (guix build-system glib-or-gtk) #:use-module (gnu packages autotools) #:use-module (gnu packages curl) + #:use-module (gnu packages check) #:use-module (gnu packages docbook) + #:use-module (gnu packages documentation) #:use-module (gnu packages gettext) + #:use-module (gnu packages graphviz) #:use-module (gnu packages gtk) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) @@ -42,6 +45,7 @@ (define-module (gnu packages security-token) #:use-module (gnu packages cyrus-sasl) #:use-module (gnu packages readline) #:use-module (gnu packages tls) + #:use-module (gnu packages tex) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xml)) @@ -253,3 +257,38 @@ (define-public opensc authentication, encryption and digital signatures. OpenSC implements the PKCS #15 standard and the PKCS #11 API.") (license license:lgpl2.1+))) + +(define-public yubico-piv-tool + (package + (name "yubico-piv-tool") + (version "1.5.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://developers.yubico.com/yubico-piv-tool/Releases/" + name "-" version ".tar.gz")) + (sha256 + (base32 + "1axa0lnky5gsc8yack6mpfbjh49z0czr1cv52gbgjnx2kcbpb0y1")))) + (build-system gnu-build-system) + (inputs + `(("perl" ,perl) + ("pcsc-lite" ,pcsc-lite) + ("openssl" ,openssl))) + (native-inputs + `(("doxygen" ,doxygen) + ("graphviz" ,graphviz) + ("check" ,check) + ("texlive-bin" ,texlive-bin) + ("pkg-config" ,pkg-config))) + (home-page "https://developers.yubico.com/yubico-piv-tool/") + (synopsis "Interact with the PIV application on a YubiKey") + (description + "The Yubico PIV tool is used for interacting with the Privilege and +Identification Card (PIV) application on a YubiKey. With it you may generate +keys on the device, import keys and certificates, create certificate requests, +and other operations. It includes a library and a command-line tool.") + ;; The file ykcs11/pkcs11.h also declares an additional, very short free + ;; license for that one file. Please see it for details. The vast + ;; majority of files are licensed under bsd-2. + (license license:bsd-2))) -- cgit v1.2.3 From 01c6607af9f308aa85483b096153c8f9c6b6adb1 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 4 Jun 2018 18:19:43 +0200 Subject: gnu: ccid, pcsc-lite: Move away from alioth.debian.org. * gnu/packages/security-token.scm (ccid, pcsc-lite)[source, home-page]: Update upstream URI. --- gnu/packages/security-token.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gnu/packages/security-token.scm') diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 9d9580ca7b..9c8474dd02 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2016 Mike Gerwitz ;;; Copyright © 2016 Marius Bakke ;;; Copyright © 2017 Thomas Danckaert -;;; Copyright © 2017 Tobias Geerinckx-Rice +;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice ;;; Copyright © 2017 Ricardo Wurmus ;;; Copyright © 2018 Chris Marusich ;;; @@ -57,8 +57,8 @@ (define-public ccid (source (origin (method url-fetch) (uri (string-append - "https://alioth.debian.org/frs/download.php/file/4238/" - "ccid-" version ".tar.bz2")) + "https://ccid.apdu.fr/files/" + name "-" version ".tar.bz2")) (sha256 (base32 "0kdqmbma6sclsrbxy9w85h7cs0v11if4nc2r9v09613k8pl2lhx5")))) @@ -79,7 +79,7 @@ (define-public ccid (inputs `(("libusb" ,libusb) ("pcsc-lite" ,pcsc-lite))) - (home-page "https://pcsclite.alioth.debian.org/ccid.html") + (home-page "https://ccid.apdu.fr/") (synopsis "PC/SC driver for USB smart card devices") (description "This package provides a PC/SC IFD handler implementation for devices @@ -157,8 +157,8 @@ (define-public pcsc-lite (source (origin (method url-fetch) (uri (string-append - "https://alioth.debian.org/frs/download.php/file/4235/" - "pcsc-lite-" version ".tar.bz2")) + "https://pcsclite.apdu.fr/files/" + name "-" version ".tar.bz2")) (sha256 (base32 "1jc9ws5ra6v3plwraqixin0w0wfxj64drahrbkyrrwzghqjjc9ss")))) @@ -171,7 +171,7 @@ (define-public pcsc-lite ("pkg-config" ,pkg-config))) (inputs `(("libudev" ,eudev))) - (home-page "https://pcsclite.alioth.debian.org/pcsclite.html") + (home-page "https://pcsclite.apdu.fr/") (synopsis "Middleware to access a smart card using PC/SC") (description "pcsc-lite provides an interface to communicate with smartcards and -- cgit v1.2.3