blob: a7f76e0cd41b653c8395fe587aff871a5e4412d3 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_SUBTREE="common-mk ml"
PLATFORM_SUBDIR="ml"
inherit cros-workon platform user
DESCRIPTION="Machine learning service for Chromium OS"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/ml"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="~*"
IUSE=""
RDEPEND="
chromeos-base/libbrillo
"
DEPEND="
${RDEPEND}
chromeos-base/libmojo
chromeos-base/system_api
"
src_install() {
dobin "${OUT}"/ml_service
insinto /etc/init
doins init/*.conf
# Install seccomp policy file.
insinto /usr/share/policy
newins "seccomp/ml_service-seccomp-${ARCH}.policy" ml_service-seccomp.policy
# Install D-Bus configuration file
insinto /etc/dbus-1/system.d
doins dbus/org.chromium.Ml.conf
}
pkg_preinst() {
enewuser "ml-service"
enewgroup "ml-service"
}