mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: [ptxdist] [PATCH v2 1/4] p11-kit: add as new target package
Date: Tue,  5 Feb 2019 11:29:46 +0100	[thread overview]
Message-ID: <9ba2dc8a49074b72ff27258ecf9562655cf5e35b.1549362574.git-series.r.czerwinski@pengutronix.de> (raw)
In-Reply-To: <cover.d830ecccad6fafa9141451c635a6cb9b191d8992.1549362574.git-series.r.czerwinski@pengutronix.de>

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 rules/p11-kit.in   | 23 ++++++++++++++++-
 rules/p11-kit.make | 68 +++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 91 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..ba18320
--- /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..b03d8cd
--- /dev/null
+++ b/rules/p11-kit.make
@@ -0,0 +1,68 @@
+# -*-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
+
+#
+# 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.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)
+
+	@$(call install_lib,  p11-kit, 0, 0, 0644, libp11-kit)
+	@$(call install_link, p11-kit, libp11-kit.so.0.3.0, \
+		/usr/lib/p11-kit-proxy.so)
+
+	@$(call install_finish, p11-kit)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
git-series 0.9.1

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2019-02-05 10:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-05 10:29 [ptxdist] [PATCH v2 0/4] P11-kit and libp11 Rouven Czerwinski
2019-02-05 10:29 ` Rouven Czerwinski [this message]
2019-02-05 10:29 ` [ptxdist] [PATCH v2 2/4] host-p11-kit: remove paths and name definitions Rouven Czerwinski
2019-02-05 10:29 ` [ptxdist] [PATCH v2 3/4] libp11: add as new target package Rouven Czerwinski
2019-02-05 10:29 ` [ptxdist] [PATCH v2 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=9ba2dc8a49074b72ff27258ecf9562655cf5e35b.1549362574.git-series.r.czerwinski@pengutronix.de \
    --to=r.czerwinski@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