# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 MY_PV=v${PV} inherit toolchain-funcs DESCRIPTION="open source database for building cloud services" HOMEPAGE="https://www.cockroachlabs.com" SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.linux-amd64.tgz" S="${WORKDIR}/cockroach-${MY_PV}.linux-amd64" LICENSE="Cockroach Apache-2.0" SLOT="0" KEYWORDS="~amd64" RDEPEND=" acct-group/cockroach acct-user/cockroach " DEPEND=" ${RDEPEND} !!dev-db/cockroach " QA_EXECSTACK="usr/bin/cockroach" src_install() { dobin cockroach insinto /usr/lib/cockroach doins lib/libgeos{,_c}.so fperms 0755 /usr/lib/cockroach/libgeos{,_c}.so insinto /etc/security/limits.d newins "${FILESDIR}"/cockroach-limits.conf cockroach.conf newconfd "${FILESDIR}"/cockroach.confd-1.0 cockroach newinitd "${FILESDIR}"/cockroach.initd-1.0.1 cockroach keepdir /var/log/cockroach fowners cockroach:cockroach /var/log/cockroach if [[ -z ${REPLACING_VERSIONS} ]]; then ewarn "The default setup is for the first node of an insecure" ewarn "cluster that only listens on localhost." ewarn "Please read the cockroach manual at the following url" ewarn "and configure /etc/conf.d/cockroach correctly if you" ewarn "plan to use it in production." ewarn ewarn "http://cockroachlabs.com/docs" fi }