diff options
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/zetcd/Manifest | 5 | ||||
-rw-r--r-- | sys-cluster/zetcd/zetcd-0.0.4.ebuild | 51 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-cluster/zetcd/Manifest b/sys-cluster/zetcd/Manifest index 5a1da5191954..f229175874dd 100644 --- a/sys-cluster/zetcd/Manifest +++ b/sys-cluster/zetcd/Manifest @@ -1,3 +1,8 @@ +DIST github.com-coreos-etcd-714e7ec8db7f8398880197be10771fe89c480ee5.tar.gz 2522134 SHA256 abeab9a1b93144e97c2161ccc4a976dca5dcc5c13ddd98cf1d67946edd108d14 SHA512 49fda050ed682177b8b61a6b715fc163df307bccae9801547774593b86afe4fa0d80d49cf19a56f3bd4af162263bb9a7f57952a8c9ed824caac1c39d87f178d1 WHIRLPOOL 41a818bb2f25ea47bd2db0cc6dcf601722e9c269fe7bb070f9ff3938c8b727733fb0e6370ea5c8ab2c6fdfa7b0131d7124c780497262631233981b5931256f23 DIST github.com-coreos-etcd-fa4903c83c72f2857b8ed795a3c86f140b89d52c.tar.gz 2875420 SHA256 594dafaa35ca0eea2eb6a0892dfaf97f9d0ff8f20fc4973484f5d677b793934f SHA512 f6455b1dec3813dc9d3d613f26ca329cda962f9c669956941419fd9da852466b751322888b55c07655d73766e476dfbea9a2e767155619eb9e97ba847d553280 WHIRLPOOL 293ac623950ff0b8a90c276cacc266a40f7ed767c5e77b8e70e8f325ad8f13dcd4f896395944f223ce3c4081eaa021f6c253964733278a74e8a98327707ee6e6 +DIST github.com-golang-protobuf-4bd1920723d7b7c925de087aa32e2187708897f7.tar.gz 242813 SHA256 868e51ac5f618fce24ae295c14be2872defbc1a31c3bdcc622c20f4a50a86aeb SHA512 4c22c8f9287066d4e035f2f638e91b78a8731aac23e15ced5ddaf1e386125a89d196300772d59006e72f07c5d1b21fd01ef8ebdc8de5323606b6ff4667e62c31 WHIRLPOOL fbb5301c22568e0872a90283aae5f2db744064d7508f8c61f235b47cea7560243279255f7881825223a8b04febabf6d4119db8ca913731dd89d4c30a42047822 +DIST github.com-google-go-genproto-ee236bd376b077c7a89f260c026c4735b195e459.tar.gz 968271 SHA256 2d7dba8b354e4dd88383a925d8d195c00617fe708d30016183dd6c5cd0a8ee5c SHA512 a3a9e923926da62e097ee1775332cc5550334e4f96975f2ac5f0d3bdaa148f6583dcce10db68d1d4606ee471072b3248f40ae276bd9409c0d31a9f9bb3803bc1 WHIRLPOOL f82fc636cf61028ce3791c28b68d885d10851e86744f465ed1466e9d924a15ba22f0b55b90a755e649cf3858caac5e69d6526fa17fbeedb136a7075950a3ced8 +DIST github.com-grpc-grpc-go-777daa17ff9b5daef1cfdf915088a2ada3332bf0.tar.gz 220340 SHA256 c50b8f8542546791a6946eef488d6767226a8d077fa526fb02b7795de890b0bf SHA512 ca79d38bc7d68f1d98869bee21dcdc563c3fee1a8d28b77d474752376fb91cc7b368466dfac41ddebbec13c1560ac3c22257a52deb6d844add5d208646d2e3f5 WHIRLPOOL 0d64d65d3c54c8559b735beefa31dcbf882a599ac7505b60b8c2aede4c6f8b3d195a420f28cfa18b98f7ad9d07b36bcb0ec46fd4eaff273381b359b1060df8f8 DIST zetcd-0.0.2.tar.gz 1775595 SHA256 2f49859e4dd6efe14e28f3190a1882084e79d5a9e998fb12b17ff384ac0b887c SHA512 6cbc81dd260a23f0ca2356e9deb5ccc3d17d8b0d63b5162d1576c4bdc61917450872bc2c14e1a4a1ec88119cea3f140996207987fb4d7bf16516fadd366c40d4 WHIRLPOOL db0b6b58799642e8f960a4283bd49037a04934c5ee3244c323dec89931620b524c67571be94f34692f2c07c27bcd17d5e474388fc5e7d0b8f74f1467c6ef8e8d DIST zetcd-0.0.3.tar.gz 1777988 SHA256 d921795b4872016a010786479648513cd0cd2458796f918c9fe5bcb152f6d8e1 SHA512 e636f2327daaeb4739b49472263b3e3df7f8b945cdf41f2c99c20cbf1108510cdb8b903c2b0df3bf09bd896a2df105e30d0133935300395e879865fe74bf17f6 WHIRLPOOL 25965566e0f2b48bb6e71da3b52ec7b6ff993b1c801b52fb690829705048f29c9129bfe24d4bb23125892c21172045d64e8cef333e33225b7cf7e320c3eda0c2 +DIST zetcd-0.0.4.tar.gz 1781564 SHA256 72df949f30e0dcf313cad377caeec9b945a1b9810ff6fdc14a6ab4cd481f8979 SHA512 d01cf89f500c6caf0ca4b60adda82d662d3f8948aeb3963f72872363f31ecd4e99b2b839ad8ae826906b0abdc46fbdacd6f996778d2a51cf2a1ddc6ba09b3fc6 WHIRLPOOL c6095a94beaa8559eed091adf54f23f4334d7b2f6fda8b11aa58dc038e0d2e2b7944378501cb683eae83f5426557b47472b928d981df92d349152bc0c92df2bb diff --git a/sys-cluster/zetcd/zetcd-0.0.4.ebuild b/sys-cluster/zetcd/zetcd-0.0.4.ebuild new file mode 100644 index 000000000000..0f92ae748b79 --- /dev/null +++ b/sys-cluster/zetcd/zetcd-0.0.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_PN="github.com/coreos/zetcd" + +EGO_VENDOR=( "github.com/coreos/etcd 714e7ec8db7f8398880197be10771fe89c480ee5" + "google.golang.org/grpc 777daa17ff9b5daef1cfdf915088a2ada3332bf0 github.com/grpc/grpc-go" + "github.com/golang/protobuf 4bd1920723d7b7c925de087aa32e2187708897f7" + "google.golang.org/genproto ee236bd376b077c7a89f260c026c4735b195e459 github.com/google/go-genproto" +) + +ZETCD_COMMIT="e4352ce3cc940bc5b60bb3dd69c14f16dac2980a" + +inherit golang-build golang-vcs-snapshot user + +ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="A ZooKeeper personality for etcd" +HOMEPAGE="https://github.com/coreos/zetcd" +SRC_URI="${ARCHIVE_URI} + ${EGO_VENDOR_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_compile() { + pushd src || die + GOPATH="${WORKDIR}/${P}" go build -o ${EGO_PN}/bin/zetcd -v \ + -ldflags "-X ${EGO_PN}/version.Version=${PV} -X ${EGO_PN}/version.SHA=$ZETCD_COMMIT" \ + ${EGO_PN}/cmd/zetcd || die + popd || die +} + +src_install() { + dobin src/${EGO_PN}/bin/* + dodoc src/${EGO_PN}/README.md + keepdir /var/log/zetcd + fowners -R ${PN}:${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} |