| # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="7" |
| |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_DESTDIR="${S}/platform2" |
| CROS_WORKON_SUBTREE="common-mk missive .gn" |
| |
| PLATFORM_SUBDIR="missive" |
| |
| inherit cros-workon platform user |
| |
| DESCRIPTION="Daemon to encrypt, store, and forward reporting events for managed devices." |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/missive/" |
| |
| LICENSE="BSD-Google" |
| SLOT=0/0 |
| KEYWORDS="~*" |
| IUSE="" |
| |
| RDEPEND=" |
| chromeos-base/minijail:= |
| dev-libs/protobuf:= |
| " |
| |
| DEPEND=" |
| ${RDEPEND} |
| chromeos-base/system_api:= |
| " |
| |
| pkg_preinst() { |
| enewuser missived |
| enewgroup missived |
| } |
| |
| src_install() { |
| # Install binary |
| dobin "${OUT}"/missived |
| |
| # Install upstart configurations |
| insinto /etc/init |
| doins init/missived.conf |
| |
| # TODO(zatrudo): Generate at end of devleopment before release. |
| # Install seccomp policy file. |
| #insinto /usr/share/policy |
| #newins "seccomp/missived-seccomp-${ARCH}.policy" missived-seccomp.policy |
| |
| # Install D-Bus configuration file. |
| insinto /etc/dbus-1/system.d |
| doins dbus/org.chromium.Missived.conf |
| |
| # Install D-Bus service activation configuration. |
| insinto /usr/share/dbus-1/system-services |
| doins dbus/org.chromium.Missived.service |
| |
| # Install rsyslog config. |
| # TODO(zatrudo): Determine if logs from this daemon should be redirected. |
| #insinto /etc/rsyslog.d |
| #doins rsyslog/rsyslog.missived.conf |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/missived_testrunner" |
| } |