mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Thorsten K. Scherer" <t.scherer@eckelmann.de>
To: ptxdist@pengutronix.de
Cc: "Thorsten K. Scherer" <t.scherer@eckelmann.de>
Subject: [ptxdist] [PATCH v2 2/5] ptxdist: add tpm2-abrmd 2.0.3
Date: Mon, 17 Dec 2018 11:49:58 +0100	[thread overview]
Message-ID: <8bfd181ebe294ecdc04727a17e955310817c87b4.1545042465.git.t.scherer@eckelmann.de> (raw)
In-Reply-To: <cover.1545042465.git.t.scherer@eckelmann.de>

Signed-off-by: Thorsten K. Scherer <t.scherer@eckelmann.de>
---
 projectroot/etc/group  |  1 +
 projectroot/etc/passwd |  1 +
 projectroot/etc/shadow |  1 +
 rules/tpm2-abrmd.in    | 16 ++++++++++
 rules/tpm2-abrmd.make  | 72 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 91 insertions(+)
 create mode 100644 rules/tpm2-abrmd.in
 create mode 100644 rules/tpm2-abrmd.make

diff --git a/projectroot/etc/group b/projectroot/etc/group
index ea6127b7a..15e3f91e5 100644
--- a/projectroot/etc/group
+++ b/projectroot/etc/group
@@ -28,3 +28,4 @@ systemd-journal-remote:x:203:
 systemd-journal-upload:x:208:
 render:x:209:
 nogroup:x:65534:
+tss:x:998:
diff --git a/projectroot/etc/passwd b/projectroot/etc/passwd
index 65653c044..d773aa1ee 100644
--- a/projectroot/etc/passwd
+++ b/projectroot/etc/passwd
@@ -14,3 +14,4 @@ systemd-journal-remote:x:207:203:systemd-journal-remote:/dev/null:/bin/false
 systemd-journal-upload:x:208:208:systemd-journal-upload:/dev/null:/bin/false
 rpcuser:x:65533:65534:RPC user:/dev/null:/bin/false
 nobody:x:65534:65534:Unprivileged Nobody:/dev/null:/bin/false
+tss:x:998:998: :/dev/null:/bin/false
diff --git a/projectroot/etc/shadow b/projectroot/etc/shadow
index 02e92ce20..407d5be41 100644
--- a/projectroot/etc/shadow
+++ b/projectroot/etc/shadow
@@ -2,3 +2,4 @@ root::12215:0:99999:7:::
 daemon:*:14250:0:99999:7:::
 sshd:*:0:0:99999:7:::
 ftp::0:0:99999:7:::
