Merge pull request #698 from marineam/version2

Official update signing key!
This commit is contained in:
Michael Marineau 2014-06-25 10:18:59 -07:00
commit 7ccf2d4f0a
8 changed files with 39 additions and 26 deletions

View File

@ -1,24 +0,0 @@
# Copyright (c) 2013 CoreOS Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
# This key pair is only used in development. An official production image will
# have the production keys inserted at build time. (see core_update_upload)
DESCRIPTION="CoreOS development auto update keys."
HOMEPAGE="http://github.com/coreos/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="cros_host"
src_install() {
KEY_DIR=/usr/share/update_engine/
insinto "${KEY_DIR}"
doins "${FILESDIR}"/update-payload-key.pub.pem
if use cros_host; then
doins "${FILESDIR}"/update-payload-key.key.pem
fi
}

View File

@ -0,0 +1,29 @@
# Copyright (c) 2013 CoreOS Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
DESCRIPTION="CoreOS auto update signing keys."
HOMEPAGE="http://github.com/coreos/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="cros_host official"
# Do not enable offical and SDK at the same time,
# the SDK only needs developer keys.
REQUIRED_USE="?? ( cros_host official )"
# No source to unpack
S="${WORKDIR}"
src_install() {
insinto /usr/share/update_engine
if use official; then
newins "${FILESDIR}/official-v2.pub.pem" update-payload-key.pub.pem
else
newins "${FILESDIR}/developer-v1.key.pem" update-payload-key.key.pem
newins "${FILESDIR}/developer-v1.pub.pem" update-payload-key.pub.pem
fi
}

View File

@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7pO21yN+b6yx9P+wHzS2
clxGs18eWxfoleETLbFVmcXu783rgBP0bFjYfqrNZNaI1Ip6bxEYkPacg0xFg7ri
lNdO/cxJV5Ltj40wFlpmzJOAH8hx5SF8KWg2NV1I6TS8pp+CQqcvvOKu6AIcWfeY
11V7eJ8rWcDsnqpTg8T1VRxytsg2UjTMfQwzcGLTb8cQ8AV39ED5WC5NdS9Bld4h
XqS9Dx6Pe3JOQLZze6XIIwWuB2jxGpM1GWfRNm5nxvne3l7ggC970482a7STGK10
fD8//k8myVxleMAeQoMRXoRq9p3C84H4Bw8v2dX13kFFCgfEQj6SOZ5huXZKLPpB
LwIDAQAB
-----END PUBLIC KEY-----

View File

@ -8,7 +8,7 @@ CROS_WORKON_REPO="git://github.com"
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm ~x86"
else
CROS_WORKON_COMMIT="9346a95ab688b3cb416758a0d2a6038ea5e8b0ed"
CROS_WORKON_COMMIT="05b5fc35063a2c12b0e7288fbb859585b2bb4959"
KEYWORDS="amd64 arm x86"
fi