| # Copyright 2016 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="6" |
| CROS_WORKON_COMMIT="207b9c95e801b90f6616962cb928bec371aed39f" |
| CROS_WORKON_TREE=("17f4a6efa079886fb3e23fd256264f932d59721d" "366a291c831cf935756a337c283a3a919112a9fb") |
| CROS_WORKON_USE_VCSID="1" |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk biod" |
| |
| PLATFORM_SUBDIR="biod" |
| |
| inherit cros-workon platform udev user |
| |
| DESCRIPTION="Biometrics Daemon for Chromium OS" |
| HOMEPAGE="http://dev.chromium.org/chromium-os/packages/biod" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| |
| RDEPEND=" |
| chromeos-base/libbrillo |
| chromeos-base/libchrome |
| " |
| |
| DEPEND=" |
| ${RDEPEND} |
| chromeos-base/system_api |
| " |
| |
| src_install() { |
| dobin "${OUT}"/biod |
| |
| into /usr/local |
| dobin "${OUT}"/biod_client_tool |
| dobin "${OUT}"/fake_biometric_tool |
| |
| insinto /etc/init |
| doins init/*.conf |
| |
| insinto /etc/dbus-1/system.d |
| doins dbus/org.chromium.BiometricsDaemon.conf |
| |
| udev_dorules udev/99-biod.rules |
| } |
| |
| pkg_preinst() { |
| enewuser biod |
| enewgroup biod |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/biod_test_runner" |
| } |