blob: 77514ecf4b644b7934cd55d6a45d74a93c781941 [file] [log] [blame]
# Copyright 2014 The Chromium 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"
DESCRIPTION="Install Chromium OS ssh test keys to a shared location."
HOMEPAGE="http://www.chromium.org/"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
S="${WORKDIR}"
src_install() {
local install_dir=/usr/share/chromeos-ssh-config/keys
# Create authorized_keys file using all public keys
dodir "${install_dir}"
cat "${FILESDIR}"/*.pub > "${D}"/"${install_dir}"/authorized_keys || die
# Install the SSH key files
insinto "${install_dir}"
newins "${FILESDIR}"/testing_rsa id_rsa
newins "${FILESDIR}"/testing_rsa.pub id_rsa.pub
fperms 600 "${install_dir}"/id_rsa
}