diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-17 22:03:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-17 22:03:16 +0100 |
commit | 94dd707d272879a8dfdd31d71113b1b7bba98366 (patch) | |
tree | 615875fa702a02f83e99f52ddb3a3fb0375a5674 /sys-cluster/zookeeper-bin/zookeeper-bin-3.8.3.ebuild | |
parent | 29ef84a753ab20dbbb228238713a3c7443c6520e (diff) |
gentoo auto-resync : 17:10:2023 - 22:03:16
Diffstat (limited to 'sys-cluster/zookeeper-bin/zookeeper-bin-3.8.3.ebuild')
-rw-r--r-- | sys-cluster/zookeeper-bin/zookeeper-bin-3.8.3.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.3.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.3.ebuild new file mode 100644 index 000000000000..f3969f04bfc3 --- /dev/null +++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.3.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 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}" +} |