From patchwork Sat Apr 20 01:07:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Marusich X-Patchwork-Id: 9601 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 B73E616ECD; Sat, 20 Apr 2019 02:09:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 415C716EA1 for ; Sat, 20 Apr 2019 02:09:34 +0100 (BST) Received: from localhost ([127.0.0.1]:35165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHeVZ-0001Qr-S4 for patchwork@mira.cbaines.net; Fri, 19 Apr 2019 21:09:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHeV7-00017t-BQ for guix-patches@gnu.org; Fri, 19 Apr 2019 21:09:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHeV6-0003d3-4U for guix-patches@gnu.org; Fri, 19 Apr 2019 21:09:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHeV6-0003cp-1I for guix-patches@gnu.org; Fri, 19 Apr 2019 21:09:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hHeV5-0006b6-Rz for guix-patches@gnu.org; Fri, 19 Apr 2019 21:09:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35333] [PATCH 3/6] gnu: Add libu2f-host. Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Apr 2019 01:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35333 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35333@debbugs.gnu.org Received: via spool by 35333-submit@debbugs.gnu.org id=B35333.155572252525281 (code B ref 35333); Sat, 20 Apr 2019 01:09:03 +0000 Received: (at 35333) by debbugs.gnu.org; 20 Apr 2019 01:08:45 +0000 Received: from localhost ([127.0.0.1]:45106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHeUn-0006Zb-6u for submit@debbugs.gnu.org; Fri, 19 Apr 2019 21:08:45 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:40764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHeUf-0006Ye-C2 for 35333@debbugs.gnu.org; Fri, 19 Apr 2019 21:08:38 -0400 Received: by mail-pf1-f179.google.com with SMTP id c207so3190193pfc.7 for <35333@debbugs.gnu.org>; Fri, 19 Apr 2019 18:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X5jkl8Zboi2HkA7x4iQS8QxcX782k08IDp2k7MK5GBo=; b=NqauP8jk+XAZsRDiI9HRpeLcOmSieTy1B4JeLBfaGQbYh/8L0ObzPLadPo5E9m6t4A eyBs2gHm9P53ox9TWN2YRscvhI/xdv92TdjKhr87kLfMFRhtinLNHrtd7fOukpudcswU jO8GI8/s0usJ/lCTJ48XKh5W9SHHazoy2zHGbfnB5gdi4QqHfXvVrlMoUPp+SxfkVtKD iDJRwww5cYvtMZTIhVwbMQZOk/T/ZEcSkRSIh6PbnbfXt2fCqmiqqcq9caPDbYIPDPZU MEiG4NVA5I/3O0fhFrXwrxtgpVtbkDQvdtiPTn+vi7vWGLjS0zcIHS/0/ZEH2XMSXDCn Vh+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X5jkl8Zboi2HkA7x4iQS8QxcX782k08IDp2k7MK5GBo=; b=KlWgyT6247fBuU4hxN78G/Jlf3BUpUSecC14wOPLwg26+OCSHUoiUSfoK+co8Ekbwh SZV36HVhR93BC+aIz8GTXP0h2vmc6fkN7K7Ajcg3+Kp5wtOJ0eP4RoWmxlj+j0zs3EYG /fdJ8Xrm6RkyA3y2Y9Qp2vWj0Ggr3xRNSlFa0z/yUYL4/AZFMY26Ya/WMbzTtxyr3TbI kWp/hkkF0CfHbK8bzg4JZGGp7YZe6jkU1R3vc2xybhOO7qkRny7Rxvs04t0U6plgJf6A CKIaELiIUl5rZNoBcb6G8Jma6bl0+d7t7kgcReeo8wi/DeWkmM4vhhUvV39WBSWLxdPM qfvA== X-Gm-Message-State: APjAAAULTUy7t+eKRiZ1rxPObcYgaMX4zOdr+giPcMGRwDGGTeKwPZMC kCzF9Yt5akbnpI+vPglYUWJimMt2 X-Google-Smtp-Source: APXvYqyYmvechr+IyWF2X1C+pIDN7hglDL3xMvRccmkPnTfnKilsGdRNPId5r7WqqAW3SQhECl6Yuw== X-Received: by 2002:a63:1a42:: with SMTP id a2mr6685755pgm.358.1555722511043; Fri, 19 Apr 2019 18:08:31 -0700 (PDT) Received: from garuda.lan ([2601:601:9d80:25b2::fa8]) by smtp.gmail.com with ESMTPSA id h16sm8876885pgj.85.2019.04.19.18.08.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 18:08:30 -0700 (PDT) From: Chris Marusich Date: Fri, 19 Apr 2019 18:07:57 -0700 Message-Id: <20190420010800.5741-4-cmmarusich@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190420010800.5741-1-cmmarusich@gmail.com> References: <20190420003814.5120-1-cmmarusich@gmail.com> <20190420010800.5741-1-cmmarusich@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Marusich 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 (libu2f-host): New variable. --- gnu/packages/security-token.scm | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 52bd80780c..26541b3d09 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -398,3 +398,54 @@ PCSC API Python wrapper module.") (define-public python2-pyscard (package-with-python2 python-pyscard)) + +(define-public libu2f-host + (package + (name "libu2f-host") + (version "1.1.9") + (source (origin + (method url-fetch) + (uri + (string-append + "https://developers.yubico.com" + "/libu2f-host/Releases/libu2f-host-" version ".tar.xz")) + (sha256 + (base32 + "1hnh3f4scx07v9jfkr1nnxasmydk1cmivn0nijcp2p75bc1fznip")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list "--enable-gtk-doc" + (string-append "--with-udevrulesdir=" + (assoc-ref %outputs "out") + "/lib/udev/rules.d")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-docbook-xml + (lambda* (#:key inputs #:allow-other-keys) + ;; Avoid a network connection attempt during the build. + (substitute* "gtk-doc/u2f-host-docs.xml" + (("http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd") + (string-append (assoc-ref inputs "docbook-xml") + "/xml/dtd/docbook/docbookx.dtd"))) + #t))))) + (inputs + `(("json-c" ,json-c) + ("hidapi" ,hidapi))) + (native-inputs + `(("help2man" ,help2man) + ("gengetopt" ,gengetopt) + ("pkg-config" ,pkg-config) + ("gtk-doc" ,gtk-doc) + ("docbook-xml" ,docbook-xml-4.3) + ("eudev" ,eudev))) + (home-page "https://developers.yubico.com/libu2f-host/") + ;; TRANSLATORS: The U2F protocol has a "server side" and a "host side". + (synopsis "U2F host-side C library and tool") + (description + "Libu2f-host provides a C library and command-line tool that implements +the host-side of the Universal 2nd Factor (U2F) protocol. There are APIs to +talk to a U2F device and perform the U2F Register and U2F Authenticate +operations.") + ;; Most files are LGPLv2.1+, but some files are GPLv3+. + (license (list license:lgpl2.1+ license:gpl3+))))