1 |
commit: 2be5b3c199fd6f1ce10a21105951bac092b62f6f |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 15 09:01:11 2017 +0000 |
4 |
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 15 09:03:24 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2be5b3c1 |
7 |
|
8 |
sys-cluster/zookeeper-bin: Bump |
9 |
|
10 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
11 |
|
12 |
sys-cluster/zookeeper-bin/Manifest | 1 + |
13 |
.../zookeeper-bin/zookeeper-bin-3.4.11.ebuild | 90 ++++++++++++++++++++++ |
14 |
2 files changed, 91 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest |
17 |
index 5f5738321d7..c6e23256edc 100644 |
18 |
--- a/sys-cluster/zookeeper-bin/Manifest |
19 |
+++ b/sys-cluster/zookeeper-bin/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST zookeeper-3.4.10.tar.gz 35042811 SHA256 7f7f5414e044ac11fee2a1e0bc225469f51fb0cdf821e67df762a43098223f27 SHA512 4c54e40ac8d0b267db4a188a30e39ed0ac2c3e8a8fadaf244be45ff5adee956df28f6cb9f1eb56f175e924fa3629b64f98286a090c46764c91c017613c80a51b WHIRLPOOL 10fb08b7a351f688b187e38b8dd84578f765eee87fdcfc63e9813bf7c5878048cc4ffba21e660ec9e1af7b58e68de69994b5938791b7ae83a5b014456f35a57a |
22 |
+DIST zookeeper-3.4.11.tar.gz 36668066 SHA256 f6bd68a1c8f7c13ea4c2c99f13082d0d71ac464ffaf3bf7a365879ab6ad10e84 SHA512 1ed2df11dbff2fbbb70d992d02427c4f694ccb4fe493db10a087b04d934b132b970956099edbdf1c2c636d5eb248bca1528846fcb449ae8bee4b9a82f7936f9e WHIRLPOOL f3fa8bea9908e371f4a1a9bc8a0f90552a5ff7b4c95f9bdf4991bbe0dd6ebdd22fbe8851e9da09a2dd7a5b13d922179280a7305ed2da2dce0f1aed152593e697 |
23 |
|
24 |
diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.11.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.11.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..bc0ae0982c2 |
27 |
--- /dev/null |
28 |
+++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.11.ebuild |
29 |
@@ -0,0 +1,90 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=5 |
34 |
+PYTHON_COMPAT=( python2_7 ) |
35 |
+ |
36 |
+inherit distutils-r1 eutils java-utils-2 user |
37 |
+ |
38 |
+MY_P="zookeeper" |
39 |
+MY_PN=${MY_P}-${PV} |
40 |
+ |
41 |
+DESCRIPTION="A high-performance coordination service for distributed applications." |
42 |
+HOMEPAGE="http://zookeeper.apache.org/" |
43 |
+SRC_URI="mirror://apache/${MY_P}/${MY_PN}/${MY_PN}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+RESTRICT="mirror binchecks" |
49 |
+IUSE="" |
50 |
+ |
51 |
+DEPEND="" |
52 |
+RDEPEND=">=virtual/jre-1.7" |
53 |
+ |
54 |
+S=${WORKDIR}/${MY_PN} |
55 |
+ |
56 |
+INSTALL_DIR=/opt/${PN} |
57 |
+export CONFIG_PROTECT="${CONFIG_PROTECT} ${INSTALL_DIR}/conf" |
58 |
+ |
59 |
+pkg_setup() { |
60 |
+ enewgroup zookeeper |
61 |
+ enewuser zookeeper -1 /bin/sh /var/lib/zookeeper zookeeper |
62 |
+} |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ # python |
66 |
+ sed -e "s|src/c/zookeeper.c|zookeeper.c|g" \ |
67 |
+ -e "s|../../../|${S}|g" \ |
68 |
+ -i contrib/zkpython/src/python/setup.py || die |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ cd "${S}"/src/c || die |
73 |
+ econf |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ cd "${S}"/src/c || die |
78 |
+ emake |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ local DATA_DIR=/var/lib/${MY_P} |
83 |
+ |
84 |
+ # python |
85 |
+ cd "${S}"/contrib/zkpython/ || die |
86 |
+ mv src/python/setup.py . |
87 |
+ mv src/c/* . |
88 |
+ python_foreach_impl distutils-r1_src_install |
89 |
+ cd "${S}" || die |
90 |
+ |
91 |
+ # cleanup sources |
92 |
+ rm -rf src/ || die |
93 |
+ rm bin/*.cmd || die |
94 |
+ |
95 |
+ keepdir "${DATA_DIR}" |
96 |
+ sed "s:^dataDir=.*:dataDir=${DATA_DIR}:" conf/zoo_sample.cfg > conf/zoo.cfg || die "sed failed" |
97 |
+ cp "${FILESDIR}"/log4j.properties conf/ || die "cp log4j conf failed" |
98 |
+ |
99 |
+ dodir "${INSTALL_DIR}" |
100 |
+ cp -a "${S}"/* "${D}${INSTALL_DIR}" || die "install failed" |
101 |
+ |
102 |
+ # data dir perms |
103 |
+ fowners zookeeper:zookeeper "${DATA_DIR}" |
104 |
+ |
105 |
+ # log dir |
106 |
+ keepdir /var/log/zookeeper |
107 |
+ fowners zookeeper:zookeeper /var/log/zookeeper |
108 |
+ |
109 |
+ # init script |
110 |
+ newinitd "${FILESDIR}"/zookeeper.initd zookeeper |
111 |
+ newconfd "${FILESDIR}"/zookeeper.confd zookeeper |
112 |
+ |
113 |
+ # env file |
114 |
+ cat > 99"${PN}" <<-EOF |
115 |
+ PATH=${INSTALL_DIR}/bin |
116 |
+ CONFIG_PROTECT=${INSTALL_DIR}/conf |
117 |
+ EOF |
118 |
+ doenvd 99"${PN}" || die "doenvd failed" |
119 |
+} |