From patchwork Sun Jun 13 07:18:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Trofimov X-Patchwork-Id: 30208 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 E4A8B27BC78; Sun, 13 Jun 2021 08:19:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EEC0D27BC81 for ; Sun, 13 Jun 2021 08:19:10 +0100 (BST) Received: from localhost ([::1]:37400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsKOj-0005Xu-U0 for patchwork@mira.cbaines.net; Sun, 13 Jun 2021 03:19:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsKOd-0005Xl-Ej for guix-patches@gnu.org; Sun, 13 Jun 2021 03:19:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsKOc-0000jB-5k for guix-patches@gnu.org; Sun, 13 Jun 2021 03:19:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lsKOc-0005ye-3B for guix-patches@gnu.org; Sun, 13 Jun 2021 03:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48997] [PATCH] gnu: Add ausweisapp2. Resent-From: Sergey Trofimov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 13 Jun 2021 07:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48997 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48997@debbugs.gnu.org Cc: Sergey Trofimov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162356870722931 (code B ref -1); Sun, 13 Jun 2021 07:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Jun 2021 07:18:27 +0000 Received: from localhost ([127.0.0.1]:42506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsKO3-0005xn-Ad for submit@debbugs.gnu.org; Sun, 13 Jun 2021 03:18:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:52172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsKO0-0005xf-JP for submit@debbugs.gnu.org; Sun, 13 Jun 2021 03:18:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsKO0-0004sz-CP for guix-patches@gnu.org; Sun, 13 Jun 2021 03:18:24 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:38728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsKNx-00008M-Lw for guix-patches@gnu.org; Sun, 13 Jun 2021 03:18:24 -0400 Received: by mail-wr1-x42c.google.com with SMTP id c9so10677077wrt.5 for ; Sun, 13 Jun 2021 00:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sarg.org.ru; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jsygW801Uwy4TN3KhsePcpi3OiHF4C3eXZaiU5vbqKg=; b=dv6yk5O08zrsaGcOy9Wvu5ICi8Wsyrow/jSzU76MEICL8+qaKqlEBxjuRGa2ZJVHZd DxwSpKpnPyqxY0DSkvLhLQ7DjFyPj7jARjhhCL5IX9VPqV+/iR6oxKDoLhibKIClMwUX p+6jq4tASMTjg8/oGcAgSkyoMAn2hP41eOq40= 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:mime-version :content-transfer-encoding; bh=jsygW801Uwy4TN3KhsePcpi3OiHF4C3eXZaiU5vbqKg=; b=lLbj7d7xvd1MQ+4XVIJrQaMi/Ll0Y0eUeEHc/1K+iflpkdUVT3TR4LMUyuwK/n4B2M 9SXBXlJ68w5IwnFUQkRG4jU9a9A1u1VUXtmxtwLbiS9cXkAJ3Kquy+qraGBOUyJsfRxQ nZObn8Pjam3wZgrfn1iZjPRqW5QIIH+5jbB22pEEXXgGQSsVdmGIPfIqOiJmrhNdVoED D3PpwU6f6AWjglWqSSwZ61q0l68riPV/ueIYADyff037eeoIi7ZkJcNjpoeuSHyHpE3z 9mi25ToP2Z+DduVdSg10Pt+O8ZJAbJR6eaMcXTn7y8wizF3PGjqfyPK2bD7jSizvtunz KkQg== X-Gm-Message-State: AOAM532qabaQQ4SvthIWZxF4KII6u0TSTiY7UBBt36jRMLKI4twQ/o26 ou45nsMtiBVF+fHPeSAZaOs5cHA81YRzLw== X-Google-Smtp-Source: ABdhPJyi0US44BQ5rEa7v9JDoALyD7uPNF37pveU/q+jWv7A7FbzECmuDFHaa0fHkwmHQFG0NoChHg== X-Received: by 2002:a5d:6acf:: with SMTP id u15mr12682040wrw.262.1623568698103; Sun, 13 Jun 2021 00:18:18 -0700 (PDT) Received: from localhost ([92.206.237.187]) by smtp.gmail.com with ESMTPSA id b135sm17289751wmb.5.2021.06.13.00.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 00:18:17 -0700 (PDT) From: Sergey Trofimov Date: Sun, 13 Jun 2021 09:18:37 +0200 Message-Id: <20210613071837.12152-1-sarg@sarg.org.ru> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Received-SPF: none client-ip=2a00:1450:4864:20::42c; envelope-from=sarg@sarg.org.ru; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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 | 55 +++++++++++++++++++++++++++++++++ guix/licenses.scm | 6 ++++ 2 files changed, 61 insertions(+) diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 89783de965..da1334f1bf 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -34,6 +34,7 @@ #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix build-system cargo) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system python) @@ -56,6 +57,7 @@ #:use-module (gnu packages cyrus-sasl) #:use-module (gnu packages popt) #:use-module (gnu packages readline) + #:use-module (gnu packages qt) #:use-module (gnu packages tls) #:use-module (gnu packages tex) #:use-module (gnu packages perl) @@ -720,3 +722,56 @@ an unprivileged user.") for interaction with Nitrokey Pro, Nitrokey Storage, and Librem Key devices.") (license license:gpl3+))) + +(define-public ausweisapp2 + (package + (name "ausweisapp2") + (version "1.22.2") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/Governikus/AusweisApp2/releases" + "/download/" version "/AusweisApp2-" version ".tar.gz")) + (sha256 + (base32 + "1qh1m057va7njs3yk0s31kwsvv44fjlsdac6lhiw5npcwssgjn8l")))) + + (build-system cmake-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("qttools" ,qttools))) + (inputs `(("qtbase" ,qtbase) + ("qtsvg" ,qtsvg) + ("qtdeclarative" ,qtdeclarative) + ("qtwebsockets" ,qtwebsockets) + ("qtgraphicaleffects" ,qtgraphicaleffects) + ("qtquickcontrols2" ,qtquickcontrols2) + ("pcsc-lite" ,pcsc-lite) + ("openssl" ,openssl))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-executable + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/AusweisApp2") + `("QT_PLUGIN_PATH" ":" prefix + ,(map (lambda (label) + (string-append (assoc-ref inputs label) + "/lib/qt5/plugins")) + '("qtbase" "qtdeclarative" + "qtsvg" "qtwebsockets"))) + `("QML2_IMPORT_PATH" ":" prefix + ,(map (lambda (label) + (string-append (assoc-ref inputs label) + "/lib/qt5/qml")) + '("qtdeclarative" "qtgraphicaleffects" + "qtquickcontrols2" "qtsvg")))) + #t)))))) + (home-page "https://github.com/Governikus/AusweisApp2") + (synopsis + "Official authentication app for German ID cards and residence permits") + (description + "This app is developed and issued by the German government to be used for online +authentication with electronic German ID cards and residence titles. To use this app, +a supported RFID card reader or NFC-enabled smart phone is required.") + (license license:eupl1.2))) diff --git a/guix/licenses.scm b/guix/licenses.scm index e7457799ce..c455cc8c39 100644 --- a/guix/licenses.scm +++ b/guix/licenses.scm @@ -56,6 +56,7 @@ edl1.0 epl1.0 epl2.0 + eupl1.2 expat freetype freebsd-doc @@ -307,6 +308,11 @@ at URI, which may be a file:// URI pointing the package's tree." "https://www.eclipse.org/legal/epl-2.0/" "https://www.gnu.org/licenses/license-list#EPL2")) +(define eupl1.2 + (license "EUPL 1.2" + "https://directory.fsf.org/wiki/License:EUPL-1.2" + "https://www.gnu.org/licenses/license-list#EPL2")) + (define expat (license "Expat" "http://directory.fsf.org/wiki/License:Expat"