add etcd and etcd-client

This commit is contained in:
Xiang Li 2013-05-27 12:45:06 -07:00
parent 50077b3003
commit 778da2e56a
4 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,36 @@
#
# 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="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() {
dosbin ${S}/etcd-client
systemd_dounit "${FILESDIR}"/${PN}.service
systemd_enable_service multi-user.target ${PN}.service
}

View File

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

View File

@ -0,0 +1,36 @@
#
# 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="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