mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-18 10:51:23 +02:00
dev-db/etcd: write all v2 files from ebuild
Remove etcd-migrate and etcd-dump-logs
This commit is contained in:
parent
ffdcaaac2b
commit
510db2b958
@ -9,7 +9,7 @@ CROS_WORKON_PROJECT="coreos/etcd"
|
|||||||
CROS_WORKON_LOCALNAME="etcd"
|
CROS_WORKON_LOCALNAME="etcd"
|
||||||
CROS_WORKON_REPO="git://github.com"
|
CROS_WORKON_REPO="git://github.com"
|
||||||
COREOS_GO_PACKAGE="github.com/coreos/etcd"
|
COREOS_GO_PACKAGE="github.com/coreos/etcd"
|
||||||
inherit coreos-doc coreos-go toolchain-funcs cros-workon
|
inherit coreos-doc coreos-go toolchain-funcs cros-workon systemd
|
||||||
|
|
||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
@ -33,19 +33,14 @@ RDEPEND="!dev-db/etcd:0
|
|||||||
src_compile() {
|
src_compile() {
|
||||||
go_build "${COREOS_GO_PACKAGE}"
|
go_build "${COREOS_GO_PACKAGE}"
|
||||||
go_build "${COREOS_GO_PACKAGE}/etcdctl"
|
go_build "${COREOS_GO_PACKAGE}/etcdctl"
|
||||||
go_build "${COREOS_GO_PACKAGE}/tools/etcd-migrate"
|
|
||||||
go_build "${COREOS_GO_PACKAGE}/tools/etcd-dump-logs"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
local libexec="libexec/${PN}/internal_versions/${SLOT}"
|
|
||||||
|
|
||||||
dobin ${WORKDIR}/gopath/bin/etcdctl
|
dobin ${WORKDIR}/gopath/bin/etcdctl
|
||||||
dobin ${WORKDIR}/gopath/bin/etcd-migrate
|
newbin "${WORKDIR}/gopath/bin/${PN}" "${PN}${SLOT}"
|
||||||
dobin ${WORKDIR}/gopath/bin/etcd-dump-logs
|
|
||||||
|
|
||||||
exeinto "/usr/${libexec}"
|
systemd_dounit "${FILESDIR}/${PN}${SLOT}.service"
|
||||||
doexe "${WORKDIR}/gopath/bin/${PN}"
|
systemd_dotmpfilesd "${FILESDIR}/${PN}${SLOT}.conf"
|
||||||
|
|
||||||
coreos-dodoc -r Documentation/*
|
coreos-dodoc -r Documentation/*
|
||||||
}
|
}
|
||||||
|
1
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/files/etcd2.conf
vendored
Normal file
1
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/files/etcd2.conf
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /var/lib/etcd2 0755 etcd etcd - -
|
11
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/files/etcd2.service
vendored
Normal file
11
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/files/etcd2.service
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=etcd2
|
||||||
|
Conflicts=etcd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=etcd
|
||||||
|
Environment=ETCD_DATA_DIR=/var/lib/etcd2
|
||||||
|
ExecStart=/usr/bin/etcd2
|
||||||
|
Restart=always
|
||||||
|
RestartSec=10s
|
||||||
|
LimitNOFILE=40000
|
Loading…
x
Reference in New Issue
Block a user