feat(coreos-base/motd-http): add coreos-base/motd

add the initial version of the coreos-base/motd-http ebuild.
This commit is contained in:
Brandon Philips 2013-02-20 14:02:15 -08:00
parent d1fd5812e5
commit 9dabcaac88
3 changed files with 39 additions and 0 deletions

View File

@ -145,6 +145,7 @@ RDEPEND="${RDEPEND}
sys-apps/systemd
sys-apps/systemd-sysv-utils
app-admin/systemd-rest
coreos-base/motd-http
sys-apps/util-linux
sys-auth/pam_pwdfile
sys-fs/e2fsprogs

View File

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

View File

@ -0,0 +1,33 @@
#
# Copyright (c) 2013 Brandon Philips. All rights reserved.
# Distributed under the terms of the MIT License
# $Header:$
#
EAPI=2
CROS_WORKON_PROJECT="coreos/motd-http"
CROS_WORKON_LOCALNAME="motd-http"
inherit toolchain-funcs cros-workon systemd
DESCRIPTION="systemd over rest"
HOMEPAGE="https://bitbucket.org/coreos/motd-http"
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}/${PN}
systemd_dounit "${FILESDIR}"/${PN}.service
systemd_enable_service multi-user.target ${PN}.service
}