From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 962BC15A7D9 for ; Mon, 20 Mar 2023 08:14:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F0F5E07E2; Mon, 20 Mar 2023 08:14:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75355E07E2 for ; Mon, 20 Mar 2023 08:14:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A2DE340AB2 for ; Mon, 20 Mar 2023 08:14:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D1AB8D4 for ; Mon, 20 Mar 2023 08:14:45 +0000 (UTC) From: "罗百科" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "罗百科" Message-ID: <1679300083.efc610a8a06c61ddb46bb2b7e764e457492592e5.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/zookeeper-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/zookeeper-bin/Manifest sys-cluster/zookeeper-bin/zookeeper-bin-3.8.1.ebuild X-VCS-Directories: sys-cluster/zookeeper-bin/ X-VCS-Committer: patrick X-VCS-Committer-Name: 罗百科 X-VCS-Revision: efc610a8a06c61ddb46bb2b7e764e457492592e5 X-VCS-Branch: master Date: Mon, 20 Mar 2023 08:14:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6b0a4448-5dd1-47e1-9547-fc09822df04b X-Archives-Hash: 08b8e6cc504def1f526cb9ffaa60a036 commit: efc610a8a06c61ddb46bb2b7e764e457492592e5 Author: Patrick Lauer gentoo org> AuthorDate: Mon Mar 20 08:13:27 2023 +0000 Commit: 罗百科 gentoo org> CommitDate: Mon Mar 20 08:14:43 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efc610a8 sys-cluster/zookeeper-bin: add 3.8.1 Signed-off-by: Patrick Lauer gentoo.org> sys-cluster/zookeeper-bin/Manifest | 1 + .../zookeeper-bin/zookeeper-bin-3.8.1.ebuild | 68 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest index 68a0d13d2107..880e4064adc7 100644 --- a/sys-cluster/zookeeper-bin/Manifest +++ b/sys-cluster/zookeeper-bin/Manifest @@ -1,2 +1,3 @@ DIST zookeeper-bin-3.7.1.tar.gz 12649765 BLAKE2B 1a0fd48185fb2a847d961ffb33387f9bf165f6c7f24eb00c82f1cc413278d48652459a89406dc4af01a4453d39e93be12deb07c0791d2337a43f04e14ce33417 SHA512 9103628a50745fa1a289bca666fda4a9c08ec17c55cf13e66887e7ba76e93dbae60a1f1ffd6c10798be3a16069344ecbc00cebb29bf03d9cd7096ccd098ed011 DIST zookeeper-bin-3.8.0.tar.gz 13185104 BLAKE2B 2afcfbac16a027fb2a009e20a852a747a9a93fb846b214c57ebf6730e73b892aa40037e29013cbc45e87532848bf889d24635becbf7dd554965b7da0a89ac8e0 SHA512 d66e3a40451f840406901b2cd940992b001f92049a372ae48d8b420891605871cd1ae5f6cceb3b10665491e7abef36a4078dace158bd1e0938fcd3567b5234ca +DIST zookeeper-bin-3.8.1.tar.gz 13368512 BLAKE2B c1e5c375f6068e847733aa655e54f0a302ce89dbb3a179abc60f2f2fff558aa264530d53d74857d617ef966c9904281927f50e639ac3e653f958be27c9595e34 SHA512 940ce2fdd4ff33acfc99860b5c604d2d48f37c4d6f0b7c2dcdade7492ecf5385b079bf56db68b4c9c9b8dfed0a86ecd73ee2977621738f263d6e9b8432f34b35 diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.1.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.1.ebuild new file mode 100644 index 000000000000..f3969f04bfc3 --- /dev/null +++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.1.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}" +}