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