mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 06:51:26 +02:00
Merge pull request #1440 from crawford/coreos-metadata
coreos-base/coreos-metadata: add initial ebuild
This commit is contained in:
commit
d7e79a3a5d
@ -0,0 +1,38 @@
|
||||
# Copyright (c) 2015 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
CROS_WORKON_PROJECT="coreos/coreos-metadata"
|
||||
CROS_WORKON_LOCALNAME="coreos-metadata"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
inherit cros-workon systemd
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
else
|
||||
CROS_WORKON_COMMIT=""
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="coreos-metadata"
|
||||
HOMEPAGE="https://github.com/coreos/coreos-metadata"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
dev-lang/rust-bin
|
||||
dev-rust/cargo
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
CARGO_HOME="${WORKDIR}/.cargo" cargo build \
|
||||
--release --verbose --no-default-features || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${S}/target/release/${PN}"
|
||||
systemd_dounit "${FILESDIR}/coreos-metadata.service"
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=CoreOS Metadata Agent
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/usr/share/oem/oem-release
|
||||
ExecStart=/usr/bin/coreos-metadata --provider=${OEM_ID} --output=/run/metadata/coreos
|
||||
|
||||
[Install]
|
||||
RequiredBy=metadata.target
|
@ -117,6 +117,7 @@ RDEPEND="${RDEPEND}
|
||||
coreos-base/update_engine
|
||||
coreos-base/coreos-init
|
||||
coreos-base/coreos-cloudinit
|
||||
coreos-base/coreos-metadata
|
||||
coreos-base/coretest
|
||||
dev-util/strace
|
||||
net-analyzer/nmap
|
||||
|
Loading…
x
Reference in New Issue
Block a user