| # Copyright 2020 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| EAPI=7 |
| |
| CROS_WORKON_COMMIT="8b6e11a069e490c761cdab7ab3ff59434806cd9c" |
| CROS_WORKON_TREE=("41d899585b7a07ea908a0cca2944a7b8a4d13655" "b4aa3c2e5ba0ada5ab410c3b22e4f727876f36c2" "f91b6afd5f2ae04ee9a2c19109a3a4a36f7659e6") |
| CROS_WORKON_INCREMENTAL_BUILD="1" |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk arc/vm/boot_notification_server .gn" |
| |
| PLATFORM_SUBDIR="arc/vm/boot_notification_server" |
| # Do not run test parallelly until unit tests are fixed. |
| # shellcheck disable=SC2034 |
| PLATFORM_PARALLEL_GTEST_TEST="no" |
| |
| inherit cros-workon platform user |
| |
| DESCRIPTION="ARCVM boot notification server" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/arc/vm/boot_notification_server" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="*" |
| SLOT="0/0" |
| IUSE="+seccomp" |
| |
| src_install() { |
| platform_src_install |
| |
| newsbin "${OUT}/boot_notification_server" arcvm_boot_notification_server |
| |
| insinto /etc/init |
| doins arcvm-boot-notification-server.conf |
| |
| insinto /usr/share/policy |
| use seccomp && newins "arcvm_boot_notification_server-seccomp-${ARCH}.policy" arcvm_boot_notification_server-seccomp.policy |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/boot_notification_server_testrunner" |
| } |
| |
| pkg_preinst() { |
| enewuser arcvm-boot-notification-server |
| enewgroup arcvm-boot-notification-server |
| } |