| # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="4" |
| CROS_WORKON_COMMIT="fc53dcba3ef19b3be959a3dfe0608514f2eef88b" |
| CROS_WORKON_TREE="59d2b104da47b82d8665fb12e1086ecacb2edd9b" |
| CROS_WORKON_PROJECT="chromiumos/platform/crosh" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| |
| inherit cros-workon |
| |
| DESCRIPTION="Chrome OS command-line shell" |
| HOMEPAGE="http://www.chromium.org/" |
| SRC_URI="" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="" |
| |
| RDEPEND="app-admin/sudo |
| chromeos-base/vboot_reference |
| chromeos-base/workarounds |
| net-misc/iputils |
| net-misc/openssh |
| net-wireless/iw |
| sys-apps/net-tools |
| " |
| DEPEND="" |
| |
| src_compile() { |
| # File order is important here. |
| sed \ |
| -e '/^#/d' \ |
| -e '/^$/d' \ |
| inputrc.safe inputrc.extra \ |
| > "${WORKDIR}"/inputrc.crosh || die |
| } |
| |
| src_install() { |
| dobin crosh crosh-{dev,usb} |
| dobin network_diagnostics |
| insinto /usr/share/misc |
| doins "${WORKDIR}"/inputrc.crosh |
| } |