blob: 77dbcfc8fa0d720c0a534a10804b940c96c62422 [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_COMMIT="207b9c95e801b90f6616962cb928bec371aed39f"
CROS_WORKON_TREE=("17f4a6efa079886fb3e23fd256264f932d59721d" "e0c95ead9c93d4eb5bded3748987b2fc2c972b02")
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"
}