summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@ultrabug.net>2022-01-03 09:01:38 +0000
committerAlexys Jacob <ultrabug@ultrabug.net>2022-01-03 10:02:43 +0100
commit153dc86bc64515b9ce9c9db34aa8fcbfc33d940e (patch)
tree4aa8ee004d6dfef50b3d515615718226af5aa709
parentapp-admin/scylla-manager-agent: fix install phase (diff)
downloadultrabug-153dc86bc64515b9ce9c9db34aa8fcbfc33d940e.tar.gz
ultrabug-153dc86bc64515b9ce9c9db34aa8fcbfc33d940e.tar.bz2
ultrabug-153dc86bc64515b9ce9c9db34aa8fcbfc33d940e.zip
dev-db/scylla-bin: version bump
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Manifest-Sign-Key: 34FCB257983BA23A8CEC5EB7EB9E6405C24BFAE5 Signed-off-by: Alexys Jacob <ultrabug@ultrabug.net>
-rw-r--r--dev-db/scylla-bin/Manifest21
-rw-r--r--dev-db/scylla-bin/scylla-bin-4.5.3.ebuild129
2 files changed, 142 insertions, 8 deletions
diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest
index 9572297..b00dafb 100644
--- a/dev-db/scylla-bin/Manifest
+++ b/dev-db/scylla-bin/Manifest
@@ -59,6 +59,10 @@ DIST scylla-bin-4.4.3-jmx.tar.gz 8539465 BLAKE2B ea82ac298e231f36bb073186f96c2b1
DIST scylla-bin-4.4.3-package.tar.gz 418786372 BLAKE2B 2e87d5a106ba0198f403b0d3debe7790c09bda61a2a90efb5de994a5eeeade019faa158c5f816f37ba4f8ef78b8bc8872d04e48c22e7b21da6ba5011d4b008f6 SHA512 b47b56a7079358ab207d3f137ea62c29398d344f984269cf24cb84965992aba8fb0a0a5bab6b583c59ade9aff24658d9911bed8cf1067a3c650dd2977bebbcbb
DIST scylla-bin-4.4.3-python3.tar.gz 24007446 BLAKE2B 9aef01986a61e129d77757a268e61af265995111c96be92d42fa5b80195052c0523a08d46b22686ce58502ba8d2aa838b7ac3b56810b987bf5fc7d3fa4813984 SHA512 85bf7bac4e076077ba0abd0dfc0baee0fbcd1820540cb29f6f2b6ee9482a675c856c44cc3a40cc58cd706667dd0778e2208a3a0b1195fea7dc97b9555adaa7ae
DIST scylla-bin-4.4.3-tools.tar.gz 33879950 BLAKE2B 0b3f61fa5e051f276bff176326d57ffb15397ee0b1e3c14357b35f27646e2f6449cb3e44c9d42df774ed7e81c56c2f56eee2fa34af68ff7c42ff9b720efd91dc SHA512 89e8c4a5c54d81024cd8b550018e42b0be134883f6da4fc6da2076d70cc5dd7f25fff07ca9748c05140f03ef89a1524a9f4da1bda65cd05859471adca478b26d
+DIST scylla-bin-4.5.3-jmx.tar.gz 8661815 BLAKE2B 553f57184106b3241f9d224d9c3beb50560e0bb4ecab90427369968ef70a668b3ffd76ff3ae1ccb985c0a9cdfb5426b5e3ae7e0b7bbee57acc3fda35fc1d9464 SHA512 fe9b04a45d251c0fa855b400328efa3484f3fd500f2d0fba73d738f346e90e704c56143ec5182ab64a78c2ff69759e2afa997e4e80e1cf5ce37aefa174ee3385
+DIST scylla-bin-4.5.3-package.tar.gz 494601594 BLAKE2B cfd4a4d74e0a9466a6cecc9f205c18fced5cf3c3f8df3ef5b65416ed69367b6b47da0e7e19c6a391929dbcf78e84d627095722f88c3917913478b3b7af23cfe2 SHA512 4cb7ccaf6a906fea8d936e1be8edc77ff47a00a7b330f5879cd6fe1a620c5c3ceb5bb8b06ecd8cb316e8c8f088ec921d2ff5f080994bea67ce87ec997d77246e
+DIST scylla-bin-4.5.3-python3.tar.gz 24034517 BLAKE2B 36a8b301c21f19ef4b6a800ac94ced2469e90c097c2e4460fd415177fa9fb3f3906dc9a712408893ef930b48b4569966b1bc59948d73cc20f97eed05372488e6 SHA512 26146cc5130e7c417a3b36667512b86be3f1ff96b93b45bd3eba8d318210b663278845fe84ef4b0769e4538f10b339445ec26f6c5a0e1c1a5d9b6cda2e7773cf
+DIST scylla-bin-4.5.3-tools.tar.gz 33881294 BLAKE2B e661524575442183e2dacfa1df48d3e9cdd1bdc2f35ae110434f85856e8a254d6b14a60b733d1e02bdb710c92082c812fdf12cb1d2e2c995ce286d0cb7a136e1 SHA512 e80d5f1ebc46deb022e51ae7e698d36cb5dc6f31ba97a6446c08f41fcc8bf6032d68ff6c3c1c4f918f7b57fa6cfe52a2f8bebef17678643b98b2f2ffddb040de
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
@@ -72,18 +76,19 @@ EBUILD scylla-bin-4.2.2.ebuild 4228 BLAKE2B 004e097de9adfb853570e1eb0b900d759449
EBUILD scylla-bin-4.3.2.ebuild 4292 BLAKE2B 40722df06be76ef7c8059f4cdafe3e6e78c44adffd5a73bd99c8e8a032d56f7a86ed45a146dcaf96c3be2e287d53bfb50f5d128c1871c440ba0567e23a4ebf45 SHA512 bc993f892e643e35b24e20714a23f29be3b5d0d4473744d011016c637e365d26042be6ce9eae114e25f0d1fa21bd2ebf27aefabc84b4a60dea4cdbb361960975
EBUILD scylla-bin-4.3.3.ebuild 4304 BLAKE2B 320385361757efffb402b014a3c0e3549bbfa008e64bd1bd6d75fa7bd3822cd9454aaa989593c6a010f312637d28a2a12771ddc4717637cc65be8641821f6d20 SHA512 b579ea5a432501636ce19bb76918953aac425c1b767696c0ff7e9e374dcdf1b946720ec62fa622fb20bd1bc2fa2b953a280741a13e08fa57a38db9f3ea8298bb
EBUILD scylla-bin-4.4.3.ebuild 4292 BLAKE2B b1fc2eba53d2b8bb536888edbe499d29bb5a124b3eabfcc168a9e08c8a38c554ec85ec2df2ce0e9878e88b66d2ddee47ef6adf2f7b4e260b96c5d6d6bea084f9 SHA512 becfc2b98e71ffa38e4f0867c9af074deae4b281d89b3bf013cc94652463030bc7f72d54dc230df22d2f21c6d1a5ef3814da051f0375de9981efd6031eec9862
+EBUILD scylla-bin-4.5.3.ebuild 4293 BLAKE2B 1b20095bc924dfa23f30b083fdce6177534d55ba63661d3ca2024ffe1312ac11e3c39ade004828783e67159807087db5ce4961f744864439116a1a1e4f5ea30e SHA512 d6f81e11700f6dc986b23918d128131b1cadffe837b25e2a2f61ba9086c68e26afc498dbab5344ef07a72d1b48514d3c752fbcd0e213777320ca1e448932803e
MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea192ded6b09a158f1bc941544f90a1b9e396db00bc0fe277c072d267568473ae4aa2dec8bc5c2f89 SHA512 6eae78a65db44c8f7ef2d20c10c8612cd2072c0204c6294798e4bf94f1283c684c22d1ad28e0f68e78e82a0c60526d6786492c9dacc438d83405218e51c1bf9c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAmDsNG9fFIAAAAAALgAo
+iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAmHSu29fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3
QjM0NkQ4QUE4RDZEMEMzQzgyQTQzQjUxRkYyM0YxQUM5Nzc3MkYACgkQUf8j8ayX
-dy+skgf+K+rYATwBtWTBac7k+k4DX4uWeuweUNzzIqpUvp0T2XRfUaYG1SW+lUp0
-KoqF9UuZRWwfFCCk1USf9qyVFxk+xb+Rh0SXQT2PqKiVv7nWZGhFE/m0z21msGBN
-/huNOks/hd+Dq+gw3JeYMpYAlZxyln2Ya9PE/JzrqG8fMsyEDcBuF5CXY6iqzDe5
-On+bceeh5A4GUbHMoiwjQtGcXdkEu8MWzK0AjoMOPtbRNWgdKx6O2AjQ5c7TK40U
-FzCwmn7XAOmt5sHg8dbvhofUQPMpDQtQNaVg0ERL3u0xzcRIZbWafys2QbGAA+0j
-Ipi80OslnDvrWbzFo1HO2uDqmhRfyg==
-=Jp3t
+dy/pzAgAiaynvtI9xjn8a31/WbOYCYy9kI6No+Ckn12QS2eDPORRTotEe7YQNkEf
+zywHQnVOQinu/NX8Tate51RDLCKdfP6IirAdUSR9Z8P24vRnqV0wiFp9pCqnfKPP
+naRh5zg/0F4/genefQqExaOglaK/LAVDuncxJlfulkwU9LqFEsYyoYD7fLLV1Mcy
+vxhiZxql4fuXU9Vd6df1tgmoBjkl6nPp1M1DcAf8ISOsKXVwl+6eiJ7Cqc3B81CR
+tfhVYT4ucPcUobn5OR/3Utf03pHRQ6Wmh0aCwnkwkTxo46NFe+Ex3LcW+qE0/HSX
+KBkYd9nyllDxE8dJ4nYwtCwTE+XtsA==
+=84zy
-----END PGP SIGNATURE-----
diff --git a/dev-db/scylla-bin/scylla-bin-4.5.3.ebuild b/dev-db/scylla-bin/scylla-bin-4.5.3.ebuild
new file mode 100644
index 0000000..d0407d9
--- /dev/null
+++ b/dev-db/scylla-bin/scylla-bin-4.5.3.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PV="4.5.3.0.20211223.c8f14886d"
+
+
+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 ${PV})/scylla-package-${MY_PV}.tar.gz -> ${P}-package.tar.gz http://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-$(get_version_component_range 1-2 ${PV})/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 ${PV})/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 ${PV})/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
+ virtual/jdk:1.8
+"
+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
+ unpack ${P}-${pkg}.tar.gz || die
+ find . -type f -name "*.pyc" -delete
+ done
+}
+
+install_package() {
+ pushd scylla
+
+ einfo "Installing scylla-package"
+ # fix sysconfig path for systemd service files
+ sed -e "s@/etc/sysconfig@/etc/default@g" -i dist/common/systemd/*.service || die
+ 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 scylla-python3
+ einfo "Installing scylla-python3"
+ bash install.sh --root "${D}" || die
+ popd
+}
+
+install_jmx() {
+ pushd scylla-jmx
+ einfo "Installing scylla-jmx"
+ # fix sysconfig path for systemd service files
+ sed -e "s@/etc/sysconfig@/etc/default@g" -i dist/common/systemd/*.service || die
+ # 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 --packaging || die
+ newinitd "${FILESDIR}/scylla-jmx.initd" scylla-jmx
+ newconfd "${FILESDIR}/scylla-jmx.confd" scylla-jmx
+ popd
+}
+
+install_tools() {
+ pushd scylla-tools
+ einfo "Installing scylla-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
+}