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: Mon,  8 Feb 2021 10:54:16 +0000 (UTC)	[thread overview]
Message-ID: <1612781636.f857dd5381ee2843c1d5eea72810c8a1c40f11f2.patrick@gentoo> (raw)

commit:     f857dd5381ee2843c1d5eea72810c8a1c40f11f2
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  8 10:53:56 2021 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Mon Feb  8 10:53:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f857dd53

sys-cluster/zookeeper-bin: Bump

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

 sys-cluster/zookeeper-bin/Manifest                 |  2 +
 .../zookeeper-bin/zookeeper-bin-3.5.9.ebuild       | 64 ++++++++++++++++++++++
 .../zookeeper-bin/zookeeper-bin-3.6.2.ebuild       | 64 ++++++++++++++++++++++
 3 files changed, 130 insertions(+)

diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest
index bc25b58e05c..954dcf830ab 100644
--- a/sys-cluster/zookeeper-bin/Manifest
+++ b/sys-cluster/zookeeper-bin/Manifest
@@ -1 +1,3 @@
+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

diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.5.9.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.5.9.ebuild
new file mode 100644
index 00000000000..91ec7b75875
--- /dev/null
+++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.5.9.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils java-utils-2 user
+
+MY_P="apache-zookeeper"
+MY_PN=${MY_P}-${PV}-bin
+
+DESCRIPTION="A high-performance coordination service for distributed applications."
+HOMEPAGE="http://zookeeper.apache.org/"
+SRC_URI="mirror://apache/zookeeper/zookeeper-${PV}/${MY_PN}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror binchecks"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.7"
+
+S=${WORKDIR}/${MY_PN}
+
+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}
+
+	# cleanup sources
+	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}"
+}

diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.6.2.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.6.2.ebuild
new file mode 100644
index 00000000000..91ec7b75875
--- /dev/null
+++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.6.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils java-utils-2 user
+
+MY_P="apache-zookeeper"
+MY_PN=${MY_P}-${PV}-bin
+
+DESCRIPTION="A high-performance coordination service for distributed applications."
+HOMEPAGE="http://zookeeper.apache.org/"
+SRC_URI="mirror://apache/zookeeper/zookeeper-${PV}/${MY_PN}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror binchecks"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.7"
+
+S=${WORKDIR}/${MY_PN}
+
+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}
+
+	# cleanup sources
+	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:[~2021-02-08 10:54 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08 10:54 罗百科 [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
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
2020-06-20  9:33 罗百科
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=1612781636.f857dd5381ee2843c1d5eea72810c8a1c40f11f2.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