Merge pull request #2 from xiangli-cmu/master

Add etcd and etcd-client to app-admin and change the ebuild in coreos-base
This commit is contained in:
Brandon Philips 2013-05-27 13:12:49 -07:00
commit 4ca0bb63d4
4 changed files with 79 additions and 0 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=2
CROS_WORKON_PROJECT="xiangli-cmu/etcd-client"
CROS_WORKON_LOCALNAME="etcd-client"
CROS_WORKON_REPO="git://github.com"
inherit toolchain-funcs cros-workon systemd
DESCRIPTION="etcd-client"
HOMEPAGE="https://github.com/xiangli-cmu/etcd-client"
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() {
export GOPATH="${S}"
go install "${PN}"
}
src_install() {
dobin ${S}/etcd-client
}

View File

@ -0,0 +1,37 @@
#
# 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=2
CROS_WORKON_PROJECT="xiangli-cmu/etcd"
CROS_WORKON_LOCALNAME="etcd"
CROS_WORKON_REPO="git://github.com"
inherit toolchain-funcs cros-workon systemd
DESCRIPTION="etcd"
HOMEPAGE="https://github.com/xiangli-cmu/etcd"
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() {
export GOPATH="${S}"
go install "${PN}"
}
src_install() {
dosbin ${S}/etcd
systemd_dounit "${FILESDIR}"/${PN}.service
systemd_enable_service multi-user.target ${PN}.service
}

View File

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

View File

@ -148,6 +148,8 @@ RDEPEND="${RDEPEND}
sys-apps/systemd
sys-apps/systemd-sysv-utils
app-admin/systemd-rest
app-admin/etcd
app-admin/etcd-client
coreos-base/motd-http
coreos-base/crosh
sys-apps/util-linux