mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-03 12:51:11 +02:00
dev-db/etcd: drop package
This commit is contained in:
parent
f25390d5ba
commit
3f648efc73
@ -1 +0,0 @@
|
|||||||
etcd-9999.ebuild
|
|
@ -1,48 +0,0 @@
|
|||||||
# Copyright (c) 2015 CoreOS, Inc.. All rights reserved.
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
CROS_WORKON_PROJECT="coreos/etcd"
|
|
||||||
CROS_WORKON_LOCALNAME="etcd"
|
|
||||||
CROS_WORKON_REPO="git://github.com"
|
|
||||||
COREOS_GO_PACKAGE="github.com/coreos/etcd"
|
|
||||||
COREOS_GO_VERSION="go1.7"
|
|
||||||
inherit coreos-go toolchain-funcs cros-workon systemd
|
|
||||||
|
|
||||||
if [[ "${PV}" == 9999 ]]; then
|
|
||||||
CROS_WORKON_COMMIT=${CROS_WORKON_COMMIT:="HEAD"}
|
|
||||||
KEYWORDS="~amd64 ~arm64"
|
|
||||||
else
|
|
||||||
CROS_WORKON_COMMIT="7e4fc7eaa931298732c880a703bccc9c177ae1de" # v2.3.8
|
|
||||||
KEYWORDS="amd64 arm64"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="etcd"
|
|
||||||
HOMEPAGE="https://github.com/coreos/etcd"
|
|
||||||
SRC_URI=""
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="2"
|
|
||||||
IUSE="+etcdctl"
|
|
||||||
|
|
||||||
RDEPEND="!dev-db/etcd:0
|
|
||||||
etcdctl? ( !dev-db/etcdctl )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/${PN}-2.3.8-fix-pointless-breakage.patch"
|
|
||||||
coreos-go_src_prepare "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/version.GitSHA=${CROS_WORKON_COMMIT:0:7}"
|
|
||||||
go_build "${COREOS_GO_PACKAGE}"
|
|
||||||
use etcdctl && go_build "${COREOS_GO_PACKAGE}/etcdctl"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use etcdctl && dobin ${WORKDIR}/gopath/bin/etcdctl
|
|
||||||
newbin "${WORKDIR}/gopath/bin/${PN}" "${PN}${SLOT}"
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}${SLOT}.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/${PN}${SLOT}.conf"
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
--- etcdmain/etcd.go
|
|
||||||
+++ etcdmain/etcd.go
|
|
||||||
@@ -555,6 +555,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
func checkSupportArch() {
|
|
||||||
+ return
|
|
||||||
// TODO qualify arm64
|
|
||||||
if runtime.GOARCH == "amd64" {
|
|
||||||
return
|
|
@ -1 +0,0 @@
|
|||||||
d /var/lib/etcd2 0755 etcd etcd - -
|
|
@ -1,17 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=etcd2
|
|
||||||
Conflicts=etcd.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=etcd
|
|
||||||
Type=notify
|
|
||||||
Environment=ETCD_DATA_DIR=/var/lib/etcd2
|
|
||||||
Environment=ETCD_NAME=%m
|
|
||||||
ExecStart=/usr/bin/etcd2
|
|
||||||
Restart=always
|
|
||||||
RestartSec=10s
|
|
||||||
LimitNOFILE=40000
|
|
||||||
TimeoutStartSec=0
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
</pkgmetadata>
|
|
@ -96,10 +96,6 @@ sys-apps/portage -xattr
|
|||||||
# Enable -M and -Z flags; -M is used by mayday
|
# Enable -M and -Z flags; -M is used by mayday
|
||||||
sys-process/lsof rpc selinux
|
sys-process/lsof rpc selinux
|
||||||
|
|
||||||
# Don't include etcd2's etcdctl so we can include the newer version via the
|
|
||||||
# etcdctl package
|
|
||||||
dev-db/etcd -etcdctl
|
|
||||||
|
|
||||||
# can be removed with socat-2.0.0; this is the openssl/readline license
|
# can be removed with socat-2.0.0; this is the openssl/readline license
|
||||||
# incompatibility
|
# incompatibility
|
||||||
net-misc/socat -ssl
|
net-misc/socat -ssl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user