From f625b9919a60a30f1bd860f7d1b2eac183ced593 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 8 Aug 2018 20:11:47 +0100 Subject: gentoo resync : 08.08.2018 --- sys-cluster/zookeeper-bin/Manifest | 2 + .../zookeeper-bin/zookeeper-bin-3.4.13.ebuild | 93 ++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13.ebuild (limited to 'sys-cluster/zookeeper-bin') diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest index 3a9e56027b1c..4e0aa38183a4 100644 --- a/sys-cluster/zookeeper-bin/Manifest +++ b/sys-cluster/zookeeper-bin/Manifest @@ -4,7 +4,9 @@ AUX zookeeper.initd 373 BLAKE2B c60740f691d186861e3f101c84e5904774de6235a0423f4f DIST zookeeper-3.4.10.tar.gz 35042811 BLAKE2B c17100d2179688665cfc9efededd378543492e2a839df9da7ab72097b954200c527375cadae1d7b30d83c511c21c1470d0b86a4a19df5abe0c82980920cad92f SHA512 4c54e40ac8d0b267db4a188a30e39ed0ac2c3e8a8fadaf244be45ff5adee956df28f6cb9f1eb56f175e924fa3629b64f98286a090c46764c91c017613c80a51b DIST zookeeper-3.4.11.tar.gz 36668066 BLAKE2B 4bf963d41280bd6227b4e81721576bf1f973a765c7049e78c5fae4d9dbc7e4d034304208af0f68b894bd4624e1945c9e4492b3217ff7f0e05d9b822c1843d96d SHA512 1ed2df11dbff2fbbb70d992d02427c4f694ccb4fe493db10a087b04d934b132b970956099edbdf1c2c636d5eb248bca1528846fcb449ae8bee4b9a82f7936f9e DIST zookeeper-3.4.12.tar.gz 36667596 BLAKE2B e4aac98f86fc4fcc576ecfb55381fd37efe3fa56cebc1632abda59b6ba71fecca17ace29124ef9f59ca0de627ff463f9d6fc7ff7fbbe77c2bbf30ae25a9f99f8 SHA512 026c7feb4a660bf8d99b1b719fec2b7e4603c3c46f2b77bac372df15ed0ceb4d971aa9c954082d61d73929ef8dc38c31693604ae75244f746cafb4eb6e67320c +DIST zookeeper-3.4.13.tar.gz 37191810 BLAKE2B 994eecf982a19bbf3ae648c5d140746f5836f0f5d8921ed005ebccdedf0098591005b9038eb75fc660b48ae12b09b8db9dd68d3ac3b4ac9f847de214996e1efd SHA512 3481bd19945d80848f81d9dc2896a682ae8b62269b8164ffbae532e55aa4219961403e0208c8e72cf784605eae436d70ddae2b26e0deba0f1f84c74188c32c0a EBUILD zookeeper-bin-3.4.10.ebuild 1956 BLAKE2B 09d13cfe913fb3626e25ca677fa38bb7d23220424fc34745b04ae9a8e85d9c103ee6c82b856c732df89f70810eb17c3f01d9b7ad98fedf7b8a09534c58108ce6 SHA512 21b72660fbd7cfe4aa3b9a6af3d04641e2cee78b0eaf249ef678a93d1c1cb8aee1f12ff61152f9d33fed1a880956e54fbd5c7141916976eeec5679423675f437 EBUILD zookeeper-bin-3.4.11.ebuild 1956 BLAKE2B 09d13cfe913fb3626e25ca677fa38bb7d23220424fc34745b04ae9a8e85d9c103ee6c82b856c732df89f70810eb17c3f01d9b7ad98fedf7b8a09534c58108ce6 SHA512 21b72660fbd7cfe4aa3b9a6af3d04641e2cee78b0eaf249ef678a93d1c1cb8aee1f12ff61152f9d33fed1a880956e54fbd5c7141916976eeec5679423675f437 EBUILD zookeeper-bin-3.4.12.ebuild 1956 BLAKE2B 96cb31edbc31b9da04f51d1b94adb1e403a106e3d1fa8e50eed7a144f0c57c0769b17df4135a07ba218bb25aa5ae6784f143406cc56ff0bb1fa77463b07234ce SHA512 18e2c107a885f3dac119029738870615dbc4613f5cb707c8d689ab50f1c1c9b868e6d804e3f4aa7ccd3a578034df4cd03e9652f120fe0ea88a8000dd47a4b180 +EBUILD zookeeper-bin-3.4.13.ebuild 2076 BLAKE2B fdf9459c8ee9e1e895c98272b3d2e9a2608be4efe2b41934fd8d95cfb561608981f270a50bb9e95d37b6c6fd6dd6eeecf8a7fc63bcb4d2946693e47afee82350 SHA512 e1b963cceeb053d9d57f481edd9c0d56b3a3069aaf3f3f20bdfcf453d31b8c48358b2448e20adc45582bc4e1bbd10fb5c7e0d2879ea2131728d5eea7080fbdbc MISC metadata.xml 377 BLAKE2B ab2582cf60510f072415cc1dd008bd744f66d76fe6b34b779eba8acf7c28a0d055d70d16c2712af7324b6b11193ed2526b6b8bb1b101084e8a5ca8d96993ef3d SHA512 2ad1600101d36b70c32cb76894e55f01717a544d689bd28ffb41a727d7d23b6f8e9565eea71f252a721bcd4e516692921796f24266485a216a6015a5a9e74f26 diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13.ebuild new file mode 100644 index 000000000000..0ed0f10b5ef0 --- /dev/null +++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils java-utils-2 user + +MY_P="zookeeper" +MY_PN=${MY_P}-${PV} + +DESCRIPTION="A high-performance coordination service for distributed applications." +HOMEPAGE="http://zookeeper.apache.org/" +SRC_URI="mirror://apache/${MY_P}/${MY_PN}/${MY_PN}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="mirror binchecks" +IUSE="" + +DEPEND="" +RDEPEND=">=virtual/jre-1.7" + +S=${WORKDIR}/${MY_PN} + +INSTALL_DIR=/opt/${PN} +export CONFIG_PROTECT="${CONFIG_PROTECT} ${INSTALL_DIR}/conf" + +pkg_setup() { + enewgroup zookeeper + enewuser zookeeper -1 /bin/sh /var/lib/zookeeper zookeeper +} + +src_prepare() { + # python + sed -e "s|src/c/zookeeper.c|zookeeper.c|g" \ + -e "s|../../../|${S}|g" \ + -i contrib/zkpython/src/python/setup.py || die + + # whyyyy u -Werror ?! so horribal! + sed -e 's/-Werror//g' -i src/c/Makefile.* || die "Failed to rectify the Makefile" +} + +src_configure() { + cd "${S}"/src/c || die + econf +} + +src_compile() { + cd "${S}"/src/c || die + emake +} + +src_install() { + local DATA_DIR=/var/lib/${MY_P} + + # python + cd "${S}"/contrib/zkpython/ || die + mv src/python/setup.py . + mv src/c/* . + python_foreach_impl distutils-r1_src_install + cd "${S}" || die + + # cleanup sources + rm -rf src/ || die + rm bin/*.cmd || die + + keepdir "${DATA_DIR}" + sed "s:^dataDir=.*:dataDir=${DATA_DIR}:" conf/zoo_sample.cfg > conf/zoo.cfg || die "sed failed" + cp "${FILESDIR}"/log4j.properties conf/ || die "cp log4j conf failed" + + dodir "${INSTALL_DIR}" + cp -a "${S}"/* "${D}${INSTALL_DIR}" || die "install failed" + + # data dir perms + fowners zookeeper:zookeeper "${DATA_DIR}" + + # log dir + keepdir /var/log/zookeeper + fowners zookeeper:zookeeper /var/log/zookeeper + + # init script + newinitd "${FILESDIR}"/zookeeper.initd zookeeper + newconfd "${FILESDIR}"/zookeeper.confd zookeeper + + # env file + cat > 99"${PN}" <<-EOF + PATH=${INSTALL_DIR}/bin + CONFIG_PROTECT=${INSTALL_DIR}/conf + EOF + doenvd 99"${PN}" || die "doenvd failed" +} -- cgit v1.2.3