| # Copyright 2022 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_WORKON_COMMIT="dbb1136242ba822d539eaf11493f3b68815adb7f" |
| CROS_WORKON_TREE=("60fa47aebd6ebfb702012849bd560717fceddcd4" "46debaa1a374952167d5a2ca0bdf36013f053bc3" "944879c9353c2df8adb7022407a8d319671325c1" "0c8e3de65339e7e6a1ffe16a54c7ae719bacc57c" "5807b49f2a89205c10a0208e1124edffbff205af" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb") |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk attestation tpm_manager trunks vtpm .gn" |
| |
| PLATFORM_SUBDIR="vtpm" |
| |
| inherit tmpfiles cros-workon libchrome platform user |
| |
| DESCRIPTION="Virtual TPM service for Chromium OS" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/vtpm/" |
| |
| LICENSE="Apache-2.0" |
| KEYWORDS="*" |
| IUSE="test" |
| |
| RDEPEND=" |
| chromeos-base/attestation:=[test?] |
| chromeos-base/system_api:= |
| chromeos-base/tpm_manager:= |
| chromeos-base/trunks:= |
| " |
| |
| DEPEND=" |
| ${RDEPEND} |
| chromeos-base/attestation-client:= |
| chromeos-base/trunks:=[test?] |
| " |
| |
| pkg_preinst() { |
| # Create user and group for vtpm. |
| enewuser "vtpm" |
| enewgroup "vtpm" |
| } |
| |
| src_install() { |
| platform_install |
| |
| dotmpfiles tmpflies.d/vtpm.conf |
| } |
| |
| platform_pkg_test() { |
| platform test_all |
| } |