From patchwork Thu Oct 15 15:01:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yair Ben-Avraham X-Patchwork-Id: 1382728 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=protonmail.com header.i=@protonmail.com header.a=rsa-sha256 header.s=protonmail header.b=hgHH3yMg; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CBsv86F4Sz9sRk for ; Fri, 16 Oct 2020 02:01:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 87AF4203E7; Thu, 15 Oct 2020 15:01:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BaKwj4uLX9Db; Thu, 15 Oct 2020 15:01:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C76BC2E64E; Thu, 15 Oct 2020 15:01:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 2E86B1BF3D5 for ; Thu, 15 Oct 2020 15:01:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 28E7D8829F for ; Thu, 15 Oct 2020 15:01:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dPU1k8YQMGTk for ; Thu, 15 Oct 2020 15:01:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3E64388280 for ; Thu, 15 Oct 2020 15:01:46 +0000 (UTC) Date: Thu, 15 Oct 2020 15:01:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1602774103; bh=PpWIZoy/gSbTBS3WY7Ojqu1SfeVeer0Gi4+WAE92sM4=; h=Date:To:From:Reply-To:Subject:From; b=hgHH3yMghwZ5VvrA+5Stuny1uMuvgda9GKuRDD64GIQZF5nlBJs6/ZJwuBzhgAvoY z3vwFhun3fD7gLwV657aNT/cs/Zu+DfwFpdWJG0ltFV1tt+DLMiVMenPzbhnr7zqqV yNhVYWzGV9vaAwPIE41suKfZUm6GovBdTU2m2w7w= To: "buildroot@buildroot.org" Message-ID: MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 1/1] package/opensc: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Yair Ben-Avraham via buildroot From: Yair Ben-Avraham Reply-To: Yair Ben-Avraham Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Open source smart card tools and middleware. OpenSC provides a set of libraries and utilities to work with smart cards. Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as authentication, mail encryption and digital signatures. OpenSC implements the standard APIs to smart cards, e.g. PKCS#11 API, Windows’ Smart Card Minidriver and macOS CryptoTokenKit. Signed-off-by: Yair Ben-Avraham --- package/Config.in | 1 + package/opensc/Config.in | 23 +++++++++++++++++++++++ package/opensc/opensc.hash | 3 +++ package/opensc/opensc.mk | 14 ++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 package/opensc/Config.in create mode 100644 package/opensc/opensc.hash create mode 100644 package/opensc/opensc.mk -- 2.20.1 diff --git a/package/Config.in b/package/Config.in index 09a332e3b9..1a697352c9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1353,6 +1353,7 @@ menu "Crypto" source "package/libuecc/Config.in" source "package/mbedtls/Config.in" source "package/nettle/Config.in" + source "package/opensc/Config.in" source "package/openssl/Config.in" source "package/pkcs11-helper/Config.in" source "package/rhash/Config.in" diff --git a/package/opensc/Config.in b/package/opensc/Config.in new file mode 100644 index 0000000000..973c50caec --- /dev/null +++ b/package/opensc/Config.in @@ -0,0 +1,23 @@ +config BR2_PACKAGE_OPENSC + bool "opensc" + depends on BR2_TOOLCHAIN_HAS_THREADS # pcsc-lite, libusb + depends on BR2_USE_MMU # pcsc-lite + depends on BR2_USE_WCHAR # wprintf + depends on !BR2_STATIC_LIBS # pcsc-lite + select BR2_PACKAGE_LIBUSB + select BR2_PACKAGE_PCSC_LITE + help + Open source smart card tools and middleware. + OpenSC provides a set of libraries and utilities to work with smart + cards. Its main focus is on cards that support cryptographic + operations, and facilitate their use in security applications such as + authentication, mail encryption and digital signatures. OpenSC + implements the standard APIs to smart cards, e.g. PKCS#11 API, + Windows’ Smart Card Minidriver and macOS CryptoTokenKit. + + https://github.com/OpenSC/OpenSC + +comment "opensc needs a toolchain w/ wchar threads, dynamic library" + depends on BR2_USE_MMU + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR \ + || BR2_STATIC_LIBS diff --git a/package/opensc/opensc.hash b/package/opensc/opensc.hash new file mode 100644 index 0000000000..aceb51e2de --- /dev/null +++ b/package/opensc/opensc.hash @@ -0,0 +1,3 @@ +# Locally computed: +sha256 bbf4b4f4a44463645c90a525e820a8059b2f742a53b7b944f941de3c97ba4863 opensc-0.20.0.tar.gz +sha256 a190dc9c8043755d90f8b0a75fa66b9e42d4af4c980bf5ddc633f0124db3cee7 COPYING diff --git a/package/opensc/opensc.mk b/package/opensc/opensc.mk new file mode 100644 index 0000000000..8bd6fceece --- /dev/null +++ b/package/opensc/opensc.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# opensc +# +################################################################################ + +OPENSC_VERSION = 0.20.0 +OPENSC_SITE = https://github.com/OpenSC/OpenSC/releases/download/$(OPENSC_VERSION) +OPENSC_LICENSE = LGPL-2.1+ +OPENSC_LICENSE_FILES = COPYING +OPENSC_INSTALL_STAGING = YES +OPENSC_DEPENDENCIES = libusb pcsc-lite + +$(eval $(autotools-package))