From patchwork Sun Jul 24 00:09:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Denis 'GNUtoo' Carikli X-Patchwork-Id: 40888 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CFDF627BBEA; Sun, 24 Jul 2022 01:10:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 81C8927BBE9 for ; Sun, 24 Jul 2022 01:10:15 +0100 (BST) Received: from localhost ([::1]:44038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFPCI-0002eP-IM for patchwork@mira.cbaines.net; Sat, 23 Jul 2022 20:10:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFPC6-0002cr-Bd for guix-patches@gnu.org; Sat, 23 Jul 2022 20:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFPC6-0000ok-1g for guix-patches@gnu.org; Sat, 23 Jul 2022 20:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFPC5-0000IT-UD for guix-patches@gnu.org; Sat, 23 Jul 2022 20:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56731] [PATCH] gnu: Add cardpeek Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Jul 2022 00:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56731 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56731@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16586213681092 (code B ref -1); Sun, 24 Jul 2022 00:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jul 2022 00:09:28 +0000 Received: from localhost ([127.0.0.1]:46553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFPBX-0000HY-Pn for submit@debbugs.gnu.org; Sat, 23 Jul 2022 20:09:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:58934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFPBV-0000HQ-NG for submit@debbugs.gnu.org; Sat, 23 Jul 2022 20:09:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFPBV-0002BI-Ie for guix-patches@gnu.org; Sat, 23 Jul 2022 20:09:25 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:60708 helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oFPBR-0000jX-V5 for guix-patches@gnu.org; Sat, 23 Jul 2022 20:09:25 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 0c008294; Sun, 24 Jul 2022 00:08:51 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id ec568503; Sun, 24 Jul 2022 00:08:51 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Sun, 24 Jul 2022 02:09:14 +0200 Message-Id: <20220724000914.3810-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2001:910:1314:ffff::1; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/security-token.scm (cardpeek): New variable. Signed-off-by: Denis 'GNUtoo' Carikli --- gnu/packages/security-token.scm | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) base-commit: 7aab4eddd04e4b26986903680b28dce2de0f4db0 diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 74ea57137f..465dff7ec5 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2021 Ahmad Jarara ;;; Copyright © 2022 John Kehayias ;;; Copyright © 2022 Petr Hodina +;;; Copyright © 2022 Denis 'GNUtoo' Carikli ;;; ;;; This file is part of GNU Guix. ;;; @@ -55,6 +56,7 @@ (define-module (gnu packages security-token) #:use-module (gnu packages documentation) #:use-module (gnu packages dns) #:use-module (gnu packages gettext) + #:use-module (gnu packages glib) #:use-module (gnu packages graphviz) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) @@ -62,6 +64,7 @@ (define-module (gnu packages security-token) #:use-module (gnu packages libbsd) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) + #:use-module (gnu packages lua) #:use-module (gnu packages man) #:use-module (gnu packages networking) #:use-module (gnu packages cyrus-sasl) @@ -922,3 +925,48 @@ (define-public libfido2 libfido2 supports the FIDO U2F (CTAP 1) and FIDO 2.0 (CTAP 2) protocols.") (license license:bsd-2) (home-page "https://github.com/Yubico/libfido2"))) + +(define-public cardpeek + (package + (name "cardpeek") + (version "0.8.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/L1L1/cardpeek") + (commit (string-append "cardpeek-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ighpl7nvcvwnsd6r5h5n9p95kclwrq99hq7bry7s53yr57l6588")))) + (inputs (list curl + gtk+ + lua-5.2 + openssl + pcsc-lite + readline)) + (native-inputs (list autoconf + automake + `(,glib "bin") ;for glib-compile-resources + libtool + pkg-config)) + (build-system gnu-build-system) + (synopsis "Tool to read the contents of various smart cards") + (description + "Cardpeek is a graphical tool to read the contents of ISO7816 smart cards. +It is extensible with the LUA scripting language. + +It supports the following type of cards: +@itemize +@item Bank cards (VISA, MasterCard, CB and UK Post Office Account cards) +@item Passports and the Belgian identity card +@item Transport cards (Navigo, MOBIB, RavKav and VIVA cards) +@item Older GSM SIM cards without USIM data +@item Vitale 2 Health card +@item Moneo Electronic purse card +@item Driver Tachograph cards +@item OpenPGP Cards (beta) +@end itemize +It also has limited support for Mifare Classic compatible cards (Thalys card)") + (license license:gpl3+) + (home-page "http://pannetrat.com/Cardpeek")))