blob: 792e13ccad935200c7733f383062d1866b087717 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
DESCRIPTION="Install Chromium OS test public keys for ssh clients on test image"
HOMEPAGE="http://www.chromium.org/"
KEYWORDS="*"
LICENSE="BSD"
SLOT="0"
S="${WORKDIR}"
src_install() {
dodir /root/.ssh
cat "${FILESDIR}"/*.pub > "${D}"/root/.ssh/authorized_keys || die
insinto /root/.ssh
newins "${FILESDIR}/testing_rsa" id_rsa
newins "${FILESDIR}/testing_rsa.pub" id_rsa.pub
fperms 600 /root/.ssh/id_rsa
}