Merge pull request #258 from polvi/add-coreinit

feat(coreinit): add coreinit to the experimental package, drop systemd-r...
This commit is contained in:
polvi 2013-11-19 17:46:44 -08:00
commit 0db2541c5d
4 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,35 @@
#
# 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
# $Header:$
#
EAPI=4
CROS_WORKON_PROJECT="coreos/coreinit"
CROS_WORKON_LOCALNAME="coreinit"
CROS_WORKON_REPO="git://github.com"
inherit toolchain-funcs cros-workon systemd
DESCRIPTION="coreinit"
HOMEPAGE="https://github.com/coreos/coreinit"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
IUSE=""
DEPEND=">=dev-lang/go-1.1"
src_compile() {
./build
}
src_install() {
dobin ${S}/coreinit
dobin ${S}/corectl
systemd_dounit "${FILESDIR}"/${PN}.service
systemd_enable_service multi-user.target ${PN}.service
}

View File

@ -0,0 +1,8 @@
[Unit]
Description=coreinit
[Service]
ExecStart=/usr/bin/coreinit
[Install]
WantedBy=multi-user.target

View File

@ -14,5 +14,5 @@ IUSE=""
DEPEND=""
RDEPEND="
app-admin/systemd-rest
app-admin/coreinit
"