blob: 51eb3517cfc0e916f4c1669fe1d7c3027c8da4e3 [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="6bb9b8fe43e0b5add60f97ce92d0f4a2ecab65e1"
CROS_WORKON_TREE="8e47c3054d0748628354df2cc1713f31a4855a81"
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_USE_VCSID=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
PLATFORM_SUBDIR="easy-unlock"
inherit cros-workon platform user
DESCRIPTION="Service for supporting Easy Unlock in Chromium OS"
HOMEPAGE="http://www.chromium.org/"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="test"
RDEPEND="
chromeos-base/easy-unlock-crypto
chromeos-base/libbrillo
"
DEPEND="
${RDEPEND}
chromeos-base/system_api
dev-cpp/gtest
test? (
dev-cpp/gmock
)
"
pkg_preinst() {
enewuser easy-unlock
enewgroup easy-unlock
}
src_install() {
exeinto /opt/google/easy_unlock
doexe "${OUT}/easy_unlock"
insinto /etc/dbus-1/system.d
doins org.chromium.EasyUnlock.conf
insinto /usr/share/dbus-1/system-services
doins org.chromium.EasyUnlock.service
insinto /usr/share/dbus-1/interfaces
doins dbus_bindings/org.chromium.EasyUnlockInterface.xml
}
platform_pkg_test() {
platform_test "run" "${OUT}/easy_unlock_test_runner"
}