mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 3/4] libp11: add as new target package
Date: Mon, 4 Feb 2019 15:57:54 +0100	[thread overview]
Message-ID: <20190204145754.l46iru5al37zazqk@pengutronix.de> (raw)
In-Reply-To: <8cb2011a007b97b078fda1a6eeb2827994386c01.1549279006.git-series.r.czerwinski@pengutronix.de>

On Mon, Feb 04, 2019 at 12:17:04PM +0100, Rouven Czerwinski wrote:
> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
> ---
>  rules/libp11.in   | 20 ++++++++++++++++-
>  rules/libp11.make | 59 ++++++++++++++++++++++++++++++++++++++++++++++++-
>  2 files changed, 79 insertions(+)
>  create mode 100644 rules/libp11.in
>  create mode 100644 rules/libp11.make
> 
> diff --git a/rules/libp11.in b/rules/libp11.in
> new file mode 100644
> index 0000000..e0d643f
> --- /dev/null
> +++ b/rules/libp11.in
> @@ -0,0 +1,20 @@
> +## SECTION=security
> +
> +menuconfig LIBP11
> +	tristate
> +	prompt "libp11"

Spaces.

> +	select OPENSSL
> +	help
> +	  libp11 is a library implementing a thin layer on top of PKCS#11 API to
> +	  make using PKCS#11 implementations easier.
> +	  It also includes a pkcs#11 engine implementation for openssl.
> +
> +if LIBP11
> +
> +config LIBP11_PROXY_MODULE
> +	bool
> +	default y
> +	depends on P11_KIT
> +	prompt "Default to p11-kit proxy module"
> +
> +endif
> diff --git a/rules/libp11.make b/rules/libp11.make
> new file mode 100644
> index 0000000..505d2ed
> --- /dev/null
> +++ b/rules/libp11.make
> @@ -0,0 +1,59 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2019 by Rouven Czerwinski <r.czerwinski@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBP11) += libp11
> +
> +#
> +# Paths and names
> +#
> +LIBP11_VERSION	:= 0.4.9
> +LIBP11_MD5	:= 757b23242758a52599cb35f61de11ba2
> +LIBP11		:= libp11-$(LIBP11_VERSION)
> +LIBP11_SUFFIX	:= tar.gz
> +LIBP11_URL	:= https://github.com/OpenSC/libp11/releases/download/$(LIBP11)/$(LIBP11).$(LIBP11_SUFFIX)
> +LIBP11_SOURCE	:= $(SRCDIR)/$(LIBP11).$(LIBP11_SUFFIX)
> +LIBP11_DIR	:= $(BUILDDIR)/$(LIBP11)
> +LIBP11_LICENSE	:= LGPL-2.1-only
> +
> +#
> +# autoconf
> +#
> +LIBP11_CONF_TOOL	:= autoconf
> +LIBP11_CONF_OPT		:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	--disable-strict \
> +	--disable-pedantic \
> +	--disable-api-doc \
> +	--with-enginesdir=/usr/lib/engines
> +ifdef PTXCONF_LIBP11_PROXY_MODULE
> +	LIBP11_CONF_OPT += --with-pkcs11-module=p11-kit-proxy.so
> +else
> +	LIBP11_CONF_OPT += --with-pkcs11-module=
> +endif

	--with-pkcs11-module=$(call ptx/ifdef,PTXCONF_LIBP11_PROXY_MODULE,p11-kit-proxy.so)

and make sure the options are ordered correctly.

> +
> +$(STATEDIR)/libp11.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, libp11)
> +	@$(call install_fixup, libp11,PRIORITY,optional)
> +	@$(call install_fixup, libp11,SECTION,base)
> +	@$(call install_fixup, libp11,AUTHOR,"Rouven Czerwinski <r.czerwinski@pengutronix.de>")
> +	@$(call install_fixup, libp11,DESCRIPTION,missing)
> +
> +	@$(call install_lib,  libp11, 0, 0, 0644, libp11)
> +	@$(call install_copy, libp11, 0, 0, 0644, -, \
		/usr/lib/engines/pkcs11.so)

break

> +	@$(call install_link, libp11, pkcs11.so, \
		/usr/lib/engines/libpkcs11.so)

Michael

> +
> +	@$(call install_finish, libp11)
> +
> +	@$(call touch)
> -- 
> git-series 0.9.1
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2019-02-04 14:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-04 11:17 [ptxdist] [PATCH 0/4] P11-kit and libp11 Rouven Czerwinski
2019-02-04 11:17 ` [ptxdist] [PATCH 1/4] p11-kit: add as new target package Rouven Czerwinski
2019-02-04 13:19   ` Michael Olbrich
2019-02-04 14:33     ` Rouven Czerwinski
2019-02-04 14:59   ` Michael Olbrich
2019-02-04 11:17 ` [ptxdist] [PATCH 2/4] host-p11-kit: remove paths and name definitions Rouven Czerwinski
2019-02-04 11:17 ` [ptxdist] [PATCH 3/4] libp11: add as new target package Rouven Czerwinski
2019-02-04 14:57   ` Michael Olbrich [this message]
2019-02-04 11:17 ` [ptxdist] [PATCH 4/4] host-libp11: remove paths and names Rouven Czerwinski

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=20190204145754.l46iru5al37zazqk@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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