blob: cea1aa8fdca6925f0cee99e35af315c77ae45f6f [file] [log] [blame]
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI="4"
inherit user
DESCRIPTION="Ebuild which properly configures the Chrome OS enviornment for android tools."
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND="
dev-util/android-tools
"
DEPEND=""
S=${WORKDIR}
pkg_preinst() {
enewgroup adb
enewuser adb
}
src_install() {
insinto /etc/init
doins "${FILESDIR}"/*.conf
insinto /etc/sudoers.d
echo "adb ALL = NOPASSWD: /usr/bin/adb" > adb-adb
insopts -m600
doins adb-adb
}