summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Scardovi <marco@scardovi.com>2021-06-11 22:56:57 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-07-10 16:45:39 +0200
commitaa1e01343956aad21d70f88c50a97c3fd1bde79c (patch)
treef0b3925d1ec915c7f8509e7cddd7c6d579e45a57 /sys-cluster/zookeeper-bin
parentdev-libs/dqlite: stabilize 1.8.0 for amd64 (diff)
downloadgentoo-aa1e01343956aad21d70f88c50a97c3fd1bde79c.tar.gz
gentoo-aa1e01343956aad21d70f88c50a97c3fd1bde79c.tar.bz2
gentoo-aa1e01343956aad21d70f88c50a97c3fd1bde79c.zip
sys-cluster/zookeeper-bin: bump to new version
Also fixed GLEP 81. Closes: https://github.com/gentoo/gentoo/pull/21204 Closes: https://bugs.gentoo.org/678310 Closes: https://bugs.gentoo.org/781503 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Marco Scardovi <marco@scardovi.com> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-cluster/zookeeper-bin')
-rw-r--r--sys-cluster/zookeeper-bin/Manifest1
-rw-r--r--sys-cluster/zookeeper-bin/zookeeper-bin-3.7.0.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest
index 954dcf830abc..948115b53434 100644
--- a/sys-cluster/zookeeper-bin/Manifest
+++ b/sys-cluster/zookeeper-bin/Manifest
@@ -1,3 +1,4 @@
DIST apache-zookeeper-3.5.9-bin.tar.gz 9623007 BLAKE2B cb8a599a86f57cb0eb91d58925d363271749e0ca93b0d40be5852f859848bf557f4bc6016707cb99ad75e95204b7b8e0417acdff5ebc8328e3a12c5fe7faf285 SHA512 0e5a64713abc6f36d961dd61a06f681868171a9d9228366e512a01324806d263e05508029c94d8e18307811867cdc39d848e736c252bf56c461273ef74c66a45
DIST apache-zookeeper-3.6.2-bin.tar.gz 12515974 BLAKE2B 6770397b818558464843638bb9beebc1e23fc737ed88b28966494f69a28adb9624d9ea67225f8b528babd78a6ce7650218933b80db520ea08e31231e1bbe478c SHA512 caff5111bb6876b7124760bc006e6fa2523efa54b99321a3c9cd8192ea0d5596abc7d70a054b1aac9b20a411407dae7611c7aba870c23bff28eb1643ba499199
DIST zookeeper-3.4.13.tar.gz 37191810 BLAKE2B 994eecf982a19bbf3ae648c5d140746f5836f0f5d8921ed005ebccdedf0098591005b9038eb75fc660b48ae12b09b8db9dd68d3ac3b4ac9f847de214996e1efd SHA512 3481bd19945d80848f81d9dc2896a682ae8b62269b8164ffbae532e55aa4219961403e0208c8e72cf784605eae436d70ddae2b26e0deba0f1f84c74188c32c0a
+DIST zookeeper-bin-3.7.0.tar.gz 12387614 BLAKE2B 5b5467b4c7e206704177d41289c3c52fb0487f990fcc460d2749215551ab08eee672b6b52b8d43796c52660a46d3bed837fe26f042c30506b537457f54a95bd7 SHA512 64e2701c019ed46f45f4d53b2c5eaeaf7cf48c342bbafa032a0819d527fc77caebfada6bdad34e5171e6d838f40b16c95b62ce378b53dfc827af2d60cec0b17c
diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.7.0.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.7.0.ebuild
new file mode 100644
index 000000000000..758806fe6c01
--- /dev/null
+++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.7.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit java-utils-2
+
+MY_PN="zookeeper"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A high-performance coordination service for distributed applications"
+HOMEPAGE="https://zookeeper.apache.org/"
+SRC_URI="https://downloads.apache.org/${MY_PN}/${MY_P}/apache-${MY_P}-bin.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/apache-${MY_P}-bin"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror binchecks"
+
+BDEPEND="
+ acct-group/zookeeper
+ acct-user/zookeeper
+"
+RDEPEND="
+ ${BDEPEND}
+ >=virtual/jre-1.8
+"
+
+INSTALL_DIR=/opt/"${PN}"
+export CONFIG_PROTECT="${CONFIG_PROTECT} ${INSTALL_DIR}/conf"
+
+src_prepare() {
+ default
+ rm "${S}"/docs/skin/instruction_arrow.png || die
+}
+
+src_install() {
+ local DATA_DIR=/var/lib/"${MY_P}"
+
+ # cleanup sources
+ rm bin/*.cmd || die
+
+ keepdir "${DATA_DIR}"
+ sed "s:^dataDir=.*:dataDir=${DATA_DIR}:" conf/zoo_sample.cfg > conf/zoo.cfg || die
+ cp "${FILESDIR}"/log4j.properties conf/ || die
+
+ dodir "${INSTALL_DIR}"
+ cp -a "${S}"/* "${ED}${INSTALL_DIR}" || die
+
+ # 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}"
+}