[meta-security] tpm2.0-tss: remove resourcemgr systemd rules

Submitted by Benjamin Gaignard on Dec. 21, 2018, 11:11 a.m. | Patch ID: 157380

Details

Message ID 20181221111152.12634-1-benjamin.gaignard@linaro.org
State New
Headers show

Commit Message

Benjamin Gaignard Dec. 21, 2018, 11:11 a.m.
Since resourcemgr doesn't exist anymore remove systemd rules.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
---
 .../recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb     | 23 ----------------------
 1 file changed, 23 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb b/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb
index 3e7b81a..0b45625 100644
--- a/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb
+++ b/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb
@@ -18,28 +18,6 @@  do_configure_prepend () {
        ./bootstrap
 }
 
-INHERIT += "extrausers"
-EXTRA_USERS_PARAMS = "\
-	useradd -p '' tss; \
-	groupadd tss; \
-	"
-
-SYSTEMD_PACKAGES = "resourcemgr"
-SYSTEMD_SERVICE_resourcemgr = "resourcemgr.service"
-SYSTEMD_AUTO_ENABLE_resourcemgr = "enable"
-
-do_patch[postfuncs] += "${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','fix_systemd_unit','', d)}"
-fix_systemd_unit () {
-    sed -i -e 's;^ExecStart=.*/resourcemgr;ExecStart=${sbindir}/resourcemgr;' ${S}/contrib/resourcemgr.service
-}
-
-do_install_append() {
-    if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
-        install -d ${D}${systemd_system_unitdir}
-        install -m0644 ${S}/contrib/resourcemgr.service ${D}${systemd_system_unitdir}/resourcemgr.service
-    fi
-}
-
 PROVIDES = "${PACKAGES}"
 PACKAGES = " \
     ${PN} \
@@ -57,7 +35,6 @@  PACKAGES = " \
     libtss2 \
     libtss2-dev \
     libtss2-staticdev \
-    resourcemgr \
 "
 
 FILES_libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*"