public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "罗百科" <patrick@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/zookeeper-bin/
Date: Sat, 20 Jun 2020 09:33:35 +0000 (UTC)	[thread overview]
Message-ID: <1592645537.46f020bc4e37a2fdf85794b6aad6b40140236f39.patrick@gentoo> (raw)

commit:     46f020bc4e37a2fdf85794b6aad6b40140236f39
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 20 09:32:17 2020 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Sat Jun 20 09:32:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f020bc

sys-cluster/zookeeper-bin: Bump

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 sys-cluster/zookeeper-bin/Manifest                 |  1 +
 .../zookeeper-bin/zookeeper-bin-3.6.1.ebuild       | 63 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest
index 0fdfe7b3505..de398af670b 100644
--- a/sys-cluster/zookeeper-bin/Manifest
+++ b/sys-cluster/zookeeper-bin/Manifest
@@ -1,3 +1,4 @@
+DIST apache-zookeeper-3.6.1-bin.tar.gz 12436328 BLAKE2B 73c8628826382d68171f12e6ff5baefc66c4569f6e7dfec53ce00a2fd8bcf5ec519c5aeb29e9d01762ca95205bdfce3748cdaa1c745cf254c38df6ee38117165 SHA512 1c5cb4d9886fae41bf244a446dd874b73c0fff7a5fc2dda4305041964420cde21e59b388dfd2551464a46bb6918d9d3c3c01ebe68fdbe782074ee360aa830c7d
 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

diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.6.1.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.6.1.ebuild
new file mode 100644
index 00000000000..ce172dc5383
--- /dev/null
+++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.6.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit 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="https://downloads.apache.org/${MY_P}/${MY_PN}/apache-${MY_PN}-bin.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror binchecks"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.7"
+
+S=${WORKDIR}/apache-${MY_PN}-bin
+
+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_install() {
+	local DATA_DIR=/var/lib/${MY_P}
+
+	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}"
+}


             reply	other threads:[~2020-06-20  9:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-20  9:33 罗百科 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-01  8:05 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/zookeeper-bin/ Patrick Lauer
2024-03-13 13:01 Patrick Lauer
2024-03-13 12:05 Arthur Zamarin
2024-03-13 12:05 Arthur Zamarin
2024-03-13  9:24 Patrick Lauer
2024-03-13  9:24 Patrick Lauer
2023-10-17 18:27 罗百科
2023-10-17 18:27 罗百科
2023-08-30 14:38 罗百科
2023-03-20  8:14 罗百科
2022-05-18 12:01 罗百科
2022-05-18 12:01 罗百科
2021-07-15 22:12 Conrad Kostecki
2021-07-15 21:39 Sam James
2021-07-15 21:33 Sam James
2021-07-10 14:52 Conrad Kostecki
2021-02-08 10:54 罗百科
2020-09-01  9:07 Michał Górny
2020-09-01  9:07 Michał Górny
2020-08-30  1:32 Thomas Deutschmann
2020-08-25 12:53 Agostino Sarubbo
2020-06-28 13:14 David Seifert
2018-08-04 11:06 Patrick Lauer
2018-04-29 18:40 Patrick Lauer
2017-11-15  9:03 Patrick Lauer
2017-07-16  1:44 Aaron Bauman
2017-05-17 15:27 Patrick Lauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1592645537.46f020bc4e37a2fdf85794b6aad6b40140236f39.patrick@gentoo \
    --to=patrick@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox