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