+tss:!:17835:0:99999:7:::
diff --git a/rules/tpm2-abrmd.in b/rules/tpm2-abrmd.in
new file mode 100644
index 000000000..1443e2c96
--- /dev/null
+++ b/rules/tpm2-abrmd.in
@@ -0,0 +1,16 @@
+## SECTION=tpm
+
+config TPM2_ABRMD
+	tristate
+	select HOST_AUTOTOOLS_AUTOCONF_ARCHIVE
+	select DBUS
+	select GLIB
+	select TPM2_TSS
+	prompt "tpm2-abrmd"
+	help
+	  TPM2 Access Broker & Resource Management Daemon implementing
+	  the TCG spec.
+
+	  This is a system daemon implementing the TPM2 access broker
+	  (TAB) & Resource Manager (RM) spec from the TCG. The daemon
+	  (tpm2-abrmd) is implemented using Glib and the GObject system.
diff --git a/rules/tpm2-abrmd.make b/rules/tpm2-abrmd.make
new file mode 100644
index 000000000..9cf747d96
--- /dev/null
+++ b/rules/tpm2-abrmd.make
@@ -0,0 +1,72 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Marc Kleine-Budde <mkl@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_TPM2_ABRMD) += tpm2-abrmd
+
+#
+# Paths and names
+#
+TPM2_ABRMD_VERSION     := 2.0.3
+TPM2_ABRMD_MD5         := a71faf008de2e444265b0d1d889cab2e
+TPM2_ABRMD             := tpm2-abrmd-$(TPM2_ABRMD_VERSION)
+TPM2_ABRMD_SUFFIX      := tar.gz
+TPM2_ABRMD_URL         := https://github.com/tpm2-software/tpm2-tss/releases/download/$(TPM2_ABRMD_VERSION)/$(TPM2_ABRMD).$(TPM2_ABRMD_SUFFIX)
+TPM2_ABRMD_SOURCE      := $(SRCDIR)/$(TPM2_ABRMD).$(TPM2_ABRMD_SUFFIX)
+TPM2_ABRMD_DIR         := $(BUILDDIR)/$(TPM2_ABRMD)
+TPM2_ABRMD_LICENSE     := BSD-2-Clause AND BSD-3-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_ABRMD_CONF_TOOL   := autoconf
+TPM2_ABRMD_CONF_OPT    := \
+	$(CROSS_AUTOCONF_USR) \
+	--with-dbuspolicydir=/usr/share/dbus-1/system.d \
+	--with-systemdsystemunitdir=/usr/lib/systemd/system
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/tpm2-abrmd.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, tpm2-abrmd)
+	@$(call install_fixup, tpm2-abrmd,PRIORITY,optional)
+	@$(call install_fixup, tpm2-abrmd,SECTION,base)
+	@$(call install_fixup, tpm2-abrmd,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+	@$(call install_fixup, tpm2-abrmd,DESCRIPTION,missing)
+
+	@$(call install_lib, tpm2-abrmd, tss, tss, 0644, libtss2-tcti-tabrmd)
+	@$(call install_copy, tpm2-abrmd, tss, tss, 0755, -, /usr/sbin/tpm2-abrmd)
+
+	@$(call install_copy, tpm2-abrmd, tss, tss, 0644, -, \
+		/usr/lib/systemd/system/tpm2-abrmd.service)
+	@$(call install_copy, tpm2-abrmd, tss, tss, 0644, \
+		$(TPM2_ABRMD_DIR)/dist/tpm2-abrmd.service, \
+		/etc/systemd/system/tpm2-abrmd.service)
+
+	@$(call install_copy, tpm2-abrmd, tss, tss, 0644, -, \
+		/usr/share/dbus-1/system.d/tpm2-abrmd.conf)
+	@$(call install_copy, tpm2-abrmd, tss, tss, 0644, -, \
+		/usr/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service)
+
+	@$(call install_finish, tpm2-abrmd)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.19.1


-- 
Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2018-12-17 10:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 10:49 [ptxdist] [PATCH v2 0/5] add packages for tpm Thorsten K. Scherer
2018-12-17 10:49 ` [ptxdist] [PATCH v2 1/5] ptxdist: add host autotools macro archive for tpm2 Thorsten K. Scherer
     [not found]   ` <20181230033939.3mawbfpfgv5ab5vb@pengutronix.de>
     [not found]     ` <20190315150902.GA6173@ws067.eckelmann.group>
2019-03-18  8:51       ` Roland Hieber
2018-12-17 10:49 ` Thorsten K. Scherer [this message]
2018-12-17 10:49 ` [ptxdist] [PATCH v2 3/5] ptxdist: add tpm2-tss version 2.1.0 Thorsten K. Scherer
2018-12-17 10:50 ` [ptxdist] [PATCH v2 4/5] ptxdist: add tpm2-tools 3.1.3 Thorsten K. Scherer
2018-12-17 10:50 ` [ptxdist] [PATCH v2 5/5] ptxdist: add tpm2-tss-engine c9061a7 Thorsten K. Scherer
2018-12-20 14:56 ` [ptxdist] [PATCH v2 0/5] add packages for tpm Scherer, Thorsten

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=8bfd181ebe294ecdc04727a17e955310817c87b4.1545042465.git.t.scherer@eckelmann.de \
    --to=t.scherer@eckelmann.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