summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-db/scylla-bin/Manifest21
-rw-r--r--dev-db/scylla-bin/scylla-bin-4.2.2.ebuild128
2 files changed, 141 insertions, 8 deletions
diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest
index d72552d..f1235f0 100644
--- a/dev-db/scylla-bin/Manifest
+++ b/dev-db/scylla-bin/Manifest
@@ -43,6 +43,10 @@ DIST scylla-bin-4.2.1-jmx.tar.gz 8372212 BLAKE2B d5a00bb085cccbee53ef176e084afaa
DIST scylla-bin-4.2.1-package.tar.gz 809892087 BLAKE2B 4b5ee7fbbc7080ce7ba4e5d8bf6e284f9fb5dd5f855e404eb0127df0ec0ce5aa75c637da0b42cea064e68b30bbe99d8d8f41c3531d121019f1bf30a7a5bc23e6 SHA512 ae20e0a6b2dd72fc5f8e3a98de6afe9f22b68ac6e93dce9ca714cd46c2e0e19228f5e47dd81a4061c025d50fe8404783c5cb46fe8bb8b9f0f8c83da45d7d4cc0
DIST scylla-bin-4.2.1-python3.tar.gz 21442440 BLAKE2B 2212e01b1f42ca392c90659af700c483db2d3073dde998d983036924a5fe40392fd6ef8c1465213e8d6e1bc6ff4fd7933fb55142ab8111c73b600be482257cba SHA512 0292dfc99ad84aa63182cdda6a4425bba9736cb3d594ede8e85f8f4940c25ffe170d03ceeebcaeae4816256e1d66e2635faa35a4d9e789acfddbf31bb6be5dc4
DIST scylla-bin-4.2.1-tools.tar.gz 33882460 BLAKE2B 77a71bc09a895c8d814949161a3acf8b97e845129795679e70cec5875969f35164accf30060b5cb97aa318616e15d6befca2fdd29a0df6f720c688c0fa04a15d SHA512 a9d554ca790a89e354693d99bea22b34966725da40f2ea8edc5806403e6284e843a2aedea793345b540e9d548d318e3241be200e7cfebf0e2b89678c0de54394
+DIST scylla-bin-4.2.2-jmx.tar.gz 8372212 BLAKE2B d5a00bb085cccbee53ef176e084afaaebdfeddca713cad171f46d05a71fc0d3b7b7ef5cbcf6c62c2eed8ee20df6dca16132ed01c03490bd27fe88c5c68eff691 SHA512 00fe0dae7d9efab62096321d0474c5791600ffe18b9ef7676a4d2e1e93ab49436fef44fe8e4e4b6e4fa634e68b2f24683b9c794b2d0f1c2daf1e32b243124183
+DIST scylla-bin-4.2.2-package.tar.gz 809513862 BLAKE2B cc48696fa3d95b670017293b2aaf30018302e4644972fd87ec22651a91ab05b4af0f2225f3c184b4b457a9365561db071e06163f60165a57c95abc0f6eea271b SHA512 6504f468ca77e5fb0648a08cee867f129af97b61ad6d5e58743dd8385cd0c820d61e30e42f0873bf55b7830e031f3d6245ca55c76dba63a0767b054bc1beaef9
+DIST scylla-bin-4.2.2-python3.tar.gz 21442440 BLAKE2B 2212e01b1f42ca392c90659af700c483db2d3073dde998d983036924a5fe40392fd6ef8c1465213e8d6e1bc6ff4fd7933fb55142ab8111c73b600be482257cba SHA512 0292dfc99ad84aa63182cdda6a4425bba9736cb3d594ede8e85f8f4940c25ffe170d03ceeebcaeae4816256e1d66e2635faa35a4d9e789acfddbf31bb6be5dc4
+DIST scylla-bin-4.2.2-tools.tar.gz 33882460 BLAKE2B 77a71bc09a895c8d814949161a3acf8b97e845129795679e70cec5875969f35164accf30060b5cb97aa318616e15d6befca2fdd29a0df6f720c688c0fa04a15d SHA512 a9d554ca790a89e354693d99bea22b34966725da40f2ea8edc5806403e6284e843a2aedea793345b540e9d548d318e3241be200e7cfebf0e2b89678c0de54394
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
@@ -52,18 +56,19 @@ EBUILD scylla-bin-4.1.3.ebuild 3710 BLAKE2B ae927512db6ae431cdc73a1f1bbe46daf750
EBUILD scylla-bin-4.1.8.ebuild 3929 BLAKE2B 961c8eb3b40f15bc298777bb7b85008e3855f63671c0eac8c198a0ee154cfc818158d334d110cdddb0df53ba34ed910f2ebb8678f279c5f50f9bfe2e224c206c SHA512 99d4ec487308549f1bb7a535f355e94d1a2a888ae007c6becbd452456a4c0c1ed3fac42ac435e24896e0103e32222175002886e8791347321a632ed14cb91ab4
EBUILD scylla-bin-4.2.0.ebuild 4293 BLAKE2B 077b5d248592e844c85116cb779066d1ad92deb734c23bd581de155862e71254a346132eac63da9719429a066da8419372be24186285797b1cc4cd644c579f17 SHA512 2e21d73f5c6c7e2a37bfbe44b69a84ee190e1859942ddbbfba0e07e359380ed89df561ac7d99561dc43c5dc7032e861aca46eac0222eaf2dd43f7ca4ea72744e
EBUILD scylla-bin-4.2.1.ebuild 4293 BLAKE2B 6c2f370e2e91947bd31f5af6bb3fd9f9d064f250463aca0adbb7a3e98ff0975c1b79b96f14b8eb3bc9cacc840cfba2a1ebd92d8212ec3de4a8f91d59eca2e00d SHA512 01605a08bbee17e5fe08735a51be57e335a47dcda9fdaf0a6c5e6029ab25247c5a2dfbe729bce69176a2112a89bc8a360b0375f7fb33a08cffb061b4a6b50cd0
+EBUILD scylla-bin-4.2.2.ebuild 4228 BLAKE2B 004e097de9adfb853570e1eb0b900d759449d8666cf081a01db8c378b31d90b747c5bc66e2561c049bc51237bf48a0ac99c0ef540bc2318d1a2f6464c2668288 SHA512 7ce2d197a53d01d09df0ce8227f9ca95786d268f8f83a91b12112d514a1f5a51c535c66a20ae5b1501a3e7ec6710fc7fafe833722259be91cf48d24cf5bd4c25
MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea192ded6b09a158f1bc941544f90a1b9e396db00bc0fe277c072d267568473ae4aa2dec8bc5c2f89 SHA512 6eae78a65db44c8f7ef2d20c10c8612cd2072c0204c6294798e4bf94f1283c684c22d1ad28e0f68e78e82a0c60526d6786492c9dacc438d83405218e51c1bf9c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl+0RiNfFIAAAAAALgAo
+iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl/GfLpfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3
QjM0NkQ4QUE4RDZEMEMzQzgyQTQzQjUxRkYyM0YxQUM5Nzc3MkYACgkQUf8j8ayX
-dy/vmwf/fAga5SE6mYT75uvkkZ5fxjRehVIXiFhinveN5/Dm34np0YtvSYqtPV8u
-LxsjLrkohANf7h/lBxTHj6FB4+1a+46ThThSpiTu3UDRsS2zxRWmJe0zeyZMrqcC
-01ALKbJcoK+D8Wa3DPWZ4HyBlD+opJEHOcmyKX3yatHsegI/pPl28t7+NPNhjoMw
-yhuAhf4uK3DK0l8OKRUAQ8hiazUu2NIR9bOGK2DmumBw7ZJNOTL1FxJtSZvfEtPo
-WGL/9uPSKPiv8PBhzTz3P9dJ99r9ee013gNSsvFeFSq4QfhLoSKQZEPdOWfXV2ph
-C4vLbD6qepOcwyB/o/WmgoMZwn8/bA==
-=XRvy
+dy9qfQf9GhALY8ie86lcRdb77ldH8soL867ye1f7WLu9B4M//tZgSEbXVXw2dKTV
+Bnpcas1n6yIF+0ElJMnj6goCXXnTSCtMvcpl/xiAPBn8H/N3F1tJJA12jmS93xxU
+clPVGhiS2/ZvAPowIFM34yBxIh2bx69upzWXzXHUnG8C/YP7BQyUiV7EGQgNg51N
+lCbXeJJ9vB4zWkwhBU/7FEaosxu/QrIT/O8Mn3ocrH+2GrdLSk608M5m06mz24Xr
+oeeEEhfvfTbo6tWUcg2zIgUUUvWpMUx/aScmN3zdHGDfjoUaBf0AhRJQjA2w+pLz
+mlCEu8Pcx1Uf6H0R19eFsHP5MvPRVQ==
+=PAjH
-----END PGP SIGNATURE-----
diff --git a/dev-db/scylla-bin/scylla-bin-4.2.2.ebuild b/dev-db/scylla-bin/scylla-bin-4.2.2.ebuild
new file mode 100644
index 0000000..9cd8187
--- /dev/null
+++ b/dev-db/scylla-bin/scylla-bin-4.2.2.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="4.2.1-0.20201108.4fb8ebccff"
+
+inherit linux-info user versionator
+
+DESCRIPTION="NoSQL data store using the seastar framework, compatible with Apache Cassandra"
+HOMEPAGE="https://scylladb.com/"
+SRC_URI="http://scratch.scylladb.com/scylla-package-4.2-tombstone-thresholds.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
+}