summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2019-02-05 11:29:46 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-02-06 07:15:53 +0100
commit55cbdcda333faa94b7f11db7add7734d3438a358 (patch)
tree544713c8607e954c7a8e38fa254d15251f7a45f7
parent3714ebf885d88981c8fd1bf5abbbdb7a76ca2331 (diff)
downloadptxdist-55cbdcda333faa94b7f11db7add7734d3438a358.tar.gz
ptxdist-55cbdcda333faa94b7f11db7add7734d3438a358.tar.xz
p11-kit: add as new target package
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/p11-kit.in23
-rw-r--r--rules/p11-kit.make68
2 files changed, 91 insertions, 0 deletions
diff --git a/rules/p11-kit.in b/rules/p11-kit.in
new file mode 100644
index 000000000..ba183207c
--- /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 000000000..b03d8cd83
--- /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