mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 06:21:08 +02:00
dev-db/etcd-starter: remove the starter
This commit is contained in:
parent
da5146d89f
commit
69d3a2f871
@ -109,7 +109,6 @@ RDEPEND="${RDEPEND}
|
|||||||
coreos-base/coreos-init
|
coreos-base/coreos-init
|
||||||
coreos-base/coreos-cloudinit
|
coreos-base/coreos-cloudinit
|
||||||
coreos-base/coretest
|
coreos-base/coretest
|
||||||
dev-db/etcd-starter
|
|
||||||
net-analyzer/nmap
|
net-analyzer/nmap
|
||||||
net-firewall/ebtables
|
net-firewall/ebtables
|
||||||
net-firewall/ipset
|
net-firewall/ipset
|
||||||
|
@ -1 +0,0 @@
|
|||||||
etcd-starter-9999.ebuild
|
|
@ -1,51 +0,0 @@
|
|||||||
#
|
|
||||||
# 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="92b66f1e4c02d44a95eb51ea0e449bd6221f6b49" # v0.0.3
|
|
||||||
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,2 +0,0 @@
|
|||||||
d /var/lib/etcd 0755 etcd etcd - -
|
|
||||||
d /var/run/etcd 0755 etcd etcd - -
|
|
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=etcd
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=etcd
|
|
||||||
PermissionsStartOnly=true
|
|
||||||
Environment=ETCD_DATA_DIR=/var/lib/etcd
|
|
||||||
Environment=ETCD_NAME=%m
|
|
||||||
ExecStart=/usr/bin/etcd
|
|
||||||
Restart=always
|
|
||||||
RestartSec=10s
|
|
||||||
LimitNOFILE=40000
|
|
Loading…
x
Reference in New Issue
Block a user