From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: [ptxdist] [PATCH v2 3/4] libp11: add as new target package
Date: Tue, 5 Feb 2019 11:29:48 +0100 [thread overview]
Message-ID: <f7c71ffab05c46531c8b097ffec5169d5376bbb8.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/libp11.in | 20 +++++++++++++++++-
rules/libp11.make | 58 ++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 78 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..147f50a
--- /dev/null
+++ b/rules/libp11.in
@@ -0,0 +1,20 @@
+## SECTION=security
+
+menuconfig LIBP11
+ tristate
+ prompt "libp11 "
+ 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..6a7c39e
--- /dev/null
+++ b/rules/libp11.make
@@ -0,0 +1,58 @@
+# -*-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 \
+ --with-pkcs11-module=$(call ptx/ifdef,PTXCONF_LIBP11_PROXY_MODULE,p11-kit-proxy.so)
+
+$(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)
+
+ @$(call install_link, libp11, pkcs11.so, \
+ /usr/lib/engines/libpkcs11.so)
+
+ @$(call install_finish, libp11)
+
+ @$(call touch)
--
git-series 0.9.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent 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 ` [ptxdist] [PATCH v2 1/4] p11-kit: add as new target package Rouven Czerwinski
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 ` Rouven Czerwinski [this message]
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=f7c71ffab05c46531c8b097ffec5169d5376bbb8.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