1 |
commit: 274ccde01df8405ceddedf8fdc91dadae22cd526 |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 11:58:25 2022 +0000 |
4 |
Commit: 罗百科 <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 12:01:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=274ccde0 |
7 |
|
8 |
sys-cluster/zookeeper-bin: Bump to 3.8.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> |
12 |
|
13 |
sys-cluster/zookeeper-bin/Manifest | 1 + |
14 |
.../zookeeper-bin/zookeeper-bin-3.8.0.ebuild | 68 ++++++++++++++++++++++ |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest |
18 |
index 954a7321b4e7..68a0d13d2107 100644 |
19 |
--- a/sys-cluster/zookeeper-bin/Manifest |
20 |
+++ b/sys-cluster/zookeeper-bin/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST zookeeper-bin-3.7.1.tar.gz 12649765 BLAKE2B 1a0fd48185fb2a847d961ffb33387f9bf165f6c7f24eb00c82f1cc413278d48652459a89406dc4af01a4453d39e93be12deb07c0791d2337a43f04e14ce33417 SHA512 9103628a50745fa1a289bca666fda4a9c08ec17c55cf13e66887e7ba76e93dbae60a1f1ffd6c10798be3a16069344ecbc00cebb29bf03d9cd7096ccd098ed011 |
23 |
+DIST zookeeper-bin-3.8.0.tar.gz 13185104 BLAKE2B 2afcfbac16a027fb2a009e20a852a747a9a93fb846b214c57ebf6730e73b892aa40037e29013cbc45e87532848bf889d24635becbf7dd554965b7da0a89ac8e0 SHA512 d66e3a40451f840406901b2cd940992b001f92049a372ae48d8b420891605871cd1ae5f6cceb3b10665491e7abef36a4078dace158bd1e0938fcd3567b5234ca |
24 |
|
25 |
diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.0.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..5bfa5145dabf |
28 |
--- /dev/null |
29 |
+++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.8.0.ebuild |
30 |
@@ -0,0 +1,68 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit java-utils-2 |
37 |
+ |
38 |
+MY_PN="zookeeper" |
39 |
+MY_P="${MY_PN}-${PV}" |
40 |
+ |
41 |
+DESCRIPTION="A high-performance coordination service for distributed applications" |
42 |
+HOMEPAGE="https://zookeeper.apache.org/" |
43 |
+SRC_URI="https://downloads.apache.org/${MY_PN}/${MY_P}/apache-${MY_P}-bin.tar.gz -> ${P}.tar.gz" |
44 |
+S="${WORKDIR}/apache-${MY_P}-bin" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+RESTRICT="mirror binchecks" |
50 |
+ |
51 |
+BDEPEND=" |
52 |
+ acct-group/zookeeper |
53 |
+ acct-user/zookeeper |
54 |
+" |
55 |
+RDEPEND=" |
56 |
+ ${BDEPEND} |
57 |
+ >=virtual/jre-1.8 |
58 |
+" |
59 |
+ |
60 |
+INSTALL_DIR=/opt/"${PN}" |
61 |
+export CONFIG_PROTECT="${CONFIG_PROTECT} ${INSTALL_DIR}/conf" |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ rm "${S}"/docs/skin/instruction_arrow.png || die |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ local DATA_DIR=/var/lib/"${MY_P}" |
70 |
+ |
71 |
+ # cleanup sources |
72 |
+ rm bin/*.cmd || die |
73 |
+ |
74 |
+ keepdir "${DATA_DIR}" |
75 |
+ sed "s:^dataDir=.*:dataDir=${DATA_DIR}:" conf/zoo_sample.cfg > conf/zoo.cfg || die |
76 |
+ cp "${FILESDIR}"/log4j.properties conf/ || die |
77 |
+ |
78 |
+ dodir "${INSTALL_DIR}" |
79 |
+ cp -a "${S}"/* "${ED}${INSTALL_DIR}" || die |
80 |
+ |
81 |
+ # data dir perms |
82 |
+ fowners zookeeper:zookeeper "${DATA_DIR}" |
83 |
+ |
84 |
+ # log dir |
85 |
+ keepdir /var/log/zookeeper |
86 |
+ fowners zookeeper:zookeeper /var/log/zookeeper |
87 |
+ |
88 |
+ # init script |
89 |
+ newinitd "${FILESDIR}"/zookeeper.initd zookeeper |
90 |
+ newconfd "${FILESDIR}"/zookeeper.confd zookeeper |
91 |
+ |
92 |
+ # env file |
93 |
+ cat > 99"${PN}" <<-EOF |
94 |
+ PATH="${INSTALL_DIR}"/bin |
95 |
+ CONFIG_PROTECT="${INSTALL_DIR}"/conf |
96 |
+ EOF |
97 |
+ doenvd 99"${PN}" |
98 |
+} |