blob: 994eea6666948ea9f3fa11b45b2084cfcb0bb632 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="042861eb27d179fe221fe46aa9fb814c81ea6b9c"
CROS_WORKON_TREE=("0ffc67db3979effc8c3e1dc09a1b45719ea6814c" "7c88ab2e4411eb58a2bfb911adf4836f896cec8b" "630263350f35dd50ae436f73d31966fb4eedcb6b")
CROS_WORKON_USE_VCSID="1"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_INCREMENTAL_BUILD=1
# TODO(crbug.com/809389): Avoid directly including headers from other packages.
CROS_WORKON_SUBTREE="common-mk trunks u2fd"
PLATFORM_SUBDIR="u2fd"
inherit cros-workon platform user
DESCRIPTION="U2FHID Emulation Daemon"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/u2fhid"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
RDEPEND="
chromeos-base/libbrillo
chromeos-base/power_manager-client
chromeos-base/trunks
"
DEPEND="
${RDEPEND}
chromeos-base/system_api
"
pkg_preinst() {
enewuser u2f
}
src_install() {
dobin "${OUT}"/u2fd
insinto /etc/init
doins init/*.conf
}