mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
dev-db/etcd: write all v1 files from ebuild
This commit is contained in:
parent
69d3a2f871
commit
ffdcaaac2b
@ -8,7 +8,7 @@ EAPI=4
|
||||
CROS_WORKON_PROJECT="coreos/etcd"
|
||||
CROS_WORKON_LOCALNAME="etcd"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
inherit coreos-doc toolchain-funcs cros-workon
|
||||
inherit coreos-doc toolchain-funcs cros-workon systemd
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
@ -25,15 +25,18 @@ LICENSE="Apache-2.0"
|
||||
SLOT="1"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.2"
|
||||
RDEPEND="!dev-db/etcd:0"
|
||||
RDEPEND="!dev-db/etcd:0
|
||||
!dev-db/etcd-starter"
|
||||
|
||||
src_compile() {
|
||||
./build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libexec="libexec/${PN}/internal_versions/${SLOT}"
|
||||
dobin "${S}/bin/${PN}"
|
||||
|
||||
exeinto "/usr/${libexec}"
|
||||
doexe "${S}/bin/${PN}"
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf
|
||||
|
||||
coreos-dodoc -r Documentation/*
|
||||
}
|
2
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/files/etcd.conf
vendored
Normal file
2
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/files/etcd.conf
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
d /var/lib/etcd 0755 etcd etcd - -
|
||||
d /var/run/etcd 0755 etcd etcd - -
|
13
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/files/etcd.service
vendored
Normal file
13
sdk_container/src/third_party/coreos-overlay/dev-db/etcd/files/etcd.service
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=etcd
|
||||
Conflicts=etcd2.service
|
||||
|
||||
[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