feat(app-admin/systemd-rest): initial commit

This commit is contained in:
Brandon Philips 2013-02-18 00:09:11 -08:00
parent 6470124500
commit 04b4a268af
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,5 @@
[Service]
ExecStart=/usr/sbin/systemd-rest
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,33 @@
#
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
# $Header:$
#
EAPI=2
CROS_WORKON_PROJECT="coreos/systemd-rest"
CROS_WORKON_LOCALNAME="systemd-rest"
inherit toolchain-funcs cros-workon systemd
DESCRIPTION="systemd over rest"
HOMEPAGE="https://bitbucket.org/coreos/go-systemd"
SRC_URI=""
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
DEPEND=">=dev-lang/go-1.0.2"
GOROOT="${ED}usr/$(get_libdir)/go"
GOPKG="${PN}"
src_compile() {
GOPATH="${S}" go build ${PN}
}
src_install() {
dosbin ${S}/systemd-rest
systemd_dounit "${FILESDIR}"/${PN}.service
systemd_enable_service multi-user.target ${PN}.service
}