blob: eb41d9a0ffc2c5c7934af06bc09c567d194cdd06 [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_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
}