diff options
author | William Hubbs <william.hubbs@sony.com> | 2019-06-05 16:25:30 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2019-06-05 16:26:57 -0500 |
commit | 0f9196e466ce976aadf43e2fe90905cdccad43c1 (patch) | |
tree | 89a142934d5de5d8efc63436886c5d0ca3585beb /dev-db | |
parent | app-admin/conserver: Drop old (diff) | |
download | gentoo-0f9196e466ce976aadf43e2fe90905cdccad43c1.tar.gz gentoo-0f9196e466ce976aadf43e2fe90905cdccad43c1.tar.bz2 gentoo-0f9196e466ce976aadf43e2fe90905cdccad43c1.zip |
dev-db/cockroach: remove vulnerable versions
Bug: https://bugs.gentoo.org/668420
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/cockroach/Manifest | 7 | ||||
-rw-r--r-- | dev-db/cockroach/cockroach-1.0-r1.ebuild | 61 | ||||
-rw-r--r-- | dev-db/cockroach/cockroach-1.0.1.ebuild | 61 | ||||
-rw-r--r-- | dev-db/cockroach/cockroach-1.0.3.ebuild | 61 | ||||
-rw-r--r-- | dev-db/cockroach/cockroach-1.0.ebuild | 61 | ||||
-rw-r--r-- | dev-db/cockroach/cockroach-1.0_rc1.ebuild | 59 | ||||
-rw-r--r-- | dev-db/cockroach/cockroach-1.1.2.ebuild | 61 | ||||
-rw-r--r-- | dev-db/cockroach/cockroach-1.1.3.ebuild | 63 | ||||
-rw-r--r-- | dev-db/cockroach/cockroach-2.0.1.ebuild | 65 |
9 files changed, 0 insertions, 499 deletions
diff --git a/dev-db/cockroach/Manifest b/dev-db/cockroach/Manifest index 418020ee8a6e..46e28bf61913 100644 --- a/dev-db/cockroach/Manifest +++ b/dev-db/cockroach/Manifest @@ -1,9 +1,2 @@ -DIST cockroach-v1.0-rc.1.src.tgz 68784067 BLAKE2B 5f5ed18ee535d30e004f2170b20ac96ed801e5fa9dee55ddbda7543e24d35ed940711d2e7b307b5a76383637f9e113eec3ac1fa28eb08751068cf94627c08f3b SHA512 c68fc712068cbfce167d98008cdcb46270a8fa772624281da23a70d0492c7990c9ce8513334fedc31d7dde5176087fa6211a4e90d77741ed0079f9568c71e0ff -DIST cockroach-v1.0.1.src.tgz 69116931 BLAKE2B a1abc0353fc815eb5432a327969d48d4ea893484d5488161972ce84fa24aaa06203481cc381ba3918cdf87ad6ebe846e407918bc0b3e5e4abd6a6d4c3ac5014a SHA512 d388d84c09f1318420f859c964c46b78e5237685fbc2b1a8d55fad2ce1dabc89461ad5eaa6d95283dda4551542f33e5df2feda4afd7129e1f850e469e0d17e69 -DIST cockroach-v1.0.3.src.tgz 69127502 BLAKE2B 803f88e19a6128f18024748610c1af3e912f6f4fbc8af9216b212aacf58422382d5c5b5f61453b7373bc680e7894d6b57f4f47040581f9981002be7cbce42975 SHA512 2bae99faba0f56774ab964d920f8628afc6af61ce53bc3e99f1b360c0606e0777b90dd93cbd6844109c3224867fc4180fb42e6dacc75e4eb4db8a4f93f586577 -DIST cockroach-v1.0.src.tgz 68753479 BLAKE2B 6377614e9fee896a0115909b02d8a191a7aabe8da341c98547c0ac496d2e8fcce801e35f93a8a126c9d65c1106e0217359b161825a11597da1db113ca6a51216 SHA512 d74ad9546908535f9a7ad4172a04a5f86f5ed22698bbb005aec7478a52632e0497a966b859fd68b40894eb7ee68bfa80dc4188d198f2f23725b9cadd50a55191 -DIST cockroach-v1.1.2.src.tgz 79607942 BLAKE2B 39ce9db2ada1c9a5727431438d4d8fe0d5a31af3161816ee7af672c69909aa6b4681edabdfabc332c00ba3b0a142ea7d700851c8833b80947fdbcc88b7fa2c7e SHA512 385e33ec30c23d84403938420a2fcd66edff02a5c4b9d6220ce3683d833f065010953fd78ee57120c24f2947509b2fd29eeee2a45fd3ad47c16a6c8d779534d2 -DIST cockroach-v1.1.3.src.tgz 79615899 BLAKE2B 86d9a63a5e5e8f21114dda500f30a007bf64769b76322fae282d06fa9eb63eb8a965bf990378c624ccac66124efadf1a0dfdebbc8dc8c6f04173e20334341e89 SHA512 f6dc4178e91fd47aec1fce658c9d621183f0bdcdc6101b87f8187757ab9b965c27e48d0d628dd9c10a386bc1a2f184d9d03270243baf0ec4758c812caac5fda1 DIST cockroach-v19.1.1.src.tgz 103054418 BLAKE2B eaa4f0e24f74a4bbc9a209b8778431ddc7944d0735eef0e136cfcdf820e70ad17eb4781757c325906e65d56d4c36881c294e0dd79d9e153359be859fc7ee887a SHA512 a7051fea3808b785e8d0047b0273021119d0eb1d12f5c680afa649713a79b155aff0bfa8ec123eebea095549308d002ba82dee3eb94b66c6f729d80115d20c06 -DIST cockroach-v2.0.1.src.tgz 45511681 BLAKE2B 9d0828e5e6bd41bb5590e58f0e18b8a07169335b9ff1284daf89b48dae6eea3cdb683bf8af703b5bac46978e8c37b4a092c53a3d7e18de626acc2095a7daf2a2 SHA512 ad7c64dc70cde6bbd10cabafe595ce35deeda9284880bebde75e41a4b1355aa85f01fb8c6b6ff0bae498b4b04a8d7d60bafc986c49875cff9ccf0ead0bc481a7 DIST cockroach-v2.1.5.src.tgz 89931919 BLAKE2B 7ed310acf18cbe7c8bafe5992edd3350d9e7654cda86931dbfd64fe17043140132ec019de9f1f44d61bc92d2461618c81e60fffb014446521e747a57f6b5d442 SHA512 3ef2ad985b463e681cdaffe5590543024ca11e9c0c5528415b47bdd4cdfd42504cbc21a350449fea6da08625f801ef94fe51f55be1e9a62bac27fce0cc7b73c1 diff --git a/dev-db/cockroach/cockroach-1.0-r1.ebuild b/dev-db/cockroach/cockroach-1.0-r1.ebuild deleted file mode 100644 index 4b19589a461b..000000000000 --- a/dev-db/cockroach/cockroach-1.0-r1.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MY_PV=v${PV} -CHECKREQS_MEMORY="2G" - -inherit check-reqs toolchain-funcs user - -DESCRIPTION="open source database for building cloud services" -HOMEPAGE="https://www.cockroachlabs.com" -SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.src.tgz" - -LICENSE="Cockroach Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND=">=app-arch/xz-utils-5.2.3 - >=dev-lang/go-1.8.1 - >=dev-util/cmake-3.8.1" - -S="${WORKDIR}/cockroach-${MY_PV}" - -pkg_pretend() { - check-reqs_pkg_pretend - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then - eerror "Cockroach cannot be built with this version of gcc." - eerror "You need at least gcc-6.0" - die "Your C compiler is too old for this package." - fi -} - -pkg_setup() { - check-reqs_pkg_setup - enewgroup cockroach - enewuser cockroach -1 /bin/sh /var/lib/cockroach cockroach -} - -src_compile() { - emake GOPATH="${S}" build -} - -src_install() { - dobin src/github.com/cockroachdb/cockroach/cockroach -insinto /etc/security/limits.d -newins "${FILESDIR}"/cockroach-limits.conf cockroach.conf -newconfd "${FILESDIR}"/cockroach.confd-${PV} cockroach -newinitd "${FILESDIR}"/cockroach.initd-${PV} cockroach -dodir /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 -} diff --git a/dev-db/cockroach/cockroach-1.0.1.ebuild b/dev-db/cockroach/cockroach-1.0.1.ebuild deleted file mode 100644 index 212bede14658..000000000000 --- a/dev-db/cockroach/cockroach-1.0.1.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MY_PV=v${PV} -CHECKREQS_MEMORY="2G" - -inherit check-reqs toolchain-funcs user - -DESCRIPTION="open source database for building cloud services" -HOMEPAGE="https://www.cockroachlabs.com" -SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.src.tgz" - -LICENSE="Cockroach Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND=">=app-arch/xz-utils-5.2.3 - >=dev-lang/go-1.8.1 - >=dev-util/cmake-3.8.1" - -S="${WORKDIR}/cockroach-${MY_PV}" - -pkg_pretend() { - check-reqs_pkg_pretend - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then - eerror "Cockroach cannot be built with this version of gcc." - eerror "You need at least gcc-6.0" - die "Your C compiler is too old for this package." - fi -} - -pkg_setup() { - check-reqs_pkg_setup - enewgroup cockroach - enewuser cockroach -1 /bin/sh /var/lib/cockroach cockroach -} - -src_compile() { - emake GOPATH="${S}" build -} - -src_install() { - dobin src/github.com/cockroachdb/cockroach/cockroach -insinto /etc/security/limits.d -newins "${FILESDIR}"/cockroach-limits.conf cockroach.conf -newconfd "${FILESDIR}"/cockroach.confd-1.0 cockroach -newinitd "${FILESDIR}"/cockroach.initd-${PV} cockroach -dodir /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 -} diff --git a/dev-db/cockroach/cockroach-1.0.3.ebuild b/dev-db/cockroach/cockroach-1.0.3.ebuild deleted file mode 100644 index 0b0e1d9f89d0..000000000000 --- a/dev-db/cockroach/cockroach-1.0.3.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MY_PV=v${PV} -CHECKREQS_MEMORY="2G" - -inherit check-reqs toolchain-funcs user - -DESCRIPTION="open source database for building cloud services" -HOMEPAGE="https://www.cockroachlabs.com" -SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.src.tgz" - -LICENSE="Cockroach Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND=">=app-arch/xz-utils-5.2.3 - >=dev-lang/go-1.8.3 - >=dev-util/cmake-3.8.1" - -S="${WORKDIR}/cockroach-${MY_PV}" - -pkg_pretend() { - check-reqs_pkg_pretend - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then - eerror "Cockroach cannot be built with this version of gcc." - eerror "You need at least gcc-6.0" - die "Your C compiler is too old for this package." - fi -} - -pkg_setup() { - check-reqs_pkg_setup - enewgroup cockroach - enewuser cockroach -1 /bin/sh /var/lib/cockroach cockroach -} - -src_compile() { - emake GOPATH="${S}" build -} - -src_install() { - dobin src/github.com/cockroachdb/cockroach/cockroach -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 -dodir /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 -} diff --git a/dev-db/cockroach/cockroach-1.0.ebuild b/dev-db/cockroach/cockroach-1.0.ebuild deleted file mode 100644 index c7253935686f..000000000000 --- a/dev-db/cockroach/cockroach-1.0.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MY_PV=v${PV} -CHECKREQS_MEMORY="2G" - -inherit check-reqs toolchain-funcs user - -DESCRIPTION="open source database for building cloud services" -HOMEPAGE="https://www.cockroachlabs.com" -SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.src.tgz" - -LICENSE="Cockroach Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND=">=app-arch/xz-utils-5.2.3 - >=dev-lang/go-1.8.1 - >=dev-util/cmake-3.8.1" - -S="${WORKDIR}/cockroach-${MY_PV}" - -pkg_pretend() { - check-reqs_pkg_pretend - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then - eerror "Cockroach cannot be built with this version of gcc." - eerror "You need at least gcc-6.0" - die "Your C compiler is too old for this package." - fi -} - -pkg_setup() { - check-reqs_pkg_setup - enewgroup cockroach - enewuser cockroach -1 /bin/sh /var/lib/cockroach cockroach -} - -src_compile() { - emake GOPATH="${S}" build -} - -src_install() { - dobin src/github.com/cockroachdb/cockroach/cockroach -insinto /etc/security/limits.d -newins "${FILESDIR}"/cockroach-limits.conf cockroach.conf -newconfd "${FILESDIR}"/cockroach.confd cockroach -newinitd "${FILESDIR}"/cockroach.initd cockroach -dodir /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." - elog - elog "http://cockroachlabs.com/docs" - fi -} diff --git a/dev-db/cockroach/cockroach-1.0_rc1.ebuild b/dev-db/cockroach/cockroach-1.0_rc1.ebuild deleted file mode 100644 index 7ce069fb3180..000000000000 --- a/dev-db/cockroach/cockroach-1.0_rc1.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MY_PV=v1.0-rc.1 -CHECKREQS_MEMORY="2G" - -inherit check-reqs toolchain-funcs user - -DESCRIPTION="open source database for building cloud services" -HOMEPAGE="https://www.cockroachlabs.com" -SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.src.tgz" - -LICENSE="Cockroach Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND=">=dev-lang/go-1.8.1" - -S="${WORKDIR}/cockroach-${MY_PV}" - -pkg_pretend() { - check-reqs_pkg_pretend - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then - eerror "Cockroach cannot be built with this version of gcc." - eerror "You need at least gcc-6.0" - die "Your C compiler is too old for this package." - fi -} - -pkg_setup() { - check-reqs_pkg_setup - enewgroup cockroach - enewuser cockroach -1 /bin/sh /var/lib/cockroach cockroach -} - -src_compile() { - emake GOPATH="${S}" build || die -} - -src_install() { - emake GOPATH="${S}" install || die -dobin bin/* -insinto /etc/security/limits.d -newins "${FILESDIR}"/cockroach-limits.conf cockroach.conf -newinitd "${FILESDIR}"/cockroach.initd cockroach -dodir /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." - elog - elog "http://cockroachlabs.com/docs" - fi -} diff --git a/dev-db/cockroach/cockroach-1.1.2.ebuild b/dev-db/cockroach/cockroach-1.1.2.ebuild deleted file mode 100644 index 0b0e1d9f89d0..000000000000 --- a/dev-db/cockroach/cockroach-1.1.2.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MY_PV=v${PV} -CHECKREQS_MEMORY="2G" - -inherit check-reqs toolchain-funcs user - -DESCRIPTION="open source database for building cloud services" -HOMEPAGE="https://www.cockroachlabs.com" -SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.src.tgz" - -LICENSE="Cockroach Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND=">=app-arch/xz-utils-5.2.3 - >=dev-lang/go-1.8.3 - >=dev-util/cmake-3.8.1" - -S="${WORKDIR}/cockroach-${MY_PV}" - -pkg_pretend() { - check-reqs_pkg_pretend - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then - eerror "Cockroach cannot be built with this version of gcc." - eerror "You need at least gcc-6.0" - die "Your C compiler is too old for this package." - fi -} - -pkg_setup() { - check-reqs_pkg_setup - enewgroup cockroach - enewuser cockroach -1 /bin/sh /var/lib/cockroach cockroach -} - -src_compile() { - emake GOPATH="${S}" build -} - -src_install() { - dobin src/github.com/cockroachdb/cockroach/cockroach -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 -dodir /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 -} diff --git a/dev-db/cockroach/cockroach-1.1.3.ebuild b/dev-db/cockroach/cockroach-1.1.3.ebuild deleted file mode 100644 index f2e69031d86f..000000000000 --- a/dev-db/cockroach/cockroach-1.1.3.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MY_PV=v${PV} -CHECKREQS_MEMORY="2G" - -inherit check-reqs toolchain-funcs user - -DESCRIPTION="open source database for building cloud services" -HOMEPAGE="https://www.cockroachlabs.com" -SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.src.tgz" - -LICENSE="Cockroach Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND=">=app-arch/xz-utils-5.2.3 - >=dev-lang/go-1.8.3 - >=dev-util/cmake-3.8.1" - -S="${WORKDIR}/cockroach-${MY_PV}" - -pkg_pretend() { - check-reqs_pkg_pretend - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then - eerror "Cockroach cannot be built with this version of gcc." - eerror "You need at least gcc-6.0" - die "Your C compiler is too old for this package." - fi -} - -pkg_setup() { - check-reqs_pkg_setup - enewgroup cockroach - enewuser cockroach -1 /bin/sh /var/lib/cockroach cockroach -} - -src_compile() { - # workaround for https://github.com/cockroachdb/cockroach/issues/20596 - unset CMAKE_MODULE_PATH - emake build -} - -src_install() { - dobin src/github.com/cockroachdb/cockroach/cockroach -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 -dodir /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 -} diff --git a/dev-db/cockroach/cockroach-2.0.1.ebuild b/dev-db/cockroach/cockroach-2.0.1.ebuild deleted file mode 100644 index 6549c0aea3b0..000000000000 --- a/dev-db/cockroach/cockroach-2.0.1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -MY_PV=v${PV} -CHECKREQS_MEMORY="2G" - -inherit check-reqs toolchain-funcs user - -DESCRIPTION="open source database for building cloud services" -HOMEPAGE="https://www.cockroachlabs.com" -SRC_URI="https://binaries.cockroachdb.com/cockroach-${MY_PV}.src.tgz" - -LICENSE="Cockroach Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND=">=app-arch/xz-utils-5.2.3 - >=dev-lang/go-1.8.3 - >=dev-util/cmake-3.8.1" - -S="${WORKDIR}/cockroach-${MY_PV}" - -QA_EXECSTACK="usr/bin/cockroach" - -pkg_pretend() { - check-reqs_pkg_pretend - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then - eerror "Cockroach cannot be built with this version of gcc." - eerror "You need at least gcc-6.0" - die "Your C compiler is too old for this package." - fi -} - -pkg_setup() { - check-reqs_pkg_setup - enewgroup cockroach - enewuser cockroach -1 /bin/sh /var/lib/cockroach cockroach -} - -src_compile() { - # workaround for https://github.com/cockroachdb/cockroach/issues/20596 - unset CMAKE_MODULE_PATH - emake build -} - -src_install() { - dobin src/github.com/cockroachdb/cockroach/cockroach -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 -} |