Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/1] package/opensc: new package
Date: Thu, 15 Oct 2020 17:36:51 +0300	[thread overview]
Message-ID: <87ft6fsgho.fsf@tarshish> (raw)
In-Reply-To: <EoHQ0C-Dvp4Cia0SheSoUxrsbGY8PqLc0VwsEXEVIbzeFmLwuA4h4gQTp7eGKuIqb9TX6g2Apca783OZnilduGGOI99CzvA5jtVnT2DV66E=@protonmail.com>

Hi Yair,

On Thu, Oct 15 2020, Yair Ben-Avraham via buildroot wrote:
> 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 <yairba@protonmail.com>
> ---
>  package/Config.in          |  1 +
>  package/opensc/Config.in   | 24 ++++++++++++++++++++++++
>  package/opensc/opensc.hash |  3 +++
>  package/opensc/opensc.mk   | 14 ++++++++++++++
>  4 files changed, 42 insertions(+)
>  create mode 100644 package/opensc/Config.in
>  create mode 100644 package/opensc/opensc.hash
>  create mode 100644 package/opensc/opensc.mk
>
> 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..596f50aa65
> --- /dev/null
> +++ b/package/opensc/Config.in
> @@ -0,0 +1,24 @@
> +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_USE_WCHAR
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
> +		BR2_STATIC_LIBS

We want to show this comment when any one of the dependencies) is not
satisfied (except from MMU). So

	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR \
		|| BR2_STATIC_LIBS

baruch

> 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))


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

      reply	other threads:[~2020-10-15 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15 13:29 [Buildroot] [PATCH v2 1/1] package/opensc: new package Yair Ben-Avraham
2020-10-15 14:36 ` Baruch Siach [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft6fsgho.fsf@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox