blob: 4e453325d9aa89b3b35f661178d6e4fb42794e77 [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="e4b5ec72fb166c3e4bbb43a411509fa83b0f170b"
CROS_WORKON_TREE=("17f4a6efa079886fb3e23fd256264f932d59721d" "54eb45a96be62a2b5336239e0adc6756d806a352" "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
}