mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 10:01:32 +02:00
feat(app-admin/systemd-rest): initial commit
This commit is contained in:
parent
6470124500
commit
04b4a268af
@ -0,0 +1,5 @@
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/systemd-rest
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
33
sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/systemd-rest-9999.ebuild
vendored
Normal file
33
sdk_container/src/third_party/coreos-overlay/app-admin/systemd-rest/systemd-rest-9999.ebuild
vendored
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user