mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 17:36:59 +02:00
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:
commit
4ca0bb63d4
35
sdk_container/src/third_party/coreos-overlay/app-admin/etcd-client/etcd-client-9999.ebuild
vendored
Normal file
35
sdk_container/src/third_party/coreos-overlay/app-admin/etcd-client/etcd-client-9999.ebuild
vendored
Normal 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
|
||||||
|
}
|
||||||
|
|
37
sdk_container/src/third_party/coreos-overlay/app-admin/etcd/etcd-9999.ebuild
vendored
Normal file
37
sdk_container/src/third_party/coreos-overlay/app-admin/etcd/etcd-9999.ebuild
vendored
Normal 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
|
||||||
|
}
|
||||||
|
|
5
sdk_container/src/third_party/coreos-overlay/app-admin/etcd/files/etcd.service
vendored
Normal file
5
sdk_container/src/third_party/coreos-overlay/app-admin/etcd/files/etcd.service
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/etcd
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -148,6 +148,8 @@ RDEPEND="${RDEPEND}
|
|||||||
sys-apps/systemd
|
sys-apps/systemd
|
||||||
sys-apps/systemd-sysv-utils
|
sys-apps/systemd-sysv-utils
|
||||||
app-admin/systemd-rest
|
app-admin/systemd-rest
|
||||||
|
app-admin/etcd
|
||||||
|
app-admin/etcd-client
|
||||||
coreos-base/motd-http
|
coreos-base/motd-http
|
||||||
coreos-base/crosh
|
coreos-base/crosh
|
||||||
sys-apps/util-linux
|
sys-apps/util-linux
|
||||||
|
Loading…
Reference in New Issue
Block a user