summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13-r1.ebuild')
-rw-r--r--sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13-r1.ebuild80
1 files changed, 0 insertions, 80 deletions
diff --git a/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13-r1.ebuild b/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13-r1.ebuild
deleted file mode 100644
index d6622479c88c..000000000000
--- a/sys-cluster/zookeeper-bin/zookeeper-bin-3.4.13-r1.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit 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() {
- # whyyyy u -Werror ?! so horribal!
- sed -e 's/-Werror//g' -i src/c/Makefile.* || die "Failed to rectify the Makefile"
-}
-
-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}
-
- # 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}"
-}