| # Copyright 2016 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=4 |
| CROS_WORKON_COMMIT="881f3321bf80f5cb7028e0e870591c3d5ba13d2f" |
| CROS_WORKON_TREE="e2269c44d323e85280117929aa2ce59ca03cf53f" |
| CROS_WORKON_USE_VCSID="1" |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| |
| 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 |
| virtual/libfp |
| " |
| |
| 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" |
| } |