mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 06:21:08 +02:00
Merge pull request #1157 from crawford/etcd
etcd: use etcd-starter and bump to latest releases
This commit is contained in:
commit
576e769732
@ -81,7 +81,7 @@ RDEPEND="${RDEPEND}
|
||||
# implementation based on whether protocol 2 is enabled or not.
|
||||
RDEPEND="${RDEPEND}
|
||||
etcd_protocols_1? (
|
||||
dev-db/etcd:1[etcd_protocols_2=]
|
||||
dev-db/etcd:1
|
||||
!etcd_protocols_2? ( dev-db/etcdctl )
|
||||
)
|
||||
etcd_protocols_2? ( dev-db/etcd:2 )
|
||||
@ -108,6 +108,7 @@ RDEPEND="${RDEPEND}
|
||||
coreos-base/coreos-init
|
||||
coreos-base/coreos-cloudinit
|
||||
coreos-base/coretest
|
||||
dev-db/etcd-starter
|
||||
net-analyzer/nmap
|
||||
net-firewall/ebtables
|
||||
net-firewall/ipset
|
||||
|
1
sdk_container/src/third_party/coreos-overlay/dev-db/etcd-starter/etcd-starter-0.0.2.ebuild
vendored
Symbolic link
1
sdk_container/src/third_party/coreos-overlay/dev-db/etcd-starter/etcd-starter-0.0.2.ebuild
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
etcd-starter-9999.ebuild
|
51
sdk_container/src/third_party/coreos-overlay/dev-db/etcd-starter/etcd-starter-9999.ebuild
vendored
Normal file
51
sdk_container/src/third_party/coreos-overlay/dev-db/etcd-starter/etcd-starter-9999.ebuild
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
#
|
||||
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header:$
|
||||
#
|
||||
|
||||
EAPI=5
|
||||
CROS_WORKON_PROJECT="coreos/etcd-starter"
|
||||
CROS_WORKON_LOCALNAME="etcd-starter"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
COREOS_GO_PACKAGE="github.com/coreos/etcd-starter"
|
||||
inherit coreos-go cros-workon systemd
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
else
|
||||
CROS_WORKON_COMMIT="e6265b3a028225a8b57ddbfc3ad1992abc89974f" # v0.0.2
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="etcd-starter"
|
||||
HOMEPAGE="https://github.com/coreos/etcd-starter"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="etcd_protocols_1 etcd_protocols_2"
|
||||
|
||||
REQUIRED_USE="|| ( etcd_protocols_1 etcd_protocols_2 )"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.2"
|
||||
|
||||
src_compile() {
|
||||
go_build "${COREOS_GO_PACKAGE}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libexec="libexec/etcd/internal_versions"
|
||||
|
||||
if use etcd_protocols_1 && use etcd_protocols_2; then
|
||||
dobin "${WORKDIR}/gopath/bin/${PN}"
|
||||
dosym "${PN}" /usr/bin/etcd
|
||||
elif use etcd_protocols_1; then
|
||||
dosym "../${libexec}/1/etcd" /usr/bin/etcd
|
||||
elif use etcd_protocols_2; then
|
||||
dosym "../${libexec}/2/etcd" /usr/bin/etcd
|
||||
fi
|
||||
|
||||
systemd_dounit "${FILESDIR}"/etcd.service
|
||||
systemd_dotmpfilesd "${FILESDIR}"/etcd.conf
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header:$
|
||||
#
|
||||
|
||||
EAPI=4
|
||||
CROS_WORKON_PROJECT="coreos/etcd"
|
||||
CROS_WORKON_LOCALNAME="etcd"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
inherit coreos-doc toolchain-funcs cros-workon systemd
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
else
|
||||
CROS_WORKON_COMMIT="d6523fe4638100c72f40cb282cd1232db13f7336" # v0.4.7
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="etcd"
|
||||
HOMEPAGE="https://github.com/coreos/etcd"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="1"
|
||||
IUSE="etcd_protocols_1 etcd_protocols_2"
|
||||
|
||||
# Sanity check that this version is indeed wanted!
|
||||
REQUIRED_USE="etcd_protocols_${SLOT}"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.2"
|
||||
RDEPEND="!dev-db/etcd:0
|
||||
!etcd_protocols_2? ( !dev-db/etcd:2 )"
|
||||
|
||||
src_compile() {
|
||||
./build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libexec="libexec/${PN}/internal_versions"
|
||||
|
||||
exeinto "/usr/${libexec}"
|
||||
newexe "${S}/bin/${PN}" ${SLOT}
|
||||
|
||||
# protocol1 is default if protocol2 is disabled
|
||||
if ! use etcd_protocols_2; then
|
||||
dosym "../${libexec}/${SLOT}" /usr/bin/${PN}
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf
|
||||
|
||||
coreos-dodoc -r Documentation/*
|
||||
fi
|
||||
}
|
39
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/etcd-0.4.8.ebuild
vendored
Normal file
39
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/etcd-0.4.8.ebuild
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
#
|
||||
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header:$
|
||||
#
|
||||
|
||||
EAPI=4
|
||||
CROS_WORKON_PROJECT="coreos/etcd"
|
||||
CROS_WORKON_LOCALNAME="etcd"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
inherit coreos-doc toolchain-funcs cros-workon
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
else
|
||||
CROS_WORKON_COMMIT="2f6ea0a0e5a6854d2d0f79bf0d1bb87dde649071" # v0.4.8
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="etcd"
|
||||
HOMEPAGE="https://github.com/coreos/etcd"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="1"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.2"
|
||||
RDEPEND="!dev-db/etcd:0"
|
||||
|
||||
src_compile() {
|
||||
./build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libexec="libexec/${PN}/internal_versions/${SLOT}"
|
||||
|
||||
exeinto "/usr/${libexec}"
|
||||
doexe "${S}/bin/${PN}"
|
||||
}
|
@ -9,12 +9,12 @@ CROS_WORKON_PROJECT="coreos/etcd"
|
||||
CROS_WORKON_LOCALNAME="etcd"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
COREOS_GO_PACKAGE="github.com/coreos/etcd"
|
||||
inherit coreos-doc coreos-go toolchain-funcs cros-workon systemd
|
||||
inherit coreos-doc coreos-go toolchain-funcs cros-workon
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
else
|
||||
CROS_WORKON_COMMIT="9481945228b97c5d019596b921d8b03833964d9e" # v2.0.5
|
||||
CROS_WORKON_COMMIT="e3c902228b1fefa8158583e167ae552622a24367" # v2.0.6
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
@ -38,18 +38,14 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libexec="libexec/${PN}/internal_versions"
|
||||
local libexec="libexec/${PN}/internal_versions/${SLOT}"
|
||||
|
||||
dobin ${WORKDIR}/gopath/bin/etcdctl
|
||||
dobin ${WORKDIR}/gopath/bin/etcd-migrate
|
||||
dobin ${WORKDIR}/gopath/bin/etcd-dump-logs
|
||||
|
||||
exeinto "/usr/${libexec}"
|
||||
newexe "${WORKDIR}/gopath/bin/${PN}" ${SLOT}
|
||||
dosym "../${libexec}/${SLOT}" /usr/bin/${PN}
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf
|
||||
doexe "${WORKDIR}/gopath/bin/${PN}"
|
||||
|
||||
coreos-dodoc -r Documentation/*
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user