blob: 6cf4066cac98c48ee10b3b261b2b7c01725e5ffe [file] [log] [blame]
# 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="97373cdc5386a4a041415bd45f5c923fe4522228"
CROS_WORKON_TREE="b229d7a455bb3e61ba93d824571ed291c1b60c51"
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
PLATFORM_SUBDIR="authpolicy"
inherit cros-workon platform user
DESCRIPTION="Provides authentication to LDAP and fetching device/user policies"
HOMEPAGE="http://www.chromium.org/"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
RDEPEND="chromeos-base/libbrillo"
DEPEND="${RDEPEND}"
pkg_preinst() {
# Create user and group for authpolicyd.
enewuser "authpolicyd"
enewgroup "authpolicyd"
}
src_install() {
dosbin "${OUT}"/authpolicyd
insinto /etc/dbus-1/system.d
doins etc/dbus-1/org.chromium.AuthPolicy.conf
insinto /etc/init
doins etc/init/authpolicyd.conf
}