diff options
author | 2020-09-04 17:48:23 +0200 | |
---|---|---|
committer | 2020-09-04 17:48:23 +0200 | |
commit | f82dae05eba874d78dc36a59a4ba525d3b719513 (patch) | |
tree | 9c217ae399478e4fa14172b8ad0b9724c25fe85e | |
parent | dev-db/scylla-bin: bump ebuilds to newer relocatable scylla builds (diff) | |
download | ultrabug-f82dae05eba874d78dc36a59a4ba525d3b719513.tar.gz ultrabug-f82dae05eba874d78dc36a59a4ba525d3b719513.tar.bz2 ultrabug-f82dae05eba874d78dc36a59a4ba525d3b719513.zip |
dev-db/scylla-bin: add 3.3 version
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-3.3_p202006160043.ebuild | 142 |
2 files changed, 155 insertions, 8 deletions
diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest index dc058c2..90cb4f3 100644 --- a/dev-db/scylla-bin/Manifest +++ b/dev-db/scylla-bin/Manifest @@ -21,6 +21,10 @@ DIST scylla-bin-3.2_p202004222203-jmx.tar.gz 7676018 BLAKE2B 9583f925f7c470e5d3c DIST scylla-bin-3.2_p202004222203-package.tar.gz 1034049721 BLAKE2B 6c25f519cd8d68fc5c57c15eb72dbf0e6024badc03f5c3269c0b7996a23daf301f556371cfc7eb059e318b7ed4b1deeb2274ea8ca405b3d8ff68598a6891c123 SHA512 0a95c282dcc80727ffd36ad20ed54e4cbffbc9062c27ba114da1eae47289615b9506ecc5ffd6f086115fe5a979d4622714384b18bfcc6dff6cdbb8c268cfede6 DIST scylla-bin-3.2_p202004222203-python3.tar.gz 34294614 BLAKE2B 34035d5d72c36c275bcf29b157717c87cfa9d41585bac05df8062cafe9ce00a17bca1c6a1cfad5f58877e89f01a84c2424f035482ca057c04a8b3970dab6ed4f SHA512 39a6ab5e3711f82b6584cbf8ea2952f47b2e25dfe5bdcaa3b31894cde91c7674f207f9172ecc4e607e6c45a494ef4349eb53cbc389eda2e80dd5fced0434af5e DIST scylla-bin-3.2_p202004222203-tools.tar.gz 32518600 BLAKE2B af84e4439a56b976f7bf367593de9d56ac63a0eb613ed9ea231df301cc4ba484e4702d59413f80bbd8bc9e5ab6f3ec408ed3f2a154d1f23a7fb684ca9b56ab8c SHA512 0acbde80c5ad7317341082d84269cd5f57975b43cfa2edb15d1d5fa41628a8375ff79964d01b6cf6454ee200b68a5b2d41f14527371b7265d39ea75e952f9d62 +DIST scylla-bin-3.3_p202006160043-jmx.tar.gz 7676018 BLAKE2B 293320c1d4073efb3b2aa4c16967ef73225d67a7680ab34ad03cdc40eff8b0b47cd7b0d774f71065a8ea7c07696bdb43e1ad2236396cc76e6999bb966d98a7c1 SHA512 ddec1757272d0d1f120b98f04513244c876be0aa69a9fc3d34554128f8dd4f7226c30f22f3948ce4365a0600780ca7bca4234513b396d8edfb7683c61c4a0670 +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.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 @@ -31,19 +35,20 @@ EBUILD scylla-bin-3.1_p999.ebuild 3507 BLAKE2B fba692ca9d6c521f2a26843aaf1ca5dda EBUILD scylla-bin-3.2_p202002221144.ebuild 3128 BLAKE2B 3c43d9d9df3a2fec764054be3249ee9158d51ad87c4ea65a1727902b1ff30d919be6e498facc27ea3def8bad0a4238622a2a63a88ea90869cac5331843315e70 SHA512 782182801aff432a8fddf005fabb883c6bde8cab6b62d265bec4c2f22b129b3c19a9effc6cb78178331db5db16fbfe2e28ffe548f123370ca414e37add541dc4 EBUILD scylla-bin-3.2_p202003162053.ebuild 3128 BLAKE2B 3c43d9d9df3a2fec764054be3249ee9158d51ad87c4ea65a1727902b1ff30d919be6e498facc27ea3def8bad0a4238622a2a63a88ea90869cac5331843315e70 SHA512 782182801aff432a8fddf005fabb883c6bde8cab6b62d265bec4c2f22b129b3c19a9effc6cb78178331db5db16fbfe2e28ffe548f123370ca414e37add541dc4 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.1.3.ebuild 3693 BLAKE2B ebb887489c5b6afa587844dc9fbdebdd03d6d277256f9228559adec13f1476fdcf5522bd9b677883ae40da5f5ce7c246ef9401c519018c7ce9d26da93742265c SHA512 0fd6a975b93cd1697eacefa23f9cbbe8d0b93a40c5c8802ea108a6fa7c787858939821b276b05e18a8d1006db95ad9350acfff97e7314fbd4352d326a9f935ad MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea192ded6b09a158f1bc941544f90a1b9e396db00bc0fe277c072d267568473ae4aa2dec8bc5c2f89 SHA512 6eae78a65db44c8f7ef2d20c10c8612cd2072c0204c6294798e4b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kUE3tTw== +=VdpV -----END PGP SIGNATURE----- diff --git a/dev-db/scylla-bin/scylla-bin-3.3_p202006160043.ebuild b/dev-db/scylla-bin/scylla-bin-3.3_p202006160043.ebuild new file mode 100644 index 0000000..7323a30 --- /dev/null +++ b/dev-db/scylla-bin/scylla-bin-3.3_p202006160043.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PV="3.3/2020-06-16T00:43:53Z" + +inherit linux-info user + +DESCRIPTION="NoSQL data store using the seastar framework, compatible with Apache Cassandra" +HOMEPAGE="https://scylladb.com/" +SRC_URI="http://downloads.scylladb.com/relocatable/unstable/branch-${MY_PV}/scylla-package.tar.gz -> ${P}-package.tar.gz http://downloads.scylladb.com/relocatable/unstable/branch-${MY_PV}/scylla-python3-package.tar.gz -> ${P}-python3.tar.gz http://downloads.scylladb.com/relocatable/unstable/branch-${MY_PV}/scylla-tools-package.tar.gz -> ${P}-tools.tar.gz http://downloads.scylladb.com/relocatable/unstable/branch-${MY_PV}/scylla-jmx-package.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 || 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 + find . -type f -name '*.bat' -delete || die + for e in nodetool cqlsh sstableverify sstableutil sstableupgrade sstablescrub scylla-sstableloader debug-cql; do + sed -e "2i export CASSANDRA_INCLUDE=/opt/scylladb/bin/cassandra.in.sh" -i "bin/${e}" || die + sed -e "2i export CASSANDRA_HOME=/opt/scylladb/" -i "bin/${e}" || die + done + insinto /opt/scylladb + for f in bin conf doc lib pylib tools; do + doins -r "${f}" + done + for e in nodetool cqlsh sstableverify sstableutil sstableupgrade sstablescrub scylla-sstableloader debug-cql; do + fperms +x "/opt/scylladb/bin/${e}" + dosym "/opt/scylladb/bin/${e}" "/usr/bin/${e}" + sed -e "2i export CASSANDRA_INCLUDE=/opt/scylladb/bin/cassandra.in.sh" -i "bin/${e}" || die + sed -e "2i export CASSANDRA_HOME=/opt/scylladb/" -i "bin/${e}" || die + done + popd +} + +src_install() { + install_package + install_python3 + 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 +} |