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 1/4] p11-kit: add as new target package
Date: Mon, 4 Feb 2019 15:59:24 +0100	[thread overview]
Message-ID: <20190204145924.yqmcw4zfd6b5syvh@pengutronix.de> (raw)
In-Reply-To: <0ac418667aff5d9fba424610e133b8bfb41a2a18.1549279006.git-series.r.czerwinski@pengutronix.de>

On Mon, Feb 04, 2019 at 12:17:02PM +0100, Rouven Czerwinski wrote:
> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
> ---
>  rules/p11-kit.in   |  23 +++++++++-
>  rules/p11-kit.make | 114 ++++++++++++++++++++++++++++++++++++++++++++++-
>  2 files changed, 137 insertions(+)
>  create mode 100644 rules/p11-kit.in
>  create mode 100644 rules/p11-kit.make
> 
> diff --git a/rules/p11-kit.in b/rules/p11-kit.in
> new file mode 100644
> index 0000000..c6085be
> --- /dev/null
> +++ b/rules/p11-kit.in
> @@ -0,0 +1,23 @@
> +## SECTION=security
> +
> +menuconfig P11_KIT
> +	tristate
> +	select LIBFFI
> +	prompt "p11-kit                                 "
> +	help
> +	  Provides a way to load and enumerate PKCS#11 modules. Provides a
> +	  standard configuration setup for installing PKCS#11 modules in such a
> +	  way that they're discoverable.
> +
> +	  Also solves problems with coordinating the use of PKCS#11 by different
> +	  components or libraries living in the same process.
> +
> +if P11_KIT
> +
> +config P11_KIT_SYSTEMD_UNIT
> +	bool
> +	default y
> +	depends on SYSTEMD
> +	prompt "install systemd unit file for p11-kit"
> +
> +endif
> diff --git a/rules/p11-kit.make b/rules/p11-kit.make
> new file mode 100644
> index 0000000..3580d54
> --- /dev/null
> +++ b/rules/p11-kit.make
> @@ -0,0 +1,114 @@
> +# -*-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_P11_KIT) += p11-kit
> +
> +#
> +# Paths and names
> +#
> +P11_KIT_VERSION	:= 0.23.15
> +P11_KIT_MD5	:= c4c3eecfe6bd6e62e436f62b51980749
> +P11_KIT		:= p11-kit-$(P11_KIT_VERSION)
> +P11_KIT_SUFFIX	:= tar.gz
> +P11_KIT_URL	:= https://github.com/p11-glue/p11-kit/releases/download/$(P11_KIT_VERSION)/$(P11_KIT).$(P11_KIT_SUFFIX)
> +P11_KIT_SOURCE	:= $(SRCDIR)/$(P11_KIT).$(P11_KIT_SUFFIX)
> +P11_KIT_DIR	:= $(BUILDDIR)/$(P11_KIT)
> +P11_KIT_LICENSE	:= BSD-3-Clause
> +
> +# ----------------------------------------------------------------------------
> +# Get
> +# ----------------------------------------------------------------------------
> +
> +#$(P11_KIT_SOURCE):
> +#	@$(call targetinfo)
> +#	@$(call get, P11_KIT)
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#P11_KIT_CONF_ENV	:= $(CROSS_ENV)
> +
> +#
> +# autoconf
> +#
> +P11_KIT_CONF_TOOL	:= autoconf
> +P11_KIT_CONF_OPT		:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	--disable-trust-module \
> +	--disable-doc \
> +	--disable-doc-html \
> +	--disable-doc-pdf \
> +	--without-libtasn1 \
> +	--with-libffi \
> +	--with-systemd \
> +
> +#$(STATEDIR)/p11-kit.prepare:
> +#	@$(call targetinfo)
> +#	@$(call clean, $(P11_KIT_DIR)/config.cache)
> +#	cd $(P11_KIT_DIR) && \
> +#		$(P11_KIT_PATH) $(P11_KIT_ENV) \
> +#		./configure $(P11_KIT_CONF_OPT)
> +#	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Compile
> +# ----------------------------------------------------------------------------
> +
> +#$(STATEDIR)/p11-kit.compile:
> +#	@$(call targetinfo)
> +#	@$(call world/compile, P11_KIT)
> +#	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +#$(STATEDIR)/p11-kit.install:
> +#	@$(call targetinfo)
> +#	@$(call world/install, P11_KIT)
> +#	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/p11-kit.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, p11-kit)
> +	@$(call install_fixup, p11-kit,PRIORITY,optional)
> +	@$(call install_fixup, p11-kit,SECTION,base)
> +	@$(call install_fixup, p11-kit,AUTHOR,"Rouven Czerwinski <r.czerwinski@pengutronix.de>")
> +	@$(call install_fixup, p11-kit,DESCRIPTION,missing)
> +
> +	@$(call install_copy, p11-kit, 0, 0, 0755, -, /usr/bin/p11-kit)

> +	@$(call install_copy, p11-kit, 0, 0, 0755, -, /usr/libexec/p11-kit/p11-kit-remote)
> +	@$(call install_copy, p11-kit, 0, 0, 0755, -, /usr/libexec/p11-kit/p11-kit-server)
> +	@$(call install_copy, p11-kit, 0, 0, 0755, -, /usr/lib/pkcs11/p11-kit-client.so)

Break.

> +	@$(call install_link, p11-kit, libp11-kit.so.0.3.0, /usr/lib/p11-kit-proxy.so)

Break and move below the install lib. It makes more sense there.

Michael

> +
> +	@$(call install_lib,  p11-kit, 0, 0, 0644, libp11-kit)
> +	@$(call install_finish, p11-kit)
> +
> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Clean
> +# ----------------------------------------------------------------------------
> +
> +#$(STATEDIR)/p11-kit.clean:
> +#	@$(call targetinfo)
> +#	@$(call clean_pkg, P11_KIT)
> +
> +# vim: syntax=make
> -- 
> 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

  parent reply	other threads:[~2019-02-04 14:59 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 [this message]
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
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=20190204145924.yqmcw4zfd6b5syvh@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