summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2024-11-01 08:02:37 +0000
committerPatrick Lauer <patrick@gentoo.org>2024-11-01 08:05:25 +0000
commit2fd995dc154c7745e0fcb34846ac51b1a409cd78 (patch)
tree3bd7fdfe97821278b891f367abf44a6b729ce50d
parentapp-admin/monit: add 5.34.2 (diff)
downloadgentoo-2fd995dc154c7745e0fcb34846ac51b1a409cd78.tar.gz
gentoo-2fd995dc154c7745e0fcb34846ac51b1a409cd78.tar.bz2
gentoo-2fd995dc154c7745e0fcb34846ac51b1a409cd78.zip
sys-cluster/zookeeper-bin: add 3.9.3
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
-rw-r--r--sys-cluster/zookeeper-bin/Manifest1
-rw-r--r--sys-cluster/zookeeper-bin/zookeeper-bin-3.9.3.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest
index 8e41f7c83591..79ee04836e09 100644
--- a/sys-cluster/zookeeper-bin/Manifest
+++ b/sys-cluster/zookeeper-bin/Manifest
@@ -1,2 +1,3 @@
DIST zookeeper-bin-3.8.4.tar.gz 14609453 BLAKE2B 40f3267655469be4cfa50841ad924f37e05fc9316098934b52f89fb2adb601142b2557d141e485b04e012489c061e33a6691e96cff21936361ab5fea6b7e39dc SHA512 4d85d6f7644d5f36d9c4d65e78bd662ab35ebe1380d762c24c12b98af029027eee453437c9245dbdf2b9beb77cd6b690b69e26f91cf9d11b0a183a979c73fa43
DIST zookeeper-bin-3.9.2.tar.gz 20213309 BLAKE2B bdf67a12a7c4affb4a9d0efd025572e225db93a79f28a4a775515aa7c11eff2e42f8765e401e394d0268a639151242299963191f38a6a1320101fbc12df22a76 SHA512 2b5ae02d618a27ca8cd54924855d5344263b7d9dee760181f9d66bafa9230324d2ad31786895f0654c969dc38d4a3d0077f74cc376b58b5fa2fb94beb1ab445f
+DIST zookeeper-bin-3.9.3.tar.gz 20655617 BLAKE2B 6f12a5eb825535620edc5af8e6935ba5f7da66b5195405b3b5371521e88fec9142ad86e25eda4a4181e083dbb168c33ff4e8ac427e0895c4a2fb9d328a0cf218 SHA512 d44d870c1691662efbf1a8baf1859c901b820dc5ff163b36e81beb27b6fbf3cd31b5f1f075697edaaf6d3e7a4cb0cc92f924dcff64b294ef13d535589bdaf143
diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.9.3.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.9.3.ebuild
new file mode 100644
index 000000000000..5e8587dd1cf9
--- /dev/null
+++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.9.3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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}"
+}