From 04b4a268af19453783ef564b1033a87f4fb2c3c5 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Mon, 18 Feb 2013 00:09:11 -0800 Subject: [PATCH] feat(app-admin/systemd-rest): initial commit --- .../systemd-rest/files/systemd-rest.service | 5 +++ .../systemd-rest/systemd-rest-9999.ebuild | 33 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/files/systemd-rest.service create mode 100644 sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/systemd-rest-9999.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/files/systemd-rest.service b/sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/files/systemd-rest.service new file mode 100644 index 0000000000..03152da569 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/files/systemd-rest.service @@ -0,0 +1,5 @@ +[Service] +ExecStart=/usr/sbin/systemd-rest + +[Install] +WantedBy=multi-user.target diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/systemd-rest-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/systemd-rest-9999.ebuild new file mode 100644 index 0000000000..41b5cef4d2 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/systemd-rest-9999.ebuild @@ -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 +}