From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 454FB1396D9 for ; Wed, 15 Nov 2017 09:03:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 494D4E0BC7; Wed, 15 Nov 2017 09:03:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A77FE0BC7 for ; Wed, 15 Nov 2017 09:03:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7B54933BE18 for ; Wed, 15 Nov 2017 09:03:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 400C49B57 for ; Wed, 15 Nov 2017 09:03:29 +0000 (UTC) From: "Patrick Lauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick Lauer" Message-ID: <1510736604.2be5b3c199fd6f1ce10a21105951bac092b62f6f.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/zookeeper-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/zookeeper-bin/Manifest sys-cluster/zookeeper-bin/zookeeper-bin-3.4.11.ebuild X-VCS-Directories: sys-cluster/zookeeper-bin/ X-VCS-Committer: patrick X-VCS-Committer-Name: Patrick Lauer X-VCS-Revision: 2be5b3c199fd6f1ce10a21105951bac092b62f6f X-VCS-Branch: master Date: Wed, 15 Nov 2017 09:03:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: acf70b5e-c0e0-40ba-bea6-67349657b436 X-Archives-Hash: 97d9178a27d82a56e717078ae6019a6f commit: 2be5b3c199fd6f1ce10a21105951bac092b62f6f Author: Patrick Lauer gentoo org> AuthorDate: Wed Nov 15 09:01:11 2017 +0000 Commit: Patrick Lauer gentoo org> CommitDate: Wed Nov 15 09:03:24 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2be5b3c1 sys-cluster/zookeeper-bin: Bump Package-Manager: Portage-2.3.14, Repoman-2.3.6 sys-cluster/zookeeper-bin/Manifest | 1 + .../zookeeper-bin/zookeeper-bin-3.4.11.ebuild | 90 ++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/sys-cluster/zookeeper-bin/Manifest b/sys-cluster/zookeeper-bin/Manifest index 5f5738321d7..c6e23256edc 100644 --- a/sys-cluster/zookeeper-bin/Manifest +++ b/sys-cluster/zookeeper-bin/Manifest @@ -1 +1,2 @@ DIST zookeeper-3.4.10.tar.gz 35042811 SHA256 7f7f5414e044ac11fee2a1e0bc225469f51fb0cdf821e67df762a43098223f27 SHA512 4c54e40ac8d0b267db4a188a30e39ed0ac2c3e8a8fadaf244be45ff5adee956df28f6cb9f1eb56f175e924fa3629b64f98286a090c46764c91c017613c80a51b WHIRLPOOL 10fb08b7a351f688b187e38b8dd84578f765eee87fdcfc63e9813bf7c5878048cc4ffba21e660ec9e1af7b58e68de69994b5938791b7ae83a5b014456f35a57a +DIST zookeeper-3.4.11.tar.gz 36668066 SHA256 f6bd68a1c8f7c13ea4c2c99f13082d0d71ac464ffaf3bf7a365879ab6ad10e84 SHA512 1ed2df11dbff2fbbb70d992d02427c4f694ccb4fe493db10a087b04d934b132b970956099edbdf1c2c636d5eb248bca1528846fcb449ae8bee4b9a82f7936f9e WHIRLPOOL f3fa8bea9908e371f4a1a9bc8a0f90552a5ff7b4c95f9bdf4991bbe0dd6ebdd22fbe8851e9da09a2dd7a5b13d922179280a7305ed2da2dce0f1aed152593e697 diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.11.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.11.ebuild new file mode 100644 index 00000000000..bc0ae0982c2 --- /dev/null +++ b/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.11.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 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="mirror://apache/${MY_P}/${MY_PN}/${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_prepare() { + # python + sed -e "s|src/c/zookeeper.c|zookeeper.c|g" \ + -e "s|../../../|${S}|g" \ + -i contrib/zkpython/src/python/setup.py || die +} + +src_configure() { + cd "${S}"/src/c || die + econf +} + +src_compile() { + cd "${S}"/src/c || die + emake +} + +src_install() { + local DATA_DIR=/var/lib/${MY_P} + + # python + cd "${S}"/contrib/zkpython/ || die + mv src/python/setup.py . + mv src/c/* . + python_foreach_impl distutils-r1_src_install + cd "${S}" || die + + # cleanup sources + rm -rf src/ || die + 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}" || die "doenvd failed" +}