diff options
author | 2020-09-04 18:38:54 +0200 | |
---|---|---|
committer | 2020-09-04 18:38:54 +0200 | |
commit | 91e417005feac3ec97eb6bdcc7fc7e90e1a6afe7 (patch) | |
tree | 1c6807b75278b0f149ce187bc96c15aef559f2e8 | |
parent | dev-db/scylla-bin: drop osbolete ebuilds (diff) | |
download | ultrabug-91e417005feac3ec97eb6bdcc7fc7e90e1a6afe7.tar.gz ultrabug-91e417005feac3ec97eb6bdcc7fc7e90e1a6afe7.tar.bz2 ultrabug-91e417005feac3ec97eb6bdcc7fc7e90e1a6afe7.zip |
dev-db/scylla-bin: add 4.0 ebuild
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Manifest-Sign-Key: 34FCB257983BA23A8CEC5EB7EB9E6405C24BFAE5
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
-rw-r--r-- | dev-db/scylla-bin/Manifest | 21 | ||||
-rw-r--r-- | dev-db/scylla-bin/scylla-bin-4.0.8.ebuild | 128 |
2 files changed, 141 insertions, 8 deletions
diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest index f6b3614..779935a 100644 --- a/dev-db/scylla-bin/Manifest +++ b/dev-db/scylla-bin/Manifest @@ -17,6 +17,10 @@ DIST scylla-bin-3.3_p202006160043-jmx.tar.gz 7676018 BLAKE2B 293320c1d4073efb3b2 DIST scylla-bin-3.3_p202006160043-package.tar.gz 859564934 BLAKE2B 7aaf2ae77a86740be174eb971072421737114d28768ce0e2fb8db6721840617be5eef7ebdfb1a7da2e7f5f3bca3dda2127c4091f7b135a111f4702d2aa9b5c26 SHA512 3fab1cab5682e2c13dfefa0faa765532421ee50be93d235ba847213b2b4b3ab47b9030e1fa9ce8518a01b7fe5b33cf9e0675d4ed141abcca756232dcf134132d DIST scylla-bin-3.3_p202006160043-python3.tar.gz 36090375 BLAKE2B 99fd53dd9637d7ca81643aa49fde6fe036e616de6b03db9a7880bae5fa92b877f83e031d58b18773030fd5a75c44146dca49ba246ec776584438d5f1f186067b SHA512 b184d49192b5210b1850f6fb20734a82da3e60fa9a3e4a7996b78b71b77cb26c9c2292cf70dbf4dfb68d0beea4d53b1bfc74747feef6fda35c64fa938652777f DIST scylla-bin-3.3_p202006160043-tools.tar.gz 32550900 BLAKE2B 09e59d987691196d1eb1e01821b4f1545c6efe7d7e43495b81ac808c3e2ffbfca2b26ff4c155fb81888ca7b317fa8c77befa827d2bf3924f1f70ec9ed5eab407 SHA512 84fddb69a015640d026701bb94d4b8282d4590b0e1fd0cb12fdf534385739ef1c0a36034ab12e8eb26b350ddcddf35be8a3e7187993ff2725f010b0e1cad7ee5 +DIST scylla-bin-4.0.8-jmx.tar.gz 7675994 BLAKE2B 47d35559c497750363b2c9c61c5010c8bd39eec62945397808ed6e1c1d4e50436fe6fa1a2aefcbc821784d42c21e97f8bf6a09c37dfb70b52ac9e55417ef36c4 SHA512 b9d64cded7ae4946f608bbf207548fe5b9592cd78e6b72061675779b98c49d336e93796f05e21c3fee67533d1d86c3d7d09d054517869de32501a3c8b1e5e5a0 +DIST scylla-bin-4.0.8-package.tar.gz 833931985 BLAKE2B 96b60509675e9fea88f6dfde33814796a804fd8232f7f1f46e00f4f5bd8f550bf13d7ec80a7c804606022e505f6b3f44a781d69e5343f91baea1d39cb5d42734 SHA512 449b21077f723a00bddbfabcb3b2da42dacea019b28b60e92e7ab05a4cd3806f0e9aea4cf38f53957e335095497d3e97a3f844baa7cf850150e6f7b32474700c +DIST scylla-bin-4.0.8-python3.tar.gz 36127228 BLAKE2B 58d8c2a4c781c23baf61efd2f1ad92f9302e789b9c77909be4053326b95b1c044f43169fb7ede17c9090d92e04cdca0ba3103cdc11ed3d63b83ff4fef13c8e77 SHA512 109529722846adda7c0d3a437a1b14e65db9dec7e100e9d67bdb28579c91f63d502ad8bf428645c6b48def2e7eabb0b5a9002cc606227151694589308a1f5572 +DIST scylla-bin-4.0.8-tools.tar.gz 32552725 BLAKE2B e933cb7b131684883d259a723f5ac5d3ee7696c2a5e39d940e16b4609358f244990eac31189a91eb6fa788256a424d5b497f259c4bca42f35a19b9e77189f1ed SHA512 6e8f06bc706320b1522529f9377f0d04b3444287e45d458f0d76254c0660802187db4d85ed030b4886c1ca2f57005d8ff072b351449e78f3c5e593f30da13783 DIST scylla-bin-4.1.3-jmx.tar.gz 7676083 BLAKE2B 5bcac8ef7d5dd91e87e77eac55ad0112397b5b0bfbce19f60d906bc3c56d1b0d265601599d59a2f0b122beb018168b78ff574e07c6af9ba91cda484e54c69608 SHA512 78ece03ff4aaeb19ed43f7c489c5c09f129a0d946342cd5900e67de2b2415e08513539f7a35bf73f249a98d2dbabbbeee9f74ffd454c5395a16161e03b532b59 DIST scylla-bin-4.1.3-package.tar.gz 805676832 BLAKE2B 6e8a00d49b80130cfd793d03d26a7992c002728a1496d68709053321164edd907bd3de2dc0e2686c0c560d5e971d28603dc35d835c2070686745b5a8c5c64b28 SHA512 01416e38bec7167f7a53173d618e1a0bc72e252f26878ae9c38e2cb480a77234372aa70ad412323ad3697e5aea6dd78f3a7cb68f8f28839bcb790611b603b637 DIST scylla-bin-4.1.3-python3.tar.gz 36105535 BLAKE2B 3d36bda21eb4ba07838e0e1c43c2831496e6b337037def241a0c3209b88711b5a690ffef33f9e114d31ba835d9832dcf6f156868c483b010f79a3adb4174edd5 SHA512 16f75c5b26ad1d8b28b06704608e9537e9364f1d55bee48187b525ed77da2781b8e8daa8d0f2ee16a3a6125b6900bd8c5f83949e75c3d99fffed8f9684aab286 @@ -24,19 +28,20 @@ DIST scylla-bin-4.1.3-tools.tar.gz 33860192 BLAKE2B 02239d1b2f2275395cf15197efe6 EBUILD scylla-bin-3.1_p999.ebuild 3507 BLAKE2B fba692ca9d6c521f2a26843aaf1ca5dda81e7b9dda127687880bc0cbefbdfd725a003adf99892a4778eee3c83f4230c2effd851f893a49c285a45ef08b406ff3 SHA512 3abf3ed8d49318cd52b64211917f9b657c409122ca9183d6a57b7fa58f67ca476eca0bc56d1c0313601d266627b8c2f504df2bdfb51d76c4c9afb8f4b3444ce3 EBUILD scylla-bin-3.2_p202004222203.ebuild 4422 BLAKE2B 747a8b8ba7020a8c864725a7a11aea5b6343284e2b77b5aa014132bf5771ab9922b588bf40c154850b9aeb116679e1818d369f9cf57f08b404a1d972fbc4ddeb SHA512 641fc805ae0f30ae89d4746a884778a68766f8db96f2cd534fa620515b6dbcce60930b9927f450b007a568b9c3a5c21eb918004562a2a6072347bfb46fc70f36 EBUILD scylla-bin-3.3_p202006160043.ebuild 4598 BLAKE2B a9f046396d506f0d235426e42d5f16fc7b2afab27ec4f5765acb3ef2214fa50716ceaf10b697e0dd1d16b471bd7e625ef9c502f998af6ed75d115a32618a50e2 SHA512 b87d53e9183c5d3ad74615f885e3290e9ddf0bc24cfc19fbb24043b8e018b9ca9e6f8c0282ae77326f517fc7a82c7a1e7ef864a59431bf4749de6212c79eaa9d +EBUILD scylla-bin-4.0.8.ebuild 4051 BLAKE2B 7d341d55e75f7bfd7e8702ba74e46bf16c4e321c10ba1aa9eaa8dc6cb5052c7ae453ed8a0c868d56f6d29ceb258a1df6e0a9b88cf6ea128cdd97c0d563cdd67c SHA512 2b732f4da90a2afbb81f00b9ac54c0c38a9e0e389a5ed2e4efce1cc5d4b2697e564dc48114af5632a04fc9d71a9c79c5277e7a532db230ea47f7caa7971e2952 EBUILD scylla-bin-4.1.3.ebuild 3693 BLAKE2B ebb887489c5b6afa587844dc9fbdebdd03d6d277256f9228559adec13f1476fdcf5522bd9b677883ae40da5f5ce7c246ef9401c519018c7ce9d26da93742265c SHA512 0fd6a975b93cd1697eacefa23f9cbbe8d0b93a40c5c8802ea108a6fa7c787858939821b276b05e18a8d1006db95ad9350acfff97e7314fbd4352d326a9f935ad MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea192ded6b09a158f1bc941544f90a1b9e396db00bc0fe277c072d267568473ae4aa2dec8bc5c2f89 SHA512 6eae78a65db44c8f7ef2d20c10c8612cd2072c0204c6294798e4bf94f1283c684c22d1ad28e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GNATURE----- diff --git a/dev-db/scylla-bin/scylla-bin-4.0.8.ebuild b/dev-db/scylla-bin/scylla-bin-4.0.8.ebuild new file mode 100644 index 0000000..7af142d --- /dev/null +++ b/dev-db/scylla-bin/scylla-bin-4.0.8.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PV="${PV}-0.20200830.7d1180b98fc" + +inherit linux-info user versionator + +DESCRIPTION="NoSQL data store using the seastar framework, compatible with Apache Cassandra" +HOMEPAGE="https://scylladb.com/" +SRC_URI="http://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-$(get_version_component_range 1-2)/scylla-package-${MY_PV}.tar.gz -> ${P}-package.tar.gz http://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-$(get_version_component_range 1-2)/scylla-python3-package-${MY_PV}.tar.gz -> ${P}-python3.tar.gz http://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-$(get_version_component_range 1-2)/scylla-tools-package-${MY_PV}.tar.gz -> ${P}-tools.tar.gz http://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-$(get_version_component_range 1-2)/scylla-jmx-package-${MY_PV}.tar.gz -> ${P}-jmx.tar.gz" + +KEYWORDS="~amd64" +LICENSE="AGPL-3" +SLOT="0" +IUSE="doc" +RESTRICT="strip test" + +RDEPEND=" + !app-admin/scylla-jmx + !app-admin/scylla-tools + !dev-db/scylla +" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-3.5 +" + +# Discussion about kernel configuration: +# https://groups.google.com/forum/#!topic/scylladb-dev/qJu2zrryv-s +CONFIG_CHECK="~NUMA_BALANCING ~SYN_COOKIES ~TRANSPARENT_HUGEPAGE" +ERROR_NUMA_BALANCING="${PN} recommends support for Memory placement aware NUMA scheduler (NUMA_BALANCING)." +ERROR_SYN_COOKIES="${PN} recommends support for TCP syncookie (SYN_COOKIES)." +ERROR_TRANSPARENT_HUGEPAGE="${PN} recommends support for Transparent Hugepage (TRANSPARENT_HUGEPAGE)." + +# NOTE: maybe later depending on upstream energy, support DPDK +# For DPDK, removed HUGETLBFS PROC_PAGE_MONITOR UIO_PCI_GENERIC in favor of VFIO +# CONFIG_CHECK="~NUMA_BALANCING ~SYN_COOKIES ~TRANSPARENT_HUGEPAGE ~VFIO" +# ERROR_VFIO="${PN} running with DPDK recommends support for Non-Privileged userspace driver framework (VFIO)." + +DOCS=( README.md NOTICE.txt SCYLLA-PRODUCT-FILE SCYLLA-RELEASE-FILE SCYLLA-RELOCATABLE-FILE SCYLLA-VERSION-FILE ) +PATCHES=( ) +S=${WORKDIR} + +pkg_setup() { + linux-info_pkg_setup + enewgroup scylla + enewuser scylla -1 -1 /var/lib/${PN} scylla +} + +src_unpack() { + for pkg in package python3 tools jmx; + do + mkdir "${pkg}" || die + pushd "${pkg}" || die + unpack ${P}-${pkg}.tar.gz || die + find . -type f -name "*.pyc" -delete + popd || die + done +} + +src_prepare() { + default + # remove useless ARCH shared objects + find "${WORKDIR}/tools/lib/sigar-bin" -type f ! -name "libsigar-amd64-linux.so" -delete || die +} + +install_package() { + pushd package + + bash install.sh --root "${D}" --sysconfdir /etc/default --packaging || die + + for x in /var/lib/scylla /var/lib/scylla/{data,commitlog,hints,coredump,hints,view_hints} /var/lib/scylla-housekeeping /var/log/scylla; do + keepdir "${x}" + fowners scylla:scylla "${x}" + done + + insinto /etc/sudoers.d + newins "${FILESDIR}"/scylla.sudoers scylla + + insinto /etc/rsyslog.d + doins "${FILESDIR}/10-scylla.conf" + + newinitd "${FILESDIR}/scylla-server.initd" scylla-server + newconfd "${FILESDIR}/scylla-server.confd" scylla-server + + popd +} + +install_python3() { + pushd python3 + bash install.sh --root "${D}" || die + popd +} + +install_jmx() { + pushd jmx + # fix symlink runtime error on scylla-jmx script + # * scylla-jmx is not available for oracle-jdk-bin-1.8 on x86_64 + # * IMPORTANT: some Java tools are not available on some VMs on some architectures + sed -e 's@"$LOCATION_SCRIPTS"/symlinks/scylla-jmx@/usr/bin/java@g' -i scylla-jmx || die + bash install.sh --root "${D}" --sysconfdir /etc/default || die + newinitd "${FILESDIR}/scylla-jmx.initd" scylla-jmx + newconfd "${FILESDIR}/scylla-jmx.confd" scylla-jmx + popd +} + +install_tools() { + pushd tools + bash install.sh --root "${D}" || die + popd +} + +src_install() { + install_python3 + install_package + install_tools + install_jmx +} + +pkg_postinst() { + elog "You should run 'emerge --config dev-db/scylla' to finalize your Scylla installation." +} + +pkg_config() { + elog "Running 'scylla_setup'..." + scylla_setup +} |