Merge pull request #329 from marineam/coreinit

fix(app-admin/coreinit): Switch to new 'stable' ebuild.
This commit is contained in:
Michael Marineau 2014-01-30 14:37:57 -08:00
commit 0a9e74d331
2 changed files with 14 additions and 10 deletions

View File

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

View File

@ -1,15 +1,19 @@
# # Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header:$
#
EAPI=4 EAPI=4
CROS_WORKON_PROJECT="coreos/coreinit" CROS_WORKON_PROJECT="coreos/coreinit"
CROS_WORKON_LOCALNAME="coreinit" CROS_WORKON_LOCALNAME="coreinit"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
inherit toolchain-funcs cros-workon systemd
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64"
else
CROS_WORKON_COMMIT="02daf08f4ae548ad430d4e5084dc3b0de1138221"
KEYWORDS="amd64"
fi
inherit cros-workon systemd
DESCRIPTION="coreinit" DESCRIPTION="coreinit"
HOMEPAGE="https://github.com/coreos/coreinit" HOMEPAGE="https://github.com/coreos/coreinit"
@ -17,18 +21,17 @@ SRC_URI=""
LICENSE="Apache-2.0" LICENSE="Apache-2.0"
SLOT="0" SLOT="0"
KEYWORDS="amd64"
IUSE="" IUSE=""
DEPEND=">=dev-lang/go-1.1" DEPEND=">=dev-lang/go-1.1"
src_compile() { src_compile() {
./build ./build || die
} }
src_install() { src_install() {
dobin ${S}/coreinit dobin ${S}/bin/coreinit
dobin ${S}/corectl dobin ${S}/bin/corectl
systemd_dounit "${FILESDIR}"/${PN}.service systemd_dounit "${FILESDIR}"/${PN}.service
systemd_enable_service multi-user.target ${PN}.service systemd_enable_service multi-user.target ${PN}.service