diff options
author | Ultrabug <ultrabug@gentoo.org> | 2020-10-08 23:34:55 +0200 |
---|---|---|
committer | Ultrabug <ultrabug@gentoo.org> | 2020-10-08 23:35:03 +0200 |
commit | 556b9ddb3d5b39b9dc59e27fa180b438dea2f7a6 (patch) | |
tree | 86621e4a9493223c9a15a822ab48ad995931c817 /dev-db/scylla-bin | |
parent | dev-db/scylla-bin: special debug build for numberly (diff) | |
download | ultrabug-556b9ddb3d5b39b9dc59e27fa180b438dea2f7a6.tar.gz ultrabug-556b9ddb3d5b39b9dc59e27fa180b438dea2f7a6.tar.bz2 ultrabug-556b9ddb3d5b39b9dc59e27fa180b438dea2f7a6.zip |
dev-db/scylla-bin: another numberly build
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Manifest-Sign-Key: 34FCB257983BA23A8CEC5EB7EB9E6405C24BFAE5
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
Diffstat (limited to 'dev-db/scylla-bin')
-rw-r--r-- | dev-db/scylla-bin/Manifest | 21 | ||||
-rw-r--r-- | dev-db/scylla-bin/scylla-bin-3.2_p20201009.ebuild | 136 |
2 files changed, 149 insertions, 8 deletions
diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest index 2914264..2fd2886 100644 --- a/dev-db/scylla-bin/Manifest +++ b/dev-db/scylla-bin/Manifest @@ -17,6 +17,10 @@ DIST scylla-bin-3.2_p20201008-jmx.tar.gz 7676018 BLAKE2B 9583f925f7c470e5d3c29ef DIST scylla-bin-3.2_p20201008-package.tar.gz 1030439943 BLAKE2B 90f72f4a9f5d0d8404e199aeddf0a07d708499806990aa2992e8aaeacf31e93021268b60b05d3c78f39fd4c6a41cb6239b07b7d560dd6e43860cd29408999951 SHA512 8d614b55e3a9a5aec15a47bb5e467b4b20c9b7272f9077b92ebae12541bf5410a27feb0ada002c69e6d0e060b5125204c574be4c84aa4f74dd841c0b8be4bc35 DIST scylla-bin-3.2_p20201008-python3.tar.gz 34294614 BLAKE2B 34035d5d72c36c275bcf29b157717c87cfa9d41585bac05df8062cafe9ce00a17bca1c6a1cfad5f58877e89f01a84c2424f035482ca057c04a8b3970dab6ed4f SHA512 39a6ab5e3711f82b6584cbf8ea2952f47b2e25dfe5bdcaa3b31894cde91c7674f207f9172ecc4e607e6c45a494ef4349eb53cbc389eda2e80dd5fced0434af5e DIST scylla-bin-3.2_p20201008-tools.tar.gz 32518600 BLAKE2B af84e4439a56b976f7bf367593de9d56ac63a0eb613ed9ea231df301cc4ba484e4702d59413f80bbd8bc9e5ab6f3ec408ed3f2a154d1f23a7fb684ca9b56ab8c SHA512 0acbde80c5ad7317341082d84269cd5f57975b43cfa2edb15d1d5fa41628a8375ff79964d01b6cf6454ee200b68a5b2d41f14527371b7265d39ea75e952f9d62 +DIST scylla-bin-3.2_p20201009-jmx.tar.gz 7676018 BLAKE2B 9583f925f7c470e5d3c29ef6f4b125cbe65f55946e540245efaecb1c58552c15fa74028f4d7d303f04a9d6497a746c85a0697784e61b5d54a2568f27aa2033e7 SHA512 ab37f737465b137bb6a6ebdcc9ffaf0b847841bb107075c53ed1e04c9dd73375a99ccda7159b9f51500a13c27492f314e6221f15754dcfab05bddc9352063c27 +DIST scylla-bin-3.2_p20201009-package.tar.gz 1034028205 BLAKE2B f385ecc778f5d6e9e45b546df125d4a7113ef55098d51b1383cdc12f65776b74b9edc809badc95c05b326d115da9e192a29f1f28fea4f976e9434b87b9c33734 SHA512 75684c7a595cf6fb5d33bc4ccd9c624eaa7d6d79ffb79517586d45d4c50ee23d18cde864c4b1d735abdd14e52f2c8ca1c654e566b01bdb8e20e0b83056210e8f +DIST scylla-bin-3.2_p20201009-python3.tar.gz 34294614 BLAKE2B 34035d5d72c36c275bcf29b157717c87cfa9d41585bac05df8062cafe9ce00a17bca1c6a1cfad5f58877e89f01a84c2424f035482ca057c04a8b3970dab6ed4f SHA512 39a6ab5e3711f82b6584cbf8ea2952f47b2e25dfe5bdcaa3b31894cde91c7674f207f9172ecc4e607e6c45a494ef4349eb53cbc389eda2e80dd5fced0434af5e +DIST scylla-bin-3.2_p20201009-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 @@ -32,6 +36,7 @@ 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.2_p20201008.ebuild 4393 BLAKE2B f40b2db7459da877394169fa61b8b9562e4fc0b2a27fd37fd2f4e08ae9352b136b36ccf13a97b5c4d5a1ee86eedcf21d132f930f51a41e976e9ff68559b13a5b SHA512 fbbfc2bb498bef65a28cc1a00e15b6207174ad0f2624f7d9b7b234bd4c2d8de62f0c52587497b1746541c02589697167143a0b0c40b1d84eac8c94d682dcba85 +EBUILD scylla-bin-3.2_p20201009.ebuild 4412 BLAKE2B 09ec3b51a434e24fd0b3df0c630810b314b6e0116243b8f2443c4a76257d028551604358ae92ad1288be5babb4b1fad8ddf9aba640aac16c534fb098d54c3cba SHA512 5738fb63b5e480ed12ffebb7fe2d8aa586c222b2dc952264a38e0eb22b02555dc7a373c3eca3491a486cd467498a1255c8e2fedf66fd4c1dba6d9e699a8c8288 EBUILD scylla-bin-3.3_p202006160043.ebuild 4615 BLAKE2B 66dfb66d70a71cefa38c4cdcbd9eee4919221aceab279622f8f8394bd1fdbc49a1ae20374a8d4892d68d61fb9f903a847e5424487c5205a0014842e748a91455 SHA512 8d066f1df43a4ea9350fbc65430c008429438fafd8d9f715fa26529c20523e52feb1b52f9208f2f4cca536d2373da1aba01110246607c8111eb602f95ddee803 EBUILD scylla-bin-4.0.8.ebuild 4068 BLAKE2B 79fbbe320cc8651aa2f84db166ad1df85d4a14cfa4016a5953686ab82b52743738c8a453166e1cad53963b3683b2d6dbad9363901021e55a111d48cd5e0d80d9 SHA512 531f8e834b8c87c60171953f69fddc4883e39b95b67a1cefc371883667dbb530637c349a83059df966a4a302ecda51de5387e2e9d8add9f3a7f32aac0ca3c767 EBUILD scylla-bin-4.1.3.ebuild 3710 BLAKE2B ae927512db6ae431cdc73a1f1bbe46daf7500cbebd4f4a614cf8c724bea224ed370c30815733bcaa82a457ec8c7de6daf9d969ce54ef7d68bd4f09b9238c2dde SHA512 04c6d2a66ea2b2580367066fc9ca06fb97fdcb0eb82b9b71e1f2dc1e94985dcaa901d0216bda199a0a33de2ed019a268bb8d505eb794a652f552cd400d23c8ed @@ -39,14 +44,14 @@ MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl9/aBlfFIAAAAAALgAo +iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl9/heNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3 QjM0NkQ4QUE4RDZEMEMzQzgyQTQzQjUxRkYyM0YxQUM5Nzc3MkYACgkQUf8j8ayX -dy9ccAf/UmeEHL837d1teXTGmTG3zBNsEgH/JtSn+bjfG7yRFvHcqbphW30+fd4c -UUNpnytZwmzM6lesoK3PjQfKMXI9E11Aq0pMjsAlt2WZSH7Z1WCrWV6MrGROLgQY -ujwgomwuvIOP5E4hcVyVkOqe/Jas971LPk/pv+9O+ptdIo7I1w9VKjb7d/rGXkKP -CYId9oNDeueJHMGTrELraoPOTE2s+iekVeI40tmiOndvFIBGx9H//2iA9xpGEc0u -3MdzgQaAiiW4H588l31pKUiGgqqACSpYv9RbO1iWs4OR0ipA0+UpLdqzP1tb20AS -/VO2U9kOjS6dlMIppCpzYHY1A/iN9g== -=tM66 +dy+x5Af9HpnM7rPudIjbKrsUYGAf2r3ZBxvH4cgRo1xQktDVmr4z2q9/iIA4i4Vg +9Bf1VejmT67TfcQwC2Lb0IrxoG7Hfrv7LIPnqZy7jWzTeFaWJu4FwJlOUTL2aW/h +KJojrdPjf4k3nC8sa7hYnegXlw92C6RtD2MzUiO5UGZcpRMyTGe84x62Nq0y33jn +xV2TpIi74zD47huqcHMrR8ZjR7rVxGoLoyGxJh57Y6T2HKokagLL9NmkyzVymrVO +yXM68KoVSLHZIOVVop2w4oeKVl+5HInvTXItl226Zqhqgvhkrae0sCpwkrsgNdil +F5keG6wU51uogjHwoiDY8o3Yjwq0AA== +=KKIY -----END PGP SIGNATURE----- diff --git a/dev-db/scylla-bin/scylla-bin-3.2_p20201009.ebuild b/dev-db/scylla-bin/scylla-bin-3.2_p20201009.ebuild new file mode 100644 index 0000000..681492e --- /dev/null +++ b/dev-db/scylla-bin/scylla-bin-3.2_p20201009.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PV="3.2/202004222203" + +inherit linux-info user + +DESCRIPTION="NoSQL data store using the seastar framework, compatible with Apache Cassandra" +HOMEPAGE="https://scylladb.com/" +SRC_URI="http://scratch.scylladb.com/lubos/numberly-cql-npq/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 +} + +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 +} |