sys-apps/ignition: include the version

v0.1.2 doesn't have support for the new version scheme, so leave a copy
of that file unchanged.
This commit is contained in:
Alex Crawford 2015-08-11 15:43:58 -07:00
parent f674d5b111
commit 5710f9f504
2 changed files with 42 additions and 1 deletions

View File

@ -1 +0,0 @@
ignition-9999.ebuild

View File

@ -0,0 +1,41 @@
# 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/ignition"
CROS_WORKON_LOCALNAME="ignition"
CROS_WORKON_REPO="git://github.com"
COREOS_GO_PACKAGE="github.com/coreos/ignition"
inherit coreos-doc coreos-go cros-workon systemd udev
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm64"
else
CROS_WORKON_COMMIT="284c166903f86c76eb931c28f980e68c01f7ad29" # tag v0.1.2
KEYWORDS="amd64 arm64"
fi
DESCRIPTION="Pre-boot provisioning utility"
HOMEPAGE="https://github.com/coreos/ignition"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
src_compile() {
go_build "${COREOS_GO_PACKAGE}/src"
}
src_install() {
newbin ${GOBIN}/src ${PN}
udev_dorules "${FILESDIR}"/90-ignition.rules
systemd_dounit "${FILESDIR}"/mnt-oem.mount
systemd_dounit "${FILESDIR}"/ignition.target
systemd_dounit "${FILESDIR}"/ignition-disks.service
systemd_dounit "${FILESDIR}"/ignition-files.service
coreos-dodoc -r doc/*
}

View File

@ -24,6 +24,7 @@ SLOT="0"
IUSE=""
src_compile() {
GO_LDFLAGS="-X main.version $(git describe --dirty)" || die
go_build "${COREOS_GO_PACKAGE}/src"
